tonpy.tlb_gen package

Submodules

tonpy.tlb_gen.py module

tonpy.tlb_gen.py.add_tlb(tlb_text: str, imported_globals: globals)

Parse & Run generated python code, so after that you can operate with new loaded class objects

Parameters:

tlb_text – TLB code

Returns:

tonpy.tlb_gen.py.parse_tlb(tlb_text: str) str

Parse TLB and generate Python Class objects for tlb

Parameters:

tlb_text – TLB code

Returns:

Python code that have been generated

tonpy.tlb_gen.py.process_file(filepath: str, out_path: str | None = None) None

Parse tlb file and convert it to .py file with codegened code

Parameters:

filepath – Path to .tlb file to convert to

Returns:

Module contents