Registry / devops / chialisp-builder

chialisp-builder

JSON →
library0.1.2pypypi✓ verified 81d ago

A Python tool for building Chialisp programs with recursive dependency resolution. Version 0.1.2 is the latest stable release. The library automatically identifies and includes dependencies when compiling .clsp files to .hex, maintaining compatibility with Chia's smart contract ecosystem.

pip install chialisp-builder
INSTALL
IMPORT
SIG · CHIALISP-BUILDER
C
chialisp-builder
devopspythonv0.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ChialispBuild
from chialisp_builder import ChialispBuild
from chialisp_builder import build
calculate_dependencies
from chialisp_builder import calculate_dependencies
find_included_items
from chialisp_builder import find_included_items

This quickstart demonstrates the primary use case: compiling a .clsp file to hex with automatic dependency resolution.

from chialisp_builder import build # Build a Chialisp file and its dependencies # The builder automatically resolves and includes recursive dependencies result = build('path/to/smart_contract.clsp') print(result.hex) # Compiled hex output print(result.includes) # List of included dependency files
chialisp-builder --version
Debug
Known issues
gotchaThe build() function does not validate the Chialisp syntax; it only resolves dependencies and concatenates include files. Compilation errors may only surface when using a separate clvm compiler.
fix
Use the output .hex with a validator (e.g., clvm_tools) to check correctness.
affects: all versions
gotchaThe builder may not handle circular dependencies gracefully; infinite recursion is possible. Ensure your include chain is acyclic.
fix
Manually audit your include statements to avoid cycles.
affects: all versions
breakingThe function signature of build() expects a single file path argument; passing multiple files or additional arguments will raise a TypeError.
fix
Call build() once per file, or iterate over a list of files.
affects: all versions
Upgrade
Version history
0.1.2latest on PyPI · released Jan 4, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
20
OpenAI (training)
1
Resources
chialisp-builder — pip install chialisp-builder · libregistry