pytoniq-core
TON Blockchain SDK
What it is and what it does
pytoniq-core is a low-level SDK for the TON blockchain, providing the foundational data structures and cryptographic primitives needed to interact with TON at the protocol level. It handles binary serialization (cells, slices, builders), address encoding, key generation, signature operations, and TL-schema (de)serialization—the wire format used throughout the TON network.
The package is organized into five main modules: boc (binary object containers and address handling), crypto (ADNL cryptography, CRC functions, key and signature operations), proof (Merkle proof verification), tl (automatic TL serialization), and tl-b (wrappers for TON's block schema and custom schemes). It targets developers building blockchain tools, wallets, or protocol-level applications on TON, and is actively maintained with support for Python 3.9 through 3.14.
Use it for:
- Building TON wallet or node software that needs to serialize and deserialize blockchain messages.
- Verifying Merkle proofs from TON blockchain data to validate state or transaction inclusion.
- Implementing custom TON smart contract interaction libraries that require low-level cell manipulation.
- Generating and managing TON addresses and cryptographic keys for protocol-level operations.
- Parsing and constructing TL-serialized data structures for TON network communication.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
pytoniq-core provides low-level primitives for working with the TON blockchain: binary object containers (cells, slices, builders), cryptographic operations, Merkle proof verification, and TL-schema serialization for blockchain data structures.
Yes, if you are building TON blockchain applications and need low-level protocol primitives. The package is actively maintained, has no known vulnerabilities, and installs with low friction. However, verify the license terms first—they are not declared in the metadata—and confirm it fits your use case, as this is a foundational library, not a high-level wallet or node interface.
Install
pytoniq-core on PyPI
pip
pip install pytoniq-coreuv
uv add pytoniq-corepoetry
poetry add pytoniq-coreInstalling pytoniq-core
Before you install
Low friction: pure Python wheel with six runtime dependencies (pycryptodomex, bitarray, requests, x25519, setuptools, PyNaCl). Active maintenance—last commit 2025-11-30, release 7 days old—suggests ongoing support.
License in practice
License status is unclear; neither SPDX nor raw license metadata is available. Verify the actual license terms in the repository before using in proprietary or copyleft-sensitive contexts.
Quickstart
pip install pytoniq-core
from pytoniq_core import Cell, Address
# Create a cell and address
cell = Cell()
addr = Address('EQBvW8Z5huBkMJYdnfAEM5JqTNkuWX3diqYENkWsIL0XggGG')
Requires Python 3.9 or later; depends on compiled cryptographic libraries (pycryptodomex, PyNaCl, x25519).
Verify before relying
- Whether the package is suitable for production blockchain applications or primarily for development/testing.
- Performance characteristics when handling large or deeply nested cell structures.
- Compatibility guarantees across minor versions given the active development pace.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — pycryptodomex, bitarray, requests, x25519, setuptools, PyNaCl |
| Maintenance | actively maintained — 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 120,396/month — #12,024 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pytoniq_core-0.2.0-py3-none-any.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
pytoniq-core-forkProvides TON Blockchain SDK primitives for…
unclear · top 15,000 on PyPI
tonsdkLow-level Python library for interacting with…
permissive · top 15,000 on PyPI
opentimestampsA Python library for creating and verifying…
copyleft · top 15,000 on PyPI
opentimestamps-clientCommand-line tool to create and verify…
copyleft · top 15,000 on PyPI
cryptographycryptography provides cryptographic recipes and…
permissive · top 100 on PyPI
scalecodecEncodes and decodes data using the SCALE codec,…
permissive · top 15,000 on PyPI
eth-rlpProvides RLP (Recursive Length Prefix) encoding…
permissive · top 5,000 on PyPI
chiaposPython bindings for Chia's proof-of-space…
permissive · top 15,000 on PyPI
trieImplements the Ethereum Merkle Trie data…
permissive · top 15,000 on PyPI