python-lottie  0.6.11+deva0e77a1
A framework to work with lottie files and telegram animated stickers (tgs)
core.py
Go to the documentation of this file.
1 from .base import importer
2 from ..parsers.tgs import parse_tgs
3 
4 
5 @importer("Lottie JSON / Telegram Sticker", ["json", "tgs"], slug="lottie")
6 def import_tgs(file, *a, **kw):
7  """
8  Imports a (optionally gzipped) Lottie JSON file
9  """
10  return parse_tgs(file, *a, **kw)
11 
12 
13 import_lottie = import_tgs
def import_tgs(file, *a, **kw)
Definition: core.py:6
def parse_tgs(filename)
Reads both tgs and lottie files.
Definition: tgs.py:41