Skip to main content

No project description provided

Project description

Lakers Python

Python wrapper for the lakers crate.

Installation and usage

pip install lakers-python
import lakers

# generate a keypair
lakers.p256_generate_key_pair()

# instantiate a initiator and prepare EDHOC's message 1
initiator = lakers.EdhocInitiator()
message_1 = initiator.prepare_message_1(c_i=None, ead_1=None)

# for more examples, see the tests in the repository

Logs

To show logs emitted by the wrapped Rust implementation, set the RUST_LOG variable, e.g.:

RUST_LOG=trace python -c "import lakers"

Development

To build and test:

maturin develop
pytest

To deploy:

# need to make the examples folder available for the python package,
# because it is listed as one of the workspace's default-members
ln -s ../examples ./examples
MATURIN_PYPI_TOKEN=<your pypi token here> maturin publish

Requirements

The maturin executable must be available. The recommended way is to install and use it in a virtual environment:

python3 -m venv .venv
source .venv/bin/activate
pip install -U pip maturin pytest cbor2
pip freeze

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

lakers_python-0.4.1.tar.gz (1.5 MB view details)

Uploaded Source

Built Distributions

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

lakers_python-0.4.1-pp310-pypy310_pp73-win_amd64.whl (242.3 kB view details)

Uploaded PyPyWindows x86-64

lakers_python-0.4.1-pp310-pypy310_pp73-manylinux_2_34_x86_64.whl (397.9 kB view details)

Uploaded PyPymanylinux: glibc 2.34+ x86-64

lakers_python-0.4.1-pp310-pypy310_pp73-macosx_10_12_x86_64.whl (355.6 kB view details)

Uploaded PyPymacOS 10.12+ x86-64

lakers_python-0.4.1-cp313-none-win_amd64.whl (241.8 kB view details)

Uploaded CPython 3.13Windows x86-64

lakers_python-0.4.1-cp313-cp313-manylinux_2_34_x86_64.whl (398.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

lakers_python-0.4.1-cp313-cp313-macosx_10_12_x86_64.whl (354.5 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

lakers_python-0.4.1-cp312-none-win_amd64.whl (242.4 kB view details)

Uploaded CPython 3.12Windows x86-64

lakers_python-0.4.1-cp312-cp312-manylinux_2_34_x86_64.whl (398.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

lakers_python-0.4.1-cp312-cp312-macosx_10_12_x86_64.whl (354.8 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

lakers_python-0.4.1-cp311-none-win_amd64.whl (242.2 kB view details)

Uploaded CPython 3.11Windows x86-64

lakers_python-0.4.1-cp311-cp311-manylinux_2_34_x86_64.whl (404.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

lakers_python-0.4.1-cp311-cp311-macosx_10_12_x86_64.whl (355.7 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

lakers_python-0.4.1-cp310-none-win_amd64.whl (243.7 kB view details)

Uploaded CPython 3.10Windows x86-64

lakers_python-0.4.1-cp310-cp310-manylinux_2_34_x86_64.whl (398.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

lakers_python-0.4.1-cp310-cp310-macosx_10_12_x86_64.whl (355.7 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: lakers_python-0.4.1.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for lakers_python-0.4.1.tar.gz
Algorithm Hash digest
SHA256 eb0d6e32b75ade0a6d6478c2f1d21af6da130a3aefee667433c5dde2ac2e21f8
MD5 10bdbfdbedfd2f1079da84d6d6702381
BLAKE2b-256 0e8241fcc21dfaeda9646067c403b7e8112fd012766e463ce7d7b7839245d063

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-pp310-pypy310_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 4b0a77304e3e13eed96ddb0bd593a3cbbaa54f599101123e572c3fcaf766dd68
MD5 e681909b460ac3ea61191f08d782c4c5
BLAKE2b-256 c1496580a5a6ccefb550d83c208c3506adb5a1b94df1d1f539334b269e4c30ff

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-pp310-pypy310_pp73-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-pp310-pypy310_pp73-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1c24bc3d70acb1eb4decd94acac6e7cad626750d03273d8e32c179e697d3122d
MD5 9bd23b8be300fb56053d28036922bf3a
BLAKE2b-256 3af69bbcb86de4d6a3250d12c7084b3b2b930f6db1a75bfdf26eb1f7f22e2420

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-pp310-pypy310_pp73-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-pp310-pypy310_pp73-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b3d929639a606212d679ea87d059f3a1d1b37946415c0aff4bca10f3165b60f6
MD5 946efca7d5f6c6ee80461478199487fe
BLAKE2b-256 137b6bb8394d2af3303b29991b9d8145eb4dcf396a80e7f718744d8ede121570

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-cp313-none-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-cp313-none-win_amd64.whl
Algorithm Hash digest
SHA256 6ec4cb743e5cb219649075302fdb2bc9d7cbef048e66a3ef0412211be005a3c1
MD5 87141770a75cc9a4851cb3c625c39919
BLAKE2b-256 e8669d72a65db9ddc039db5fea27ff098e91df516c5629a0198ea64e9b62168f

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c92982727be84fc6ceccefab6be2368b7542825de85a7c95103b83e91c2993c0
MD5 e9bb7d823fd0bb8fa452f3da68d83f82
BLAKE2b-256 da5cae78720e3ffb84e354df185f84e927274494c6f4c90149a1e888923c721c

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3b72b8b8a8ee9cbe70f322f08341b4e2546c344a802bb42690e0584c55dbfba7
MD5 c955ae060c9c646179a1e5cc9b2b43d1
BLAKE2b-256 817cf8c997596007ba9632eb6073992c28a16dad1c6bc6c3803e9c8467b91a54

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-cp312-none-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 2cda936eccc646f1f03b626a3206f8710597636f31f4b07f12e7875c5eb5236c
MD5 58e87c198469a16173b18571f9839ee2
BLAKE2b-256 7543766cc3c615012f7ed8585a75d6495b614617abd60359ff69175970096db7

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ee3202de6112e70969454f55b6334bec45bfd7019a45f0e263d63bf02de72e27
MD5 1959d5355d484bd4c588951b8a7847dd
BLAKE2b-256 33b188666c11cc2467a3dcf8eda8933e38e5ec15397c16c4abd567bd19b411e9

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 164060aae4cb407acd81cb96c67ed77d00c2ce182443fca783872c33990b5e05
MD5 555f2ffb957877f3b002b895d0565075
BLAKE2b-256 1dd491f1ff5fc5c6fae3a55e8b0f0f5580eced568ba483d69f578bacd8d2b9a2

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 9d9ae634a12496b98d2d21ac9a06b96786d54546698c798b3027ce5ad4253320
MD5 bda6d184e5cb8990c0d36de832fecdd8
BLAKE2b-256 cf8c5361a5ad7aea02e44e4098764709951e54890fd0ddd03f5cfe8dcc1e4872

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b689ec49c20a9a2768ad107fd4bd1840ae9156ac43dc2c7c27232304cbbfcf37
MD5 1a96be7dfc7f41982f15fe596226894e
BLAKE2b-256 a6f684e8596b1439abe7e5f8d26089a2d3eaaa104d43332ee86fc5071b4af0dc

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2d7fba88542e76a219cf4acbb71194d979148def6d66d8746c3d0af68fed1100
MD5 740663638ff6186d1c31867bbff7f7ff
BLAKE2b-256 f530b04ab02e89fe68a6cdda0684ece2b9fd220c4cf21cfdd747ef73a52c0ec0

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 44400e39c2ef928b283b49357b4120e78ae875a8d79a14c212d5504fb5f04e8f
MD5 ae15d1254d3b4cea3dd956c859c9a9a4
BLAKE2b-256 910a70c6f68df0d66f4f9071793440f268abcc609a8bcef68b914724399dc9f3

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b07b6cf7d43e80d0a6ad8fa7c7401e5f8d1543063ede3eaf3ddafe4d85632399
MD5 87946cffe0597ad8c17d5b5dd975e105
BLAKE2b-256 c88301da07b55705284644f0dc8af191d071d13ab21c05bf02e061007a981710

See more details on using hashes here.

File details

Details for the file lakers_python-0.4.1-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.4.1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0a93c2d5560cb1e1a2ac7dbfe10077e7fbc5d1de812dd8314099278247a181e8
MD5 2e749d7bfc5fe48c43c4c274d059c866
BLAKE2b-256 c655d7ae32a580960833a43af7ad469f476617e51f32618cf0f7336acca24d7d

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