python-lottie  0.6.11+devcecd248
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.items
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
lottie.exporters.base.ExporterLoader.__init__
def __init__(self)
Definition: base.py:5
lottie.exporters.base.ExporterLoader.set_options
def set_options(self, parser)
Definition: base.py:12
lottie.exporters.base.ExporterLoader.exporters
def exporters(self)
Definition: base.py:9
lottie.parsers.baseporter.Loader
Definition: baseporter.py:58
lottie.exporters.base.ExporterLoader
Definition: base.py:4
lottie.parsers.baseporter.Loader.items
def items(self)
Definition: baseporter.py:88