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

Uploaded Source

Built Distribution

uplc-0.4.1-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for uplc-0.4.1.tar.gz
Algorithm Hash digest
SHA256 9fbb54d62e486b835dc2d1d89e8dba0a5925819ef92606740fcf63d2d4c94b01
MD5 bc5d55f8f4898d21c84daabf6860c92d
BLAKE2b-256 5bc12a06bbd504aa74a5a6fddd00644cfc0e14b87fa9b604e6beb830941a3427

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uplc-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1502555bbe914afac4a92b73bf19162482363197f3134072bcb914faf232a9e4
MD5 0014d2b703b15e672d71826dbff270be
BLAKE2b-256 ecd6e21fbe6d6ccc60219977c2348c40c8423430d8c42573a9d7097051f2e7bd

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