python-lottie  0.7.0+dev66cafb9
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, encoding="utf-8")
Reads both tgs and lottie files.
Definition: tgs.py:41