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 eopsin

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), [], (9907900, 13999500)"

Building

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

git clone https://github.com/ImperatorLang/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.4.0.tar.gz (15.9 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.4.0-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.4.0-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.4.0-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.4.0-cp311-none-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.11Windows x86-64

pyaiken-0.4.0-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.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

pyaiken-0.4.0-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.4.0-cp310-none-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.10Windows x86-64

pyaiken-0.4.0-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.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

pyaiken-0.4.0-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.4.0-cp39-none-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.9Windows x86-64

pyaiken-0.4.0-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.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

pyaiken-0.4.0-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.4.0-cp38-none-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.8Windows x86-64

pyaiken-0.4.0-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.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

pyaiken-0.4.0-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.4.0-cp37-none-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.7Windows x86-64

pyaiken-0.4.0-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.4.0-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.4.0.tar.gz.

File metadata

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

File hashes

Hashes for pyaiken-0.4.0.tar.gz
Algorithm Hash digest
SHA256 083b2db369fb55ad1cdf7d8f9cd9b9e0bb98c3363d5dc67a8ba1492801a72f57
MD5 42b34e4c8ca3f55ff2071d990148e2ac
BLAKE2b-256 d74cb799b894ca7da12430cd68ed52836eac19919b7f6a8759be84c681040fda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f480cc52f9df0acd36ac8e3723352ce0da3a0ec724bc5f07e5b6745205615c3b
MD5 174d559fe84b4c8ac7a13d7fff5dbccd
BLAKE2b-256 34d55d481217c4e668f101c3a8ec407656d8c33d277329920986c3a2cb9fcdcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3d3e21f96adae2578bbaf57b27d22e0107de54a5690b19878857656f38074889
MD5 5414147f6f5387cd5b5f196d3fa43fd0
BLAKE2b-256 2a12a65883bc9ad46b6310482829fed78737daf5a408cea02daac22c01de93dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8cfbcdedd7b420a61e115d525c108e1ed9a2f54d3836715b8d1d8e25ee2615cf
MD5 5f684224a4cc14ee26db06ae54587df9
BLAKE2b-256 accd8c5fccd2c8baa6d7c9d294fcb9c6a535a67af568e4096fd32a5d5a4a2229

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyaiken-0.4.0-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.14

File hashes

Hashes for pyaiken-0.4.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 7ada1ea0be5f7782d13186cd5fbce744b7446fddc8b2df03dac2df5e77148e06
MD5 d985ae44ab4df6d1b97af404ad085e30
BLAKE2b-256 daff5148d187d5e503420804c177c9bcb741971a77af9313057fd226136c9f4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0461ba51df27552ec94b04943e9cd5784d391a7dfbcb20936ba6e0f751caa43e
MD5 e2fede5b24305d6573570763c3f51f6d
BLAKE2b-256 1bc67ed030a64da30034203a9b1b8c345e9a65ca9ad9c00dfb3fe036ccfdc9d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 308ea50c4accc6fd273f0690ce5b7d2784ffa6ce91aa9e2c9f715193fa541ee4
MD5 58d1e394359c59c5460454c6241c3d9f
BLAKE2b-256 951aa098ea847a1ce9d2854eea2c760a4e3b7b11699e244d1dde9fbccc664f0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8bfe5fdeebc7d955f4d80ff3b16a2c023f975a5741ca952d5852eae7b27f51ef
MD5 c4b364d30a67f71e3b8c574fc023bcf0
BLAKE2b-256 b2f4a9536ab8485c1ed90cf26bdabd05d0eed2dbdac8c0fda8c7cd470ce3939b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyaiken-0.4.0-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.14

File hashes

Hashes for pyaiken-0.4.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 5b9fb858b8d87148f709c53b6c9d371b2771ad6fe1183b05cfd5a330b48132fb
MD5 224220f6a9d0891b2ab3bbcf8ac1ce60
BLAKE2b-256 2a36975273846e7fd8492ebb36482773d6c3d5840266862870efece51894f2d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 abd79bffbfcf729030e3358cd772c349157576fbbcc3757720311c027d4abfaf
MD5 371b4d811033df44e53a30a92aa1a9b1
BLAKE2b-256 c132637ad51f6c9717772930273752fbe1a27d0a0b93194e6b50c720cb247c0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cedfa5c1658c0e66299e2d15a4304661a63dc319aba13a7c5c69fef4c852c68b
MD5 dccd7fa16678084333b06ddbd241cccc
BLAKE2b-256 515cb2d81f9e2746cb39bcda825f528fadf2a6fdd5385db874a8002279aa50ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c7cd6e02df007dff5ac7c6f80d7279857008670dfdae6793bac4634a000010db
MD5 aba98ec6f64687adde0f8a9593b17d41
BLAKE2b-256 5eb5e0b66c0e835a37ef8b396f25c781a9511d4384774a6a13cac519448a9346

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyaiken-0.4.0-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.14

File hashes

Hashes for pyaiken-0.4.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 8975f1d1a87c1f5f59e876522d8a3496c6f4750332f579808d4bf22ffe7144cc
MD5 c55749b0157fb965ffe33673168289a9
BLAKE2b-256 b5a9dd606bf93fb6771bc5d7fef5985d8c806594656925817cda6bdd5769b48c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0048d65a1bed02d9a576063553103ca057c8e250114fef3f5d2553ee0b170a49
MD5 9a9ef892b33735e6c04d6bcf57265ae0
BLAKE2b-256 dc1dfcfff782f4293fecabd1e6473bd2c4aa40303d7e02de476ccc745597168b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1b0368539d52f81997cb6af85179abe97a24780a80acfe3dfc8d46808e9670cc
MD5 e82bec6f84116763ad054aadba38aea7
BLAKE2b-256 6787eab467eb7218d01a5acbea860c35015dd5d131cb820cb5cb6157dab8c545

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ed319fdde3c736a0f3afe5e0f9a5cb2e3eaf606547eb5b03fd35e80a9dc700fd
MD5 ba02570a54579780aa3aebb41fa87cfa
BLAKE2b-256 42636862c5cbfdcc67c74eabb1a274f9a275d955d20220b878e226e515a8b46f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyaiken-0.4.0-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.14

File hashes

Hashes for pyaiken-0.4.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 4a96829350e69c403d63b0efb9e2a9019d5bcbf5b3831327249f6644560ab4e7
MD5 840917f2d2800ba816425d4ad7021b5e
BLAKE2b-256 10a04e38abfe81510985498c92aa70ef956afa5e2b2d79095d45604adab18e8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e0fe51e1e313b2fd0a7ed77cc05720258ec6a9e3309cc220cc56f6f97e679b49
MD5 55322d62f486674be10228f8adac194e
BLAKE2b-256 577d95279291f64f39b323ae27b3e074b4979bb45c104b8a45e8c2b8e91ddf82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3d735eb81ce0aa3419094556d1df85bf2a58e6a3a4e519760097c85e69629cc9
MD5 c7ca941b35f3d242c4a1a1ba559d1659
BLAKE2b-256 088af24582881fc0d843522deb9c2a290c5c306139b86dfda3bac283afc207ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 745ae349ff0eb904a93d75f00f5b6be6076374d0b79c52820dee6df04edda8e0
MD5 b219250c170b1ecb4d80f73a399858fd
BLAKE2b-256 1151fde3448f2e1d692923452cc2a3ab660c3df4692df901f7facb9d85691fc9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyaiken-0.4.0-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.14

File hashes

Hashes for pyaiken-0.4.0-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 0aefe41206c2ecf6539480fade621e017097ea697a5101db70ba6e76b3d1eba5
MD5 366d1fd0b88a0ba5c31fb2a34f3be5cd
BLAKE2b-256 e901661f26d5e61ac7bf149fa73f0c312bdc844323c0e2c61712cb5a6b573505

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 abe39b0b18b151fbdfc39ea9c458b2d77433d6f4c662b55db4a3abc9ce14da0c
MD5 0e6e417d4a2c69bdb8dafa70a853de6d
BLAKE2b-256 63cb285201cf9744bf0a0030488d382dd922ffa903e2bbc4439eaa7519ab0286

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyaiken-0.4.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 844e9ebbcb2574d0d5f12024fc550604adfc63535098eeef0e990aa8116f20ea
MD5 6047a28bbc55fbd18bfec4f05ad19aa8
BLAKE2b-256 1f0f4437840cf4decb02b7c9f5f016d827a84a3404b64541f5089e19e68683a3

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