python-lottie  0.7.0+dev418bd09
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.utils.funky_parser.Parser Class Reference

Public Member Functions

def __init__ (self, text, Logger logger)
def next (self)
def token (self)
def color (self)
def get_color_value (self, value, str complete_word)
def complete_color (self, dict word_dict, str complete_word)
def get_color (self, dict word_dict, str complete_word)
def warn (self, message)
def parse (self)
def article (self)
def check_words (self, *words)
def skip_words (self, *words)
def require_one_of (self, *words)
def check_word_sequence (self, words)
def possesive (self)
def properties (self, shape_data, callback, callback_args=[], words=["with"])
def simple_properties_callback (self, object, properties)
def animation (self)
def time (self, default)
def integer (self, default, warn=True)
def number (self, default)
def string (self, default)
def layers (self, composition)
def count (self, default=1)
def layer (self, composition)
def skip_and (self)
def shape_list (self, parent)
def size_qualifier (self)
def size_multiplitier (self)
def add_shape (self, parent, shape_object, shape_data)
def position (self, shapes.Group shape, float time)
def animation_time (self, time, required)
def animated_properties (self, ShapeData shape_data)
def animated_property_value (self, AnimatableProperty property, time)
def animated_property (self, ShapeData shape_data, AnimatableProperty property, time)
def vector_value (self)
def position_value (self, NVector start)
def shape_common_property (self, ShapeData shape_data)
def animated_properties_callback (self, ShapeData shape_data)
def shape_square (self, ShapeData shape_data)
def shape_circle (self, ShapeData shape_data)
def shape_star (self, ShapeData shape_data, int sides=None)
def shape_polygon (self, ShapeData shape_data, int sides=None)
def angle_direction (self)
def fraction (self)
def angle (self, default)
def rect_properties (self, ShapeData shape_data, shape)
def shape_rectangle (self, ShapeData shape_data)
def shape_ellipse (self, ShapeData shape_data)
def shape_text (self, ShapeData shape_data)

Public Attributes


Static Public Attributes

dictionary sides

Detailed Description

Definition at line 411 of file

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.funky_parser.Parser.__init__ (   self,
Logger  logger 

Definition at line 421 of file

Member Function Documentation

◆ add_shape()

def lottie.utils.funky_parser.Parser.add_shape (   self,

Definition at line 844 of file

◆ angle()

def lottie.utils.funky_parser.Parser.angle (   self,

Definition at line 1205 of file

◆ angle_direction()

def lottie.utils.funky_parser.Parser.angle_direction (   self)

Definition at line 1173 of file

◆ animated_properties()

def lottie.utils.funky_parser.Parser.animated_properties (   self,
ShapeData  shape_data 

Definition at line 958 of file

◆ animated_properties_callback()

def lottie.utils.funky_parser.Parser.animated_properties_callback (   self,
ShapeData  shape_data 

Definition at line 1101 of file

◆ animated_property()

def lottie.utils.funky_parser.Parser.animated_property (   self,
ShapeData  shape_data,
AnimatableProperty  property,

Definition at line 1028 of file

◆ animated_property_value()

def lottie.utils.funky_parser.Parser.animated_property_value (   self,
AnimatableProperty  property,

Definition at line 1010 of file

◆ animation()

def lottie.utils.funky_parser.Parser.animation (   self)

Definition at line 578 of file

◆ animation_time()

def lottie.utils.funky_parser.Parser.animation_time (   self,

Definition at line 945 of file

◆ article()

def lottie.utils.funky_parser.Parser.article (   self)

Definition at line 501 of file

◆ check_word_sequence()

def lottie.utils.funky_parser.Parser.check_word_sequence (   self,

Definition at line 526 of file

◆ check_words()

def lottie.utils.funky_parser.Parser.check_words (   self,

Definition at line 507 of file

◆ color()

def lottie.utils.funky_parser.Parser.color (   self)

Definition at line 437 of file

◆ complete_color()

def lottie.utils.funky_parser.Parser.complete_color (   self,
dict  word_dict,
str  complete_word 

Definition at line 450 of file

◆ count()

def lottie.utils.funky_parser.Parser.count (   self,
  default = 1 

Definition at line 677 of file

◆ fraction()

def lottie.utils.funky_parser.Parser.fraction (   self)

Definition at line 1184 of file

◆ get_color()

def lottie.utils.funky_parser.Parser.get_color (   self,
dict  word_dict,
str  complete_word 

Definition at line 457 of file

◆ get_color_value()

def lottie.utils.funky_parser.Parser.get_color_value (   self,
str  complete_word 

Definition at line 440 of file

◆ integer()

def lottie.utils.funky_parser.Parser.integer (   self,
  warn = True 

Definition at line 625 of file

◆ layer()

def lottie.utils.funky_parser.Parser.layer (   self,

Definition at line 682 of file

◆ layers()

def lottie.utils.funky_parser.Parser.layers (   self,

Definition at line 654 of file

◆ next()

def (   self)

Definition at line 430 of file

◆ number()

def lottie.utils.funky_parser.Parser.number (   self,

Definition at line 635 of file

◆ parse()

def lottie.utils.funky_parser.Parser.parse (   self)

Definition at line 488 of file

◆ position()

def lottie.utils.funky_parser.Parser.position (   self,
shapes.Group  shape,
float  time 

Definition at line 882 of file

◆ position_value()

def lottie.utils.funky_parser.Parser.position_value (   self,
NVector  start 

Definition at line 1048 of file

◆ possesive()

def lottie.utils.funky_parser.Parser.possesive (   self)

Definition at line 539 of file

◆ properties()

def (   self,
  callback_args = [],
  words = ["with"] 

Definition at line 542 of file

◆ rect_properties()

def lottie.utils.funky_parser.Parser.rect_properties (   self,
ShapeData  shape_data,

Definition at line 1231 of file

◆ require_one_of()

def lottie.utils.funky_parser.Parser.require_one_of (   self,

Definition at line 519 of file

◆ shape_circle()

def lottie.utils.funky_parser.Parser.shape_circle (   self,
ShapeData  shape_data 

Definition at line 1119 of file

◆ shape_common_property()

def lottie.utils.funky_parser.Parser.shape_common_property (   self,
ShapeData  shape_data 

Definition at line 1072 of file

◆ shape_ellipse()

def lottie.utils.funky_parser.Parser.shape_ellipse (   self,
ShapeData  shape_data 

Definition at line 1301 of file

◆ shape_list()

def lottie.utils.funky_parser.Parser.shape_list (   self,

Definition at line 704 of file

◆ shape_polygon()

def lottie.utils.funky_parser.Parser.shape_polygon (   self,
ShapeData  shape_data,
int   sides = None 

Definition at line 1166 of file

◆ shape_rectangle()

def lottie.utils.funky_parser.Parser.shape_rectangle (   self,
ShapeData  shape_data 

Definition at line 1292 of file

◆ shape_square()

def lottie.utils.funky_parser.Parser.shape_square (   self,
ShapeData  shape_data 

Definition at line 1109 of file

◆ shape_star()

def lottie.utils.funky_parser.Parser.shape_star (   self,
ShapeData  shape_data,
int   sides = None 

Definition at line 1128 of file

◆ shape_text()

def lottie.utils.funky_parser.Parser.shape_text (   self,
ShapeData  shape_data 

Definition at line 1307 of file

◆ simple_properties_callback()

def lottie.utils.funky_parser.Parser.simple_properties_callback (   self,

Definition at line 566 of file

◆ size_multiplitier()

def lottie.utils.funky_parser.Parser.size_multiplitier (   self)

Definition at line 824 of file

◆ size_qualifier()

def lottie.utils.funky_parser.Parser.size_qualifier (   self)

Definition at line 806 of file

◆ skip_and()

def lottie.utils.funky_parser.Parser.skip_and (   self)

Definition at line 697 of file

◆ skip_words()

def lottie.utils.funky_parser.Parser.skip_words (   self,

Definition at line 513 of file

◆ string()

def lottie.utils.funky_parser.Parser.string (   self,

Definition at line 645 of file

◆ time()

def lottie.utils.funky_parser.Parser.time (   self,

Definition at line 606 of file

◆ token()

def lottie.utils.funky_parser.Parser.token (   self)

Definition at line 434 of file

◆ vector_value()

def lottie.utils.funky_parser.Parser.vector_value (   self)

Definition at line 1040 of file

◆ warn()

def lottie.utils.funky_parser.Parser.warn (   self,

Definition at line 484 of file

Member Data Documentation

◆ allow_resize


Definition at line 425 of file

◆ font


Definition at line 428 of file

◆ lexer


Definition at line 422 of file

◆ logger


Definition at line 424 of file

◆ lottie


Definition at line 489 of file

◆ max_duration


Definition at line 426 of file

◆ prop_time


Definition at line 994 of file

◆ sides

dictionary lottie.utils.funky_parser.Parser.sides
Initial value:
= {
"penta": 5,
"hexa": 6,
"hepta": 7,
"octa": 8,
"ennea": 9,
"deca": 10,

Definition at line 412 of file

◆ svg_shapes


Definition at line 427 of file

The documentation for this class was generated from the following file: