Skip to main content

Python bindings for aiken

Project description

pyaiken

CI PyPI version PyPI - Status

This package supplies python bindings for the package aiken. The bindings are added on a per-need basis, currently only serving the development of opshin

Installation

Install python3. Then run the following command.

python3 -m pip install pyaiken

Usage

from pyaiken import uplc

# Tools for handling UPLC

### uplc.flat
# Print the hex of the CBOR encoded flat-encoding of the program in UPLC textual notation
code = uplc.flat("(program 1.0.0 (con data #01))")

print(code)
# prints "490100004c0101010001"

### uplc.unflat
# Print the UPLC in textual notation from the hex of the CBOR encoded flat-encoding
code = uplc.unflat("490100004c0101010001")

print(code)
# prints "(program 1.0.0 (con data #01))"

### uplc.eval
# Evaluate a UPLC program with the given arguments (all in textual representation) and cpu and memory budget (optional, in this order)
# Returns either computed UPLC value on success or thrown error on failure,
# logs generated through trace
# and the consumed cpu and memory steps
((suc, err), logs, (cpu, mem)) = uplc.eval("(program 1.0.0 (lam x x))", ["(con data #01)"], 1000000, None)

print((suc, err), logs, (cpu, mem))
# prints "('(con data #01)', None), [], (92100, 500)"

Building

In case you need to build this package from source, install Python3 and Rust and proceed as follows.

git clone https://github.com/OpShin/pyaiken
cd pyaiken
python3 -m venv .env
source .env/bin/activate  # or in whichever environment you want to have it installed
pip install maturin
maturin build

The package will be installed in the active python environment.

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

pyaiken-0.5.1.tar.gz (17.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyaiken-0.5.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pyaiken-0.5.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pyaiken-0.5.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pyaiken-0.5.1-cp311-none-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.11Windows x86-64

pyaiken-0.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pyaiken-0.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

pyaiken-0.5.1-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (3.5 MB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64macOS 11.0+ ARM64

pyaiken-0.5.1-cp310-none-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.10Windows x86-64

pyaiken-0.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyaiken-0.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

pyaiken-0.5.1-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (3.5 MB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64macOS 11.0+ ARM64

pyaiken-0.5.1-cp39-none-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.9Windows x86-64

pyaiken-0.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

pyaiken-0.5.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

pyaiken-0.5.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (3.5 MB view details)

Uploaded CPython 3.9macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64macOS 11.0+ ARM64

pyaiken-0.5.1-cp38-none-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.8Windows x86-64

pyaiken-0.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

pyaiken-0.5.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

pyaiken-0.5.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (3.5 MB view details)

Uploaded CPython 3.8macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64macOS 11.0+ ARM64

pyaiken-0.5.1-cp37-none-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.7Windows x86-64

pyaiken-0.5.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

pyaiken-0.5.1-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (3.5 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64macOS 11.0+ ARM64

File details

Details for the file pyaiken-0.5.1.tar.gz.

File metadata

  • Download URL: pyaiken-0.5.1.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.17

File hashes

Hashes for pyaiken-0.5.1.tar.gz
Algorithm Hash digest
SHA256 e1bb45932a402c695bc5f9fd56209e9e9b7a664c9252ef782202fafae8369611
MD5 a2f332ba9e55679d7ac8b8efe9b09d50
BLAKE2b-256 6cff72ba2d762c9b18216c8d0ac16698270c2204a255a9701b9f1106f2637fae

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 94d5d6bd608671763e5861ce32f6abedbee5c624fbe82a73e56b8611a04d928b
MD5 661f4caef98ad229c96e2788191707cc
BLAKE2b-256 1b1373874c6131424a77d78467d5a00d708a2b91228eb356772b6c3d91bf01b6

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 390699fb76b510dac59d3535557ab64d23a44d39d96c9d31cec4c583845cd640
MD5 97970ffe73a2f3e9a682cc716da1206d
BLAKE2b-256 f0f8de8556ae11478a8bec17fc523ccbeb0c72e5608448c05ee2f55d69335240

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f5314640c347a60e7c7fdcee7d18a3c1480f512e52ee6a77c2b8989b161b7d47
MD5 c2709451bb5859f4ec8649d4727de227
BLAKE2b-256 7b7649e3c386090a2b21211db717268d20795b13cbfd1d6d52c177a3268d3f64

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp311-none-win_amd64.whl.

File metadata

  • Download URL: pyaiken-0.5.1-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.17

File hashes

Hashes for pyaiken-0.5.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 31a00ae0a0b0efe7aedca034d5b2da8f094d8fef571db12c3a728c2475505229
MD5 e2f0340e565037f71af4a178a38c764c
BLAKE2b-256 9a2749c32d583ae0fe62cef9aff3e07662d78eee6aa2bf0b4d1d055418c42b93

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 25186bdc5ed1a7d3e60f1e893b729c15a0c727d5e6604dbf8e844d8da58b3c7b
MD5 ba246f3ca80b2a3f175eceadbbdb4a0a
BLAKE2b-256 4b70072e3260af5d7283f9532810ed5df1ef2500f3ca379e61334e2d426365ba

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ca544715e9b8e94941373127f787ce9f4f8d1d24db44bc9ad6876fdaf6a5c040
MD5 f70f28ade05f8f9dc173855d71e339dc
BLAKE2b-256 ab73d4c90a31f7e46ba5f2b8a97339d09ea8d82e682f4add4fdd9bf95e13acf6

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ea1f612b81f2a26c55314497991f42f7afd9f6b56d33827186892e299527c0c8
MD5 3b51fad1a9abe9930491f739558dad69
BLAKE2b-256 2a37002934e329c3545bf8dd43655926aedeab1689e95808c4f8fa6947d39739

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp310-none-win_amd64.whl.

File metadata

  • Download URL: pyaiken-0.5.1-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.17

File hashes

Hashes for pyaiken-0.5.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 282d49e7130ec45cdff6db5343895314d6924d91ed560ddf9415d17de264838a
MD5 3fab1f297cad8d1d97bac36abb822e50
BLAKE2b-256 5aa40267b96b5dbad5fe1a96c377cb294af4f4de3ed9f5d7241e5d0f6025a4cd

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b8c35d767ee858c231a4b5b7cea211edb8d5bf1936bc9327e3f05cb441b56c2b
MD5 74e1e1c5072223d81fcb09480825726a
BLAKE2b-256 467adc0793c7ae96f20d0c966be14e92e0b6256fc046f0d4753160717735b883

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a8dd61997601b7d27dd5c2a64371090d6acbd4bb15dd034add63b1d7b9986c2a
MD5 71cd1a4fc6ea650a1036bd94b230bcea
BLAKE2b-256 72fabbcb39b61b271fc5d201d8970ad59351735148e7c8885ad2e7625a30fdca

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a0fa9aee119c87ca733143904b11ffa6756e9a2a730d52b87d91809ac768ba3a
MD5 549de6592099a4f858ed6899bff42acf
BLAKE2b-256 9c356a309c046bea491ff80a4093db182e90ef5791b9f537cab03aaa47f1a720

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp39-none-win_amd64.whl.

File metadata

  • Download URL: pyaiken-0.5.1-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.17

File hashes

Hashes for pyaiken-0.5.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 25c5495979bdbcab9ac07af6574e7c183162c5f68e371e30a1749d859889e00f
MD5 55e7b42a189b793ed63a4dc0cea3a51e
BLAKE2b-256 5b1ebc1e2b0c75fcc66a9cb3d159f44d1d4085dedfb13e40125b7fa3a77212ec

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 de6cb1353b54a121f0c97b74cd1b12cc6428b24cd0918a5fa0020417507b0e13
MD5 d5e588c83c75ab7420228535be25c355
BLAKE2b-256 bb20aa32bbce7b8d03d5e7efc571068cad6b17f0cc825236d7a18331a7e7a717

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9482b42f550787b8f45c241f4c02bc45ca553732bc10302756e26d6884229c30
MD5 619c74699aa96c19c257df5cf0a8ea02
BLAKE2b-256 98eefe0d1645850e87300febf0fe36e37b97d3f245b65b883cb18046dd8046cb

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2805b806209fa856a2f4a4baf54ef6b5e0f5a054cf2234dd049eae9e0c77a5b6
MD5 f10e6602e236406b88c13344e83f9510
BLAKE2b-256 61f52524755e8269a7ad8f1f8e3627168248b635ec8fc8d732fe89cd2f240419

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp38-none-win_amd64.whl.

File metadata

  • Download URL: pyaiken-0.5.1-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.17

File hashes

Hashes for pyaiken-0.5.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 cf7ab846660169577f9503f3472b9ed3824f5344379766f69a179b12657dff71
MD5 c7d3a78f859d466f3f5767ccbaa8b865
BLAKE2b-256 b5bd2b942cf703d959a2e98477f4a48a293680f8f7e2b3b790980616f944e295

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7ef1b17e1c2e0bfabe44782e8c04356a25a7bf8c602cf071c8688c3d7ec2c23f
MD5 1e992f431590b21a63a9a3843ee3a5ac
BLAKE2b-256 d535198094bfd72391d216e3a0338dd84f183681f0b033ed05d787026c486e26

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 31a04cfe1b0729b91323ba7dffb915b61edf86d5fdc33ad099542c068bd13b41
MD5 fe5fbb67b108f0a44bb2912894a200d0
BLAKE2b-256 12b0c32b864b0edd23aaf97fab5c2a2fea1820536c755a671f2400e8b1374087

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e39616d3af2c092eba6aad149c676c9351015994f82899983247736907d20390
MD5 dc60b792bc44f25277e0b6f57e63a854
BLAKE2b-256 96fe7a76001bb4d936bfd6f7a6cd3a04bfad0b440aad346b32b86b219ddf26be

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp37-none-win_amd64.whl.

File metadata

  • Download URL: pyaiken-0.5.1-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.17

File hashes

Hashes for pyaiken-0.5.1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 d02cdebb90f3915e20706d44e7a3dfa77964ee97b0755a18b652d94217ec2101
MD5 972859d72e8349ef3c80bd6f78c3f9c7
BLAKE2b-256 2c35037258bb425d8eee91e1732b38f99df11c30df98bfc0e9fdc406d7b82467

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 28425ae1283d297729b40f5eced679d2e580013fe35f0140b317ca03d6787e51
MD5 88436d908e387c8321fd63b35f6124a8
BLAKE2b-256 41742ede9203da832c30dae09e88e96912427b1148161d1fc966400bd9cb9838

See more details on using hashes here.

File details

Details for the file pyaiken-0.5.1-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pyaiken-0.5.1-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 de516293ec3ef7068326f5a692effc0b9da0289b2881a2b64e0e372968c9b1f6
MD5 467e2c2c2cda48ca82334894d6590d30
BLAKE2b-256 0ad0cd1c08cf862c86df8eeb5b8c89094dca5b16eff0145e3ec389e9c941896b

See more details on using hashes here.

Supported by

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