Python TVM emulator
Project description
pytvm
:warning: WARNING: The pytvm library is currently in active development. Features and functionality may change frequently. Please keep this in mind when using this library.
pytvm - is a Python bindings to C++ TON Virtual Machine (TVM) emulator. pytvm allows you:
- Run Get-Methods locally (for trustless and fast data retrieval)
- Emulate messages (
Internal
andExternal
) - Emulate transactions
- Emulate transactions traces
Usage
Find examples in the examples folder.
Installation
From PyPi
pip install pytvm
From source
Currently, pytvm compatible with Python3.9 - Python3.11 on platforms:
- Linux (x86_64)
- Windows (x86_64)
- MacOS (x86_64, arm64)
If your system is not compatible with the pre-built wheels, you can install pytvm from source:
-
Compile
emulator
target TON Blockchain repo or downloadlibemulator
binaries from latest release. -
Install pytvm from source:
pip install pytvm
-
Create engine providing path to
libemulator
binaries toEmulatorEngineC
:
from pytvm.engine import EmulatorEngineC
from pytvm.transaction_emulator import TransactionEmulator
engine = EmulatorEngineC('path/to/libemulator.so')
emulator = TransactionEmulator(engine=engine)
Donation
TON wallet: EQBvW8Z5huBkMJYdnfAEM5JqTNkuWX3diqYENkWsIL0XggGG
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pytvm-0.0.11-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23a930178a70f579e489189023fb54805ca40fa5bf56a60a60bd55a3321bde9d |
|
MD5 | 0652104b5588f16f728b94beef6d1675 |
|
BLAKE2b-256 | 4309668e60a42c5f4a2080717e01cb8746f86cae4272dc0a5a85bd7f2dd301bd |
Hashes for pytvm-0.0.11-cp311-cp311-manylinux_2_27_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfba831c32f229692c459f17470754e752bf7d12b8dd04f647c179a39c5f8d45 |
|
MD5 | b8e64d074d1604149feb5694d1329b56 |
|
BLAKE2b-256 | 4e1fad9abd3a075af13eb4a4acb3d68389bd55a3abe456a7a0ff1614c501665c |
Hashes for pytvm-0.0.11-cp311-cp311-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60dadda79d2ae46e83f8aae20cfa77511efad88510db703cbf9d869b1a7a25e9 |
|
MD5 | 1e841d6b9c5ec94786db3a9a11881e24 |
|
BLAKE2b-256 | ded0d8e11088893947de81951c84d6c59d7daedbf3463fa9497b73338efc019f |
Hashes for pytvm-0.0.11-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73b2f1ce9064f4c1736c00bba49b1ee8eab4737fb6dca70eb92ea12a0bdbbd83 |
|
MD5 | c31f21dea074abf531483253453c0e15 |
|
BLAKE2b-256 | b5d46f4b53ea9605d4cc4f819260e7e2bdbae79148fcd74581244c2f5f28bc84 |
Hashes for pytvm-0.0.11-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ad123e2a87794295fc1be3d8f127e922bae39a4b4292050e8d2f5043c48bb09 |
|
MD5 | 834f6854560566bc83792652b1e164f1 |
|
BLAKE2b-256 | 31296c78fab1e6aaf5583c9e1cff96e582b453f0e967cb888a3960143c70612c |
Hashes for pytvm-0.0.11-cp310-cp310-manylinux_2_27_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e05178021e8c57bdb0a7adf3531b88ce065c491f39832cd837793e23c8a1a4df |
|
MD5 | 0cf5fe083d689146f80e412e9575cc95 |
|
BLAKE2b-256 | 5fca7e67777eec6d53408428220417f4290fe838eeb356737ff0ed35f2c3ffc4 |
Hashes for pytvm-0.0.11-cp310-cp310-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dc42a96c0b6540bbf3d2c52a1e462fb12ad9ffada2372d64816e66a511a74b3 |
|
MD5 | 5a9c4e8ed6c7840f6cf10d8136eb0e9b |
|
BLAKE2b-256 | e8e6653af812eb08d036bb27e1089cc670ec266dd9160e4043919d0401bf2a36 |
Hashes for pytvm-0.0.11-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05414a5cc3b92306fad62952b2388f4bebf17657bdcbb8c018dd15ed0682999b |
|
MD5 | acec6f3a3eab1014959ce687387775df |
|
BLAKE2b-256 | 37fd9bd53352ea2cfda5131cbd6b1bb7c73f8cbde686149fe098e256bc3d357f |
Hashes for pytvm-0.0.11-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4d8a7f388c95cc9c66bbde9237642fd19cc01f74ec26c60401e60990a9e97ab |
|
MD5 | 89c91a3704d698d7a87bff26f0a6e966 |
|
BLAKE2b-256 | 2b8663416fb85718acc35a86abfbef294dfb94ff8000e7a93155b512c112fe81 |
Hashes for pytvm-0.0.11-cp39-cp39-manylinux_2_27_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c571f66acda743b5678770d4861d0bbf7aee21c3a4d84fdbaa7170f973ee5a76 |
|
MD5 | 7efc61b204421fe2e189e1d92cfbe682 |
|
BLAKE2b-256 | 2d87fe1789549091e33fb4492f237be05cea346d09b72446e8d09d99702756c5 |
Hashes for pytvm-0.0.11-cp39-cp39-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84c4284f58e9c8a7dc939c9075e1259672100bcff9f20a480f6826539eb8ffd4 |
|
MD5 | 1d916a92e3b6d214ed0a914c29e62e13 |
|
BLAKE2b-256 | 6695431a4c79d33b6befd32b41af7c0b9db8648d7505c2fae0741e336626a943 |
Hashes for pytvm-0.0.11-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f64f261d54e20d844d9aad88e6806d254e669f0b2e0dddc079b28cbbca4f749 |
|
MD5 | 657f00c37edac39881bf4065d8687ad1 |
|
BLAKE2b-256 | fc942a87d89fc5ff92228bb7f4a93314cb9ed18129bb2b5133ca663ab0a5c461 |