clvm-tools-rs
tools for working with chialisp language; compiler, repl, python and wasm bindings
What it is and what it does
clvm_tools_rs is a Rust port of Chia's Chialisp compiler and CLVM tools, providing both a Python library and command-line utilities for developing smart contracts on the Chia blockchain. It compiles Chialisp source code to CLVM bytecode, executes CLVM programs, and offers interactive debugging and disassembly capabilities. The package includes a Python API for programmatic compilation and a set of CLI tools: run (compiler), repl (interactive evaluator), cldb (stepwise debugger), brun (bytecode executor), opc (s-expression to hex), and opd (hex to s-expression).
The package has no runtime dependencies and ships as precompiled wheels for major platforms (macOS, Linux, Windows). It is actively maintained as part of the Chia ecosystem. Installation via pip provides a subset of tools; full functionality requires cargo installation. The codebase includes both a ported classic compiler and a newer simplified compiler selectable via source directives.
Use it for:
- Compile Chialisp smart contracts to CLVM bytecode for deployment on the Chia blockchain
- Debug Chialisp programs interactively using the REPL or stepwise debugger (cldb) with YAML output
- Convert between CLVM s-expression and hex representations for low-level program analysis (opc/opd)
- Integrate Chialisp compilation into Python build pipelines for automated contract compilation
- Execute and test CLVM programs directly via the brun tool or Python API
- Develop Chia blockchain applications using the Python bindings within a venv or conda environment
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Compiles and executes Chialisp programs to CLVM bytecode, providing Python bindings for the Chia blockchain's smart contract language alongside command-line tools for compilation, disassembly, and interactive evaluation.
Yes, if you are developing on the Chia blockchain or working with Chialisp. The package is actively maintained, has no runtime dependencies, ships precompiled for major platforms, and offers both Python and CLI interfaces. The Apache-2.0 license poses no restrictions. Install friction is moderate due to platform-specific wheels but manageable. No known vulnerabilities. Verify Python version compatibility before installing.
Install
clvm-tools-rs on PyPI
pip
pip install clvm-tools-rsuv
uv add clvm-tools-rspoetry
poetry add clvm-tools-rsInstalling clvm-tools-rs
Before you install
Medium install friction due to compiled wheels for multiple platforms (macOS arm64/x86_64, Linux aarch64/x86_64, Windows x64, musl). Last release 379 days ago; repository is active with recent commits as of 2026-08-12, indicating ongoing maintenance despite infrequent version bumps.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions—suitable for most development and deployment scenarios.
Quickstart
from clvm_tools_rs import compile_clvm
compile_result = compile_clvm(
'path/to/program.clsp',
'output.clvm.hex',
include_paths=[],
include_symbols=True
)
symbols = compile_result['symbols']
Wheels are cp39-abi3; no runtime dependencies but compilation from source requires Rust toolchain and maturin.
Verify before relying
- Exact Python version range supported (wheels are cp39-abi3 but requires_python is unspecified)
- Whether all command-line tools (run, repl, cldb, brun, opc, opd) are accessible via pip install or only via cargo
- Performance characteristics compared to the original Python clvm_tools implementation
Package facts
| License | Apache-2.0 (permissive) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 379 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 412,365/month — #6,847 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: clvm_tools_rs-0.4.0-cp39-abi3-macosx_13_0_arm64.whl; clvm_tools_rs-0.4.0-cp39-abi3-macosx_13_0_x86_64.whl; clvm_tools_rs-0.4.0-cp39-abi3-manylinux_2_28_aarch64.whl; clvm_tools_rs-0.4.0-cp39-abi3-manylinux_2_28_x86_64.whl; clvm_tools_rs-0.4.0-cp39-abi3-musllinux_1_1_x86_64.whl; clvm_tools_rs-0.4.0-cp39-abi3-win_amd64.whl
Keywords: chia, chialisp, clvm
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
clvm-rsRust-based implementation of the CLVM virtual…
permissive · top 15,000 on PyPI
clvm-toolsCompiles a LISP-like smart-contract language…
permissive · top 15,000 on PyPI
chialisp-stdlibProvides path access to Chialisp standard…
unclear · top 15,000 on PyPI
chialisp-builderManages build-time compilation of Chialisp…
unclear · top 15,000 on PyPI
chialisp-puzzlesLoads and provides access to standard and…
unclear · top 15,000 on PyPI
chialisp-loaderLoads compiled Chialisp programs (`.hex` files)…
unclear · top 15,000 on PyPI
clvmA LISP-like virtual machine for writing and…
permissive · top 15,000 on PyPI
chia-puzzles-pyProvides Python bindings to the standard Chia…
unclear · top 15,000 on PyPI
chia-rsProvides Python bindings to Rust crates for…
unclear · top 15,000 on PyPI
chiavdfProvides Python bindings to a high-performance…
permissive · top 15,000 on PyPI