Python bindings for aiken
Project description
pyaiken
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
Release history Release notifications | RSS feed
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.4.tar.gz
(18.9 kB
view hashes)
Built Distributions
Close
Hashes for pyaiken-0.5.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5527bec12d315b10e5bdd60548883dcb7cba8a0fbebe43618ad03388802bc10f |
|
MD5 | 03cc9f14b72641d9f6fc69f6f8c19383 |
|
BLAKE2b-256 | 0a8d7b29d82d356e661440bfa26ba986ebeb47c9586e6c5b17d601b50d7abd04 |
Close
Hashes for pyaiken-0.5.4-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c8baf20a4fbb01f5fb534861d000fe969bcfa9a5e42dbf4724e108781ebb6b4 |
|
MD5 | bb15bb47b6cab1d325d500427cc52205 |
|
BLAKE2b-256 | 792a2da887b275faf9b89a5893b082ba356c0f941bfc3a138d49e0dcd8e4d994 |
Close
Hashes for pyaiken-0.5.4-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6510d82320e0c739dc1f968137ec2c4d447e28147fd2623b292baa06b6362b99 |
|
MD5 | 406d25eeea2061de7167d2f1f6683642 |
|
BLAKE2b-256 | 2b96b4a05d4808d070bdf5a62c2ffb22604d1b85b8fe69ebf4aa434adfa4060a |
Close
Hashes for pyaiken-0.5.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5d28d5d731b55a2990295ddfee302c522b3477de9e05c6e4388ba455ac4699a |
|
MD5 | 3a0214d64c040eff7254cdb77cfb0eab |
|
BLAKE2b-256 | d7ceba969686d108ef6f5d6b2570282a6c10a3793ddd5544f8b5c8efc444a996 |
Close
Hashes for pyaiken-0.5.4-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c94f732735491563fc7ae27066a4c286b9e812ab06a61f26a77a73071f2e7f1 |
|
MD5 | 98cedcd115d6761d911382a450456221 |
|
BLAKE2b-256 | f17c6163d0cd86ad7f712388a2b7fb9726224af8cc2579a7e58f2154e5b89800 |
Close
Hashes for pyaiken-0.5.4-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3244c1e358ddedf92eb5c58bd2813eb635c12f6a67efbc3c5d14565b0022ede |
|
MD5 | 03de34030a7e1a42f0accd6af615fa63 |
|
BLAKE2b-256 | 88cc6d4998b85a57fe665c54893d977eb85a722bf3edee3375bd55ed4504dd9b |
Close
Hashes for pyaiken-0.5.4-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b2324ffc084fbef79c9c5269e725e43c43503aa6792834b059af632f4d23aa7 |
|
MD5 | 67c7b2928fe3003a1daedfe60f3e57a6 |
|
BLAKE2b-256 | a2de9ee5a8c287c9c66a97b80f222f9dcea1bdd8f38456942124c1efb10a78d7 |
Close
Hashes for pyaiken-0.5.4-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff22c30f3fb0a8709790ce5dfb57c59d266d6eb6ab38fb1222f49e156ded4cf0 |
|
MD5 | b24acf52ba3ea07b0fccc2e6af2eb054 |
|
BLAKE2b-256 | af1110aea513debe39cb347b5532b7bffa3d4be437540aa0859dd33ea83a00e5 |
Close
Hashes for pyaiken-0.5.4-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8b51d92319c577ef53f393afb1cf1d1899db3384f46b4657e7c79a82382024d |
|
MD5 | ab65c57d4f7d65953f7b1d091261f319 |
|
BLAKE2b-256 | c254b646df5de7dfd9ee8636e2beaaf5120b830b08b6e7a4cca99f4a91f6b119 |
Close
Hashes for pyaiken-0.5.4-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d6ac42db4966b456f3fd9dc39dbb2b2a01496a214670dccf124790811ffa1a8 |
|
MD5 | 4f7e67f42bddaac69431c1e42a135131 |
|
BLAKE2b-256 | 7b4e0905289c2b43880e35dd040d084a1e7afd5be2b2b7b35cddf30fece5fb89 |
Close
Hashes for pyaiken-0.5.4-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df2e2316779751cfc1e47bd8d3519220fda7915f5a866c3d763a75d41c4362b3 |
|
MD5 | e526625154dc518890c9fea25f2600f1 |
|
BLAKE2b-256 | 06b3144f3c508ace9c9313f89c86b876afe5ebb9f07072ebb23c800cb55cab60 |
Close
Hashes for pyaiken-0.5.4-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79fa0d9265412874baf500cdac7e7ab2a575e65f593de858d323b7a47081a326 |
|
MD5 | 3832a058d419ec1733d51b4d91241461 |
|
BLAKE2b-256 | 1a09a6af8afe91a757f6dbc943bfb61173c3f092c3ae0d5dceb3657672381975 |
Close
Hashes for pyaiken-0.5.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0322eb5a63e0bdcacf3ee04513f7ab8e9b30fed62bcadbeaaa0f288e19109ff |
|
MD5 | e1625bd61dcbdb37981ab819d0ba99f9 |
|
BLAKE2b-256 | 9c67ce540ff964a26cf1e7d9983792911d1f9ac37c7f721d2ef3474f0f1d080d |
Close
Hashes for pyaiken-0.5.4-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97343a68f861fd36bab25a14b5c76cc7dd07caad1ec79b99b9c314d1a7afc6f4 |
|
MD5 | 708353bcc03c6c551fee7af05f1303e4 |
|
BLAKE2b-256 | 9a0add83ebc552b32061799a4ffebe46ba3de9ab7ad443b914f98712fd0e671d |
Close
Hashes for pyaiken-0.5.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f3dff6662bda9020ecbee49fb92643b1d6dcfdaed499b0c29bb31ba43a6dcc9 |
|
MD5 | 72c8c2b94919cc8332d8264fbd4d285d |
|
BLAKE2b-256 | 7ecd226ad74be9d61bb3d73f605661d049011ff9e9d213c3861b6f7d05891392 |
Close
Hashes for pyaiken-0.5.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acc9765f783ed8cfbfd060803aa2f87d40fa66c31bf4439747e6894bf36e0488 |
|
MD5 | a1b78e6c5444047138cad62275707f0c |
|
BLAKE2b-256 | 1192873c7c4ebdfebffe1115ad2a3cae8a0c624ff144f7b0dc1bffd2ab266a43 |
Close
Hashes for pyaiken-0.5.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4d15e63f3ad8af06debfb2144df366239d5128d49f3783900f99128d4318e2c |
|
MD5 | ac8a0d4c50030e63421bbb70faa85183 |
|
BLAKE2b-256 | 9add0cdeb49ce4588546471b2a70d0879827d3dcbc13ce15dfa4ff250f69863c |
Close
Hashes for pyaiken-0.5.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c37bb71d25d91f62a35aa3f873ecff92471a95c129f5a2e8d5769d1473b9233 |
|
MD5 | 56457435bd6aa8b893d14755b88a223d |
|
BLAKE2b-256 | 595ba584f881af93d6a522ff050a19daf37eeebacdaa26b713683cae1c3ed625 |
Close
Hashes for pyaiken-0.5.4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c350f8c747f055b683a7b850aee1c1d564ca4e514cecea9d3ab8c5b7df892c0 |
|
MD5 | bfdc46714e6556e5ff6682d08f3fe884 |
|
BLAKE2b-256 | 0f5eb4768bf73f4ffa2c718fb1a04797bac6c1bcc44b0ac54f93c3366ceb06ac |
Close
Hashes for pyaiken-0.5.4-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28e834a2bcc113b4ca8c8f062d314ba993a8745c0c0a83a254dba66061cc1578 |
|
MD5 | f45dd99af95f6ef0faa1edea25590e13 |
|
BLAKE2b-256 | 4a5f94bc2d7638cbe3c9d3c89606edbfa75f51b88725a8e3f581d73540679d26 |
Close
Hashes for pyaiken-0.5.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5c546e100f10f9a88c633cc94f9f5c2492c5b0d1f7acdda2c58d970d8c777c3 |
|
MD5 | a94bc3323c4b8c82fe4e0bee2aafdf32 |
|
BLAKE2b-256 | 2b28e782e6458337e8dacc10fe1b9895d8e86c969477152fa0d5aa94c93199b4 |
Close
Hashes for pyaiken-0.5.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c3e6f6565c1f922cd07f4b1707bb07ec75e5fafc9169d6fa73337ab7aeb990a |
|
MD5 | 4893644a9f654498a236f3adf75ce716 |
|
BLAKE2b-256 | b319d49815c50f884f37c89294ff5fdf8ef64fe878be1f4d2cc5e117c3b4981c |
Close
Hashes for pyaiken-0.5.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a3cad9263ff71de82414034cd7edb152e0cf4d8da1d6d6295b54a3809121a2d |
|
MD5 | fc55574a87b4e091cf20087a9499c236 |
|
BLAKE2b-256 | 0dd849a67957f40f65fc00a3fb1ac311f8393cb703f92fb90e2ffc452b4615c0 |
Close
Hashes for pyaiken-0.5.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca1f59e4bdfd95d47baf004134bde77849786ded20ff7549b6478d596a1cd31c |
|
MD5 | 1f4eba3ee41c830c053e31bf4c4720f3 |
|
BLAKE2b-256 | 5d4e13b1b60560ea99d774f4b2cfbb72d272034a7473141048e317d1579483ad |
Close
Hashes for pyaiken-0.5.4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1079475882fd6bb7512c41366b0ae947047215398e3f9585c0c24327405466c |
|
MD5 | e2e2caf41b6b74c90610f42484201ef0 |
|
BLAKE2b-256 | 3d0c7ee3e4c5279bd8830ada69008fb1908ece49c32c6db1f3a882d6f4f5dcf5 |
Close
Hashes for pyaiken-0.5.4-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcb360d807316a8ed5babdc7c55d3f2d3cb2faaa62e96bc1918282fcf441b070 |
|
MD5 | 8bd6d22352767a3537229bf532e0fc81 |
|
BLAKE2b-256 | 573887bf510d74dd4c45074c30fa482ca967829f0daf082b7d9d8180a38c2213 |
Close
Hashes for pyaiken-0.5.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f6718533ebb678cf7bbc9ce42d386ad6d67522a5f6145a9aec0ad4c2af7e3e1 |
|
MD5 | 6fee5442298e9ea6963a654892e47fbc |
|
BLAKE2b-256 | 0d5dcbb2444245c2e8031fc257cbeccfdcac9e07dcf100476013cb933b1aaf95 |
Close
Hashes for pyaiken-0.5.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cb11e07c5ba618ce5e2f9f7cf43fc0c978897bd58d2a3fa24780df4bb38c16b |
|
MD5 | 1d37f0a19f431d0979286cf87e1c8bfe |
|
BLAKE2b-256 | 165c455331def2315fe99f1e48139cb3fa6e6441dba84b6fe82e60b0a25ac5aa |
Close
Hashes for pyaiken-0.5.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2569e93ed745e254be0b8a32f2b42632e688e0c485ec855ca4732701e58140ae |
|
MD5 | 37eb2ed20a10c345fef61bf36e262f9d |
|
BLAKE2b-256 | 9e2514627bf7d2c3833aaca35a07fb4c2b4682c1aeb13306b6cdca1076fe2cac |
Close
Hashes for pyaiken-0.5.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 748e2d24fcd58df882664deba448a119140535e39a7e4dded78ec9b4378d2e86 |
|
MD5 | 552852ca4f7914dfc3448cd689243326 |
|
BLAKE2b-256 | cdfc327e2eaee0fb3f4c3386f27a950b1503fe95cefbdaa9c082656ff81e10b0 |
Close
Hashes for pyaiken-0.5.4-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c2c77d7dbf4483ed78dce28eef4fa38809c18981789bd7afe66d7bcfab5fc44 |
|
MD5 | d07d24a0ae216c1849ddf6d338dafd1a |
|
BLAKE2b-256 | 7c66076db4c516b4da7e6706521126032ba784b494137d1e6b87426e08a48c26 |
Close
Hashes for pyaiken-0.5.4-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aea12920edf066267693e44b55aecd0713bf75cfefc0dcb55604d5dd2768f902 |
|
MD5 | 2468c744ae19793ea18282479a86d73d |
|
BLAKE2b-256 | adc6341e0546f9f6e568f7697316950eb007d41db635373d8a6d54d120ff4951 |
Close
Hashes for pyaiken-0.5.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66b8347a348547510053dcdd3d553ce9fb02677830f47986def3cd68eb7b7b9c |
|
MD5 | 16fb54c4eef44a06cc2f8f47143e8799 |
|
BLAKE2b-256 | 0db44dd1621ed41303d92dcd0eea92256bf3f24c8bac8df5482e73b59cdb690c |
Close
Hashes for pyaiken-0.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be21d0e498f25f645f982143a23392ab0cda0626066bf4f89ce77f54c638418e |
|
MD5 | 85fd250fc76103a4389bfc4bc097acc7 |
|
BLAKE2b-256 | 46a21c53bc5a72eeb7a6578f27827a6b7960e36f567e296190dba144728d71d6 |
Close
Hashes for pyaiken-0.5.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb3d84117470dfbc365f2fb02bda95959052c2da40fcb4a21566f83e42fd2b40 |
|
MD5 | a1442338fec08ffe3e43f3095b0e067a |
|
BLAKE2b-256 | 5f845250205567178c50427e774f0578fcbce8f22baedc782562cb05d0dd01e1 |
Close
Hashes for pyaiken-0.5.4-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2a9802977b6be2672b67700a4679d20c2b41cf441c4f94b8943a184f8bbc574 |
|
MD5 | 43caad76c04dddd7cfa051bfc1b58215 |
|
BLAKE2b-256 | 3d6a61a1ff3778ffa2cb71cd9826e728370ccd417ab824f70b17f83b5ac2c661 |
Close
Hashes for pyaiken-0.5.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a657fb31e97976824796a8cd2b1573c2da62d1ebece8206502d5d513b3b374a |
|
MD5 | 60ddcac737f7e288f6d698155a362315 |
|
BLAKE2b-256 | 42e93de96aef080872e1ddcc290e77b89bf4119723ee7fbc41a21b24a89921da |
Close
Hashes for pyaiken-0.5.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e737ebb6fee772f14c0914ab70cb83a192aace50bf9c7a8ede9a893442b09f64 |
|
MD5 | 97b4fe4f63926db82ca05210e9f546ff |
|
BLAKE2b-256 | e560a8dd8b08a8ac0689c93ccd0f92dff858e2d5aa1239034dbc1e9fddf5edf0 |
Close
Hashes for pyaiken-0.5.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a3a6fabe89a91f56e2a90a0e36e42aedbb96dd6b0882bc46c4304f7cc390fc5 |
|
MD5 | 91adf88b2945e010bcf790c07e81c4c7 |
|
BLAKE2b-256 | ab6b69782fd14733c23f491dfd8f5613d3eec8139aeba00057d0b406b079e08e |
Close
Hashes for pyaiken-0.5.4-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da80b708873e7deebd4a52fca79542c2b376c8f7f870835dc6d0c9af2b9ad82e |
|
MD5 | d1055c8b727117a9e38be93f7ad81bb3 |
|
BLAKE2b-256 | 780df1d6bd8e478bc16143ca8d919dd483c0c40ef4c02db7987bded39e3af263 |
Close
Hashes for pyaiken-0.5.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 628c13cd88ebb220a5b53c730a6310fba655377584a7989dce06f875c70fdd67 |
|
MD5 | ce3cacfcdcd930a5be1534a07ab676a7 |
|
BLAKE2b-256 | 51541d6a281935f867c6bde709bff490ce7fd64312601ba8b60ef5f430790f27 |
Close
Hashes for pyaiken-0.5.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6020c1749362cec730a2a22d4262ce737825c5a02b639c54e46a36c38a643628 |
|
MD5 | 88c58501b98cd0783dbdbcb682deb0e0 |
|
BLAKE2b-256 | 43c95f445d5008e1156d5320043a509c69d1086edd06eac811356bf0ee84fc3d |
Close
Hashes for pyaiken-0.5.4-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24d4ebab478ea1d538158b957b6f8cac2bebf62c307f46e3f36de8ca1c31a1fe |
|
MD5 | c807aed6b514c14f1bfcbacf4c74b484 |
|
BLAKE2b-256 | 7d47ee426b1a4d608211d9c30bc7a5517a6c4b3205b08c9a1393b5d95322ee1d |