python-lottie  0.6.11+deved4e6c7
A framework to work with lottie files and telegram animated stickers (tgs)
base.py
Go to the documentation of this file.
1 from ..parsers.baseporter import Baseporter, Loader, ExtraOption, io_progress
2 
3 
5  def __init__(self):
6  super().__init__(__file__, __name__, "export")
7 
8  @property
9  def exporters(self):
10  return self.itemsitems
11 
12  def set_options(self, parser):
13  group = parser.add_argument_group("Generic output options")
14  group.add_argument(
15  "--pretty", "-p",
16  action="store_true",
17  help="Pretty print (for formats that support it)",
18  )
19  group.add_argument(
20  "--frame",
21  type=int,
22  default=0,
23  help="Frame to extract (for single-image formats)",
24  )
25 
26  super().set_options(parser)
27 
28  return group
29 
30 
31 exporters = ExporterLoader()
32 exporter = exporters.decorator
def set_options(self, parser)
Definition: base.py:12