{"id":24471,"library":"pytoniq-core","title":"Pytoniq Core","description":"Core data structures and serialization for the TON Blockchain SDK. Currently at version 0.1.46, released under MIT license. Active development with frequent releases.","status":"active","version":"0.1.46","language":"python","source_language":"en","source_url":"https://github.com/yungwine/pytoniq-core","tags":["ton","blockchain","sdk","cell","serialization"],"install":[{"cmd":"pip install pytoniq-core","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Used for terminal UI in some tools","package":"blessed","optional":true}],"imports":[{"note":"pytoniq-core renamed its top-level module to pytoniq_core (underscore). Old import from pytoniq no longer works.","wrong":"from pytoniq.cell import Cell","symbol":"Cell","correct":"from pytoniq_core import Cell"},{"note":"Address moved to pytoniq_core package.","wrong":"from pytoniq.address import Address","symbol":"Address","correct":"from pytoniq_core import Address"},{"note":"Correct import path.","wrong":"","symbol":"Slice","correct":"from pytoniq_core import Slice"},{"note":"Function used to start building a Cell.","wrong":"","symbol":"begin_cell","correct":"from pytoniq_core import begin_cell"}],"quickstart":{"code":"from pytoniq_core import Cell, begin_cell, Address\n\n# Build a simple cell\nbuilder = begin_cell()\nbuilder.store_uint(42, 8)\ncell = builder.end_cell()\nprint(cell.hash.hex())","lang":"python","description":"Create a Cell with basic builder pattern."},"warnings":[{"fix":"Change imports: e.g. `from pytoniq_core import Cell` instead of `from pytoniq.cell import Cell`.","message":"Module renamed from 'pytoniq' to 'pytoniq_core'. All imports must use the new underscore name.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Always provide bit length: `builder.store_uint(42, 8)`.","message":"Cell builder methods like store_uint expect (value, bit_length) not just value. Common mistake: store_uint(42) without bits raises TypeError.","severity":"gotcha","affected_versions":"all"},{"fix":"Use `run_get_method_remote` in pytoniq if you rely on remote execution.","message":"Old TON SDK function 'run_get_method' renamed to 'run_get_method_remote' in pytoniq v0.1.35. pytoniq-core itself is not affected but breaking change in sibling library.","severity":"deprecated","affected_versions":">=0.1.35"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install pytoniq-core and use `from pytoniq_core import ...`","cause":"Old import path for core types. pytoniq-core now lives in pytoniq_core package.","error":"ModuleNotFoundError: No module named 'pytoniq'"},{"fix":"Call as `builder.store_uint(value, bit_length)`","cause":"store_uint requires two arguments: value and bit_length.","error":"TypeError: store_uint() missing 1 required positional argument: 'bit_len'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}