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.10-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a224b0c246bdf64ebab35c1ab97244f560eee0229423d3a64648599c39bba32 |
|
MD5 | 66d822055558844cff48392fdf3cfd1f |
|
BLAKE2b-256 | a76d8331348c941a395b53b2fcf9550250d7295628f2bfa31398a32444025ea9 |
Hashes for pytvm-0.0.10-cp311-cp311-manylinux_2_27_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9b802461244865c271745bd77df14d072a594519af45b2efcd15bbc9cc651d6 |
|
MD5 | 59f3e9f7912bb847ef6853da0c187626 |
|
BLAKE2b-256 | 932c20b7ca7690826c27cf7a2b7f2834748812c9762356b1e06823984cb94f8d |
Hashes for pytvm-0.0.10-cp311-cp311-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80a9112e0135f591fb0495842d55b958314bd85e5de5ec10368edee1b42ab2d6 |
|
MD5 | 272a79cac9724535eb0a0864f8959877 |
|
BLAKE2b-256 | 17f60d69f8015f0d2f56dd5dce96d6a04f33e320ab42e446faf040a585c7f984 |
Hashes for pytvm-0.0.10-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfbfd2a338fc9d435a4eba7f84554791cdcdbb00f8f2c9954138fedf98330f2c |
|
MD5 | c14fc108fbf32ce282993dca021c8608 |
|
BLAKE2b-256 | a156abfbdcb6627f9a09416de67e92464d0e477d369e466d58013e612b935664 |
Hashes for pytvm-0.0.10-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aad242577a72cff9d1c44a8ec9d0d1874080d90b0dd4f69f934e337488c3b49 |
|
MD5 | c4b3b3add6ce3a55cae09d768b04f014 |
|
BLAKE2b-256 | 649f9751b894f9405ad80a2c6bf97a146111526a8f71a4c5b8d55ffa1de706a0 |
Hashes for pytvm-0.0.10-cp310-cp310-manylinux_2_27_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94fdf931193ab32e75b05de79b535b863d675ee2c02d6710cc8f07413eaa92cd |
|
MD5 | 53bdc21702065568a490926e35d9fc49 |
|
BLAKE2b-256 | c06ff67124a833bb1ddf78360cb51ebbba10bbd3202863fe23becf6d86f31206 |
Hashes for pytvm-0.0.10-cp310-cp310-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19ae9e78b4be09038c06199b5b14c82a1203f61166e1c2bec3b9cf8af27e0e55 |
|
MD5 | 2d1429adba8f858781df079fdbaf24fa |
|
BLAKE2b-256 | 9236093a93eee39a60319a938fa546271b53f3f11ed106c7b5296a6faec4de7c |
Hashes for pytvm-0.0.10-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2353b192a91e3674dfc77e95623248789724ed3a2b15e518e4df51fabf434017 |
|
MD5 | c247d49a6e1198d09e7127e632ff11a9 |
|
BLAKE2b-256 | efe114aa712ba3ed1ce039f1e4893b2dee0e1fc130495293843ee4c68d76b996 |
Hashes for pytvm-0.0.10-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e166bf44926fad23a9e6d09bac74088222bde02c254d7739a750bb19da6ed152 |
|
MD5 | a15818c5eb615ce952310325ca80aab4 |
|
BLAKE2b-256 | f1abb711c38f483a43f24415856c4f032583d67f9dfd2bfa67455b903354bc86 |
Hashes for pytvm-0.0.10-cp39-cp39-manylinux_2_27_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74b2fb8caf20badaed11dbd83e9c52d1dd35f7c889f9521021d3af9c582b3386 |
|
MD5 | 6a0d8103354bf5a352840cbe0d216140 |
|
BLAKE2b-256 | 9c4ff483e2defc2ec9b5b4b84ad9b6037641b6964c86aa182f89313c582c21b6 |
Hashes for pytvm-0.0.10-cp39-cp39-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d034672d0b5a73d66a9e5363f02c0e546ef45e98734b6e8d8ea1eb530e93d708 |
|
MD5 | 90d3ce8c0bfa2828a7f7b88cfdcf51b6 |
|
BLAKE2b-256 | 8893c14fca6b7613ffbcb74bee0e40d1f08a5d5bd790bcb6faa164ba05eccb5d |
Hashes for pytvm-0.0.10-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae92dcab02cf623661e91b567d9f4338ca2d777c3e316bd28c4b832bcc1f5391 |
|
MD5 | 3d04f569d127434f29d08a9a0b91bbf1 |
|
BLAKE2b-256 | cf99632a3717d3c3119b7ad6f85cf83a3c4d23f1db75df7f1ba4a9a4934aa6ca |