Python implementation of untyped plutus language core
Project description
Untyped Plutus Language Core
This is a basic library to support creating and manipulating programs written in UPLC.
Installation
Install anything between python 3.8 and 3.10. Then run
pip install uplc
Usage
This tool may be used to parse, reformat (/dump), evaluate or build contract artifacts from UPLC code.
# Check validity of a source file
uplc parse examples/fibonacci.uplc
# Dump a source file in either the aiken or the plutus dialect
uplc dump examples/fibonacci.uplc --dialect aiken
uplc dump examples/fibonacci.uplc --dialect plutus --unique-varnames
# Evaluate a UPLC program on UPLC input
uplc eval examples/fibonacci.uplc "(con integer 5)"
# Build smart contract artifacts from the UPLC program
uplc build examples/fibonacci.uplc
Scope and Contributions
This is a side product of the development of a pythonic smart contract language for the Cardano blockchain and hence much tailored to the needs of that development.
Contributions are very welcome.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
uplc-0.5.3.tar.gz
(25.5 kB
view hashes)
Built Distribution
uplc-0.5.3-py3-none-any.whl
(27.5 kB
view hashes)