Skip to main content

Python implementation of untyped plutus language core

Project description

Untyped Plutus Language Core

Build Status PyPI version PyPI - Python Version PyPI - Status Coverage Status

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


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.2.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

uplc-0.5.2-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file uplc-0.5.2.tar.gz.

File metadata

  • Download URL: uplc-0.5.2.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for uplc-0.5.2.tar.gz
Algorithm Hash digest
SHA256 318d9d74e2a6428f1e54da494ce63c17af451b07c1fd71369e57c2002263a35b
MD5 9fc4ba2dffbf96b859a71a0033ecac92
BLAKE2b-256 f6bea072485b9433d3662abb01f493f0d194f578a093c4c552fc817351c5d24d

See more details on using hashes here.

File details

Details for the file uplc-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: uplc-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for uplc-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee8abb6086a8069629231af79bdbc2e9f36c767dd64c27aa85bd6a6b52fbbac3
MD5 d41b69dfc3450365dafd0f56e2998015
BLAKE2b-256 74e7b70963cf9340baad98f2537c5a66ff8aef6622f86f140fd0f3f66195f20c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page