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

Uploaded Source

Built Distribution

uplc-0.4.2-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: uplc-0.4.2.tar.gz
  • Upload date:
  • Size: 21.3 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.2.tar.gz
Algorithm Hash digest
SHA256 836cff5d0d593091ed4dba2a6576792415df1205986df79382253156f4fdc056
MD5 eebaa0582cadf13ff2df1d4854f3c5fa
BLAKE2b-256 a34ffeeba2b06ab5e1fb9b7695f7c132dd05a8daad81db45ac18f12079ea97ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uplc-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 22.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 08c9f3a59f9cecfa27acb2f1722defc46edcb988114167ca31d53c59a8a91ba4
MD5 74fd77b24e684549ea480ed09025fbfd
BLAKE2b-256 b382ae6b8f38a090aa3ec017b177da57b9a8fab6f77538846af99551ed94a1ad

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