Registry / crm-productivity / chialisp-stdlib

chialisp-stdlib

JSON →
library0.1.1pypypiunverified

A standard library of Chialisp `.clib` files for use with the Chia blockchain. It provides common utility functions and macros for writing Chialisp smart contracts. Version 0.1.1 is the latest, but the library is in early development with an undefined release cadence.

pip install chialisp-stdlib
INSTALL
IMPORT
SIG · CHIALISP-STDLIB
C
chialisp-stdlib
crm-productivitypythonv0.1.1
Install
3.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.5s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

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

load_clib
from chialisp_stdlib import load_clib
from chialisp_stdlib import load_clib

Import the library and load a .clib file as a string for use in your Chialisp compiler pipeline.

from chialisp_stdlib import load_clib # Load a standard library file as a string stdlib_code = load_clib('condition_codes.clib') print(stdlib_code[:100]) # Alternatively, include during compilation (requires clvm_tools) # from clvm_tools import compile_clvm # compile_clvm('my_contract.clsp', include='./chialisp_stdlib')
Debug
Known issues
deprecatedThe library version 0.1.1 is very early and may have breaking changes in future releases.
fix
Pin to a specific version and watch the repository for updates.
affects: all versions
gotchaThe library only provides raw .clib file content as strings. It does not compile or execute Chialisp. You need clvm-tools or another compiler to use the loaded code.
fix
Install a Chialisp compiler (e.g., clvm-tools) and handle file inclusion in your build pipeline.
affects: all
gotchaThe package name uses a hyphen (chialisp-stdlib), but the import module uses an underscore (chialisp_stdlib).
fix
Use `from chialisp_stdlib import ...` in your Python code.
affects: all
Upgrade
Version history
0.1.1latest on PyPI · released Nov 10, 2023
Audit
Dependencies
clvm-toolsrequiredRequired to compile Chialisp with standard library includes
Agent activity
57 hits · last 30 days
node
48
OpenAI (training)
1
Resources
chialisp-stdlib — pip install chialisp-stdlib · libregistry