Skip to main content

Python TVM emulator

Project description

pytvm

PyPI version PyPI - Python Version Downloads Downloads

: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 and External)
  • 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:

  1. Compile emulator target TON Blockchain repo or download libemulator binaries from latest release.

  2. Install pytvm from source:

    pip install pytvm
    
  3. Create engine providing path to libemulator binaries to EmulatorEngineC:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytvm-0.0.14.tar.gz (11.4 kB view details)

Uploaded Source

Built Distributions

pytvm-0.0.14-cp311-cp311-win_amd64.whl (3.4 MB view details)

Uploaded CPython 3.11 Windows x86-64

pytvm-0.0.14-cp311-cp311-manylinux_2_27_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.27+ x86-64

pytvm-0.0.14-cp311-cp311-macosx_11_0_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.11 macOS 11.0+ x86-64

pytvm-0.0.14-cp311-cp311-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pytvm-0.0.14-cp310-cp310-win_amd64.whl (3.4 MB view details)

Uploaded CPython 3.10 Windows x86-64

pytvm-0.0.14-cp310-cp310-manylinux_2_27_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.27+ x86-64

pytvm-0.0.14-cp310-cp310-macosx_12_0_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

pytvm-0.0.14-cp310-cp310-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pytvm-0.0.14-cp39-cp39-win_amd64.whl (3.4 MB view details)

Uploaded CPython 3.9 Windows x86-64

pytvm-0.0.14-cp39-cp39-manylinux_2_27_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.27+ x86-64

pytvm-0.0.14-cp39-cp39-macosx_14_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

pytvm-0.0.14-cp39-cp39-macosx_12_0_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.9 macOS 12.0+ x86-64

File details

Details for the file pytvm-0.0.14.tar.gz.

File metadata

  • Download URL: pytvm-0.0.14.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pytvm-0.0.14.tar.gz
Algorithm Hash digest
SHA256 73f93021598a062c629cbceba1855589b36cc05a92fda1fc0a346efeef2db9f4
MD5 8a7ae6c413c82213b9a961d123368dfa
BLAKE2b-256 bbdb1e088baadb91883d281c68674ff4e0c6e7321422b02ce7c49d92df9166c8

See more details on using hashes here.

File details

Details for the file pytvm-0.0.14-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pytvm-0.0.14-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pytvm-0.0.14-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 20739de4d18f82769d7018e38497b0dcfd999375b362e8f6e56bb142f68165a7
MD5 4832c6fd550ca953d2d4154071c3e146
BLAKE2b-256 686dfbb4db23064d88a1be016bf420fac447c85ab1057eb6230f9f5ea5cfee68

See more details on using hashes here.

File details

Details for the file pytvm-0.0.14-cp311-cp311-manylinux_2_27_x86_64.whl.

File metadata

File hashes

Hashes for pytvm-0.0.14-cp311-cp311-manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 18a1c164ba45e9fbc6a325102b193e159d8b57258c11ae669a13cbb2023d6cb4
MD5 0dc663544f85bee41f3de482cb3fcb33
BLAKE2b-256 9d32b3fc2740032ddee7240fda8200d0597573cbe84822f1a7b6e82e29d3e1e3

See more details on using hashes here.

File details

Details for the file pytvm-0.0.14-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for pytvm-0.0.14-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 05a0001f2faad088478cb7b4a68286fc39982921b06d2d63e982c900a19b7470
MD5 21ea248860f2b338d72b905396c82e15
BLAKE2b-256 c399a99b375f79476616c36344575efa3711dc18223d4ece53e616c27fc9c314

See more details on using hashes here.

File details

Details for the file pytvm-0.0.14-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pytvm-0.0.14-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f29870c78c52cdfcc3e185adababa678be7488b32b42508c35c9b0443cb2268
MD5 ded5dcc68ec2f3a4b8b259201652fa2c
BLAKE2b-256 8eb30f54738ec47387a559dc8c87e9206ee01759a9ff5ba1b90dbbf1b986b248

See more details on using hashes here.

File details

Details for the file pytvm-0.0.14-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pytvm-0.0.14-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pytvm-0.0.14-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 02025fbcc4c1b150a6b54f4ee424a176f1afe1eefcdd728bdf682ee9d77ffb32
MD5 8cf007f31a06b5d555b9b8a3a84d1f3f
BLAKE2b-256 920bf137f814d9cbd80d007a9ad9213058f5d9893899363eb1d6bff806343d5f

See more details on using hashes here.

File details

Details for the file pytvm-0.0.14-cp310-cp310-manylinux_2_27_x86_64.whl.

File metadata

File hashes

Hashes for pytvm-0.0.14-cp310-cp310-manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 ae44cd3dc8111d44005eeeafcb1e991a5b6f202f9017eff8a12f00da6b8af4a6
MD5 feb3a27998e8bd2bfc2f9d8f8bc79e73
BLAKE2b-256 ba47b636fcdfe3f51d04fd5e0e8fbe0eebf56f1c264c486b4d35a9c2043340aa

See more details on using hashes here.

File details

Details for the file pytvm-0.0.14-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytvm-0.0.14-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 1334230ca7acfd99ad0773a05cb37d5462dd57ddd6a76448dd2b149167296930
MD5 8229976551815afc812d9234221f2a5a
BLAKE2b-256 8178bf2bff62675558601bcd3a3cce77a8e62000be4b9e6a01bebf4484a7dedf

See more details on using hashes here.

File details

Details for the file pytvm-0.0.14-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pytvm-0.0.14-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d67d044976c23431c2dacd8673df697e8fe630062914441b96e2177a26aa0143
MD5 c0914d4bd9964b227230d7bfb48db481
BLAKE2b-256 13a17b5dbd3531544c72e95b0e16d8c431b3f9fa494da3ff7ac9f6bdc2d8c479

See more details on using hashes here.

File details

Details for the file pytvm-0.0.14-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pytvm-0.0.14-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pytvm-0.0.14-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1445070573cb6e7069e06604db5299eaa1f33a06755797f6e0a736c6fb8a33f4
MD5 7b2f366e4bbe6cb6922f8454a1c713bb
BLAKE2b-256 d5b2556a42d51f069a7a42ee322a09e73dab98b5a4032062884c7404e027e75e

See more details on using hashes here.

File details

Details for the file pytvm-0.0.14-cp39-cp39-manylinux_2_27_x86_64.whl.

File metadata

File hashes

Hashes for pytvm-0.0.14-cp39-cp39-manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 f1fa02c5c06de840d66ca3c2786ad14cad7d44c23a01a1d91f3dd265cacda124
MD5 5ce3a8192293d017defa264e54863c01
BLAKE2b-256 80a7c2af307d6a9f5f5a4a759679e8052bbf336c283ae9bed2afbaa5638682b1

See more details on using hashes here.

File details

Details for the file pytvm-0.0.14-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pytvm-0.0.14-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f7788be75b0b5aa86862b8c59ea1e448ea26f8576f573071c2930172980b3098
MD5 5d06d34016db0609609764eef08b5920
BLAKE2b-256 8b455fd3770b9f93450a5b2599ced4b4e53fdf5dccc92cf52005626c8437760e

See more details on using hashes here.

File details

Details for the file pytvm-0.0.14-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pytvm-0.0.14-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 02e92a1b43aacef781d1743840fbff61f7f86c5ab7941079d19016cc3389dc7b
MD5 8534fa9d3715ff38c9397d535c9a5aeb
BLAKE2b-256 b36e4808bd4b34f6494cb4e1492954dec765c0f85cbdbe7f0df26767bbe48f11

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page