Main information¶
tonpy is a Python package that provides data structures and API to interact with TON blockchain. Tonpy is separate for two packages: C++ bindings and main package that takes pre-built binaries compiled by workflow and creates complete python package with some python code on top of C++ bindings.
We try to provide 100% test coverage on all structures and functions. Github workflow automatically run tests on all supported systems (Linux, Windows, MacOS) / (x86_64 / aarch64) / (py39, py310, py311) and publish package to pypi.
What is supported?¶
- Basic types:
- VmDict (HashmapE, HashmapAugE)
- TypedVmDict (same as VmDict but allow to unpack values / extra with TLB types)
- StackEntry (Tuple included)
- Augmented data (eval_leaf / skip_extra / eval_fork / eval_empty for HashmapAugE)
- Autogen
- Fift
- Fift (with support of Stack / StackEntry)
Test examples may show you how to work with library, check tests examples here