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

.take().ok_or(StateMismatch)?,

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.5.0.tar.gz (1.5 MB view details)

Uploaded Source

Built Distributions

lakers_python-0.5.0-pp310-pypy310_pp73-win_amd64.whl (247.9 kB view details)

Uploaded PyPy Windows x86-64

lakers_python-0.5.0-pp310-pypy310_pp73-manylinux_2_34_x86_64.whl (403.0 kB view details)

Uploaded PyPy manylinux: glibc 2.34+ x86-64

lakers_python-0.5.0-pp310-pypy310_pp73-macosx_10_12_x86_64.whl (361.2 kB view details)

Uploaded PyPy macOS 10.12+ x86-64

lakers_python-0.5.0-cp313-cp313-win_amd64.whl (245.3 kB view details)

Uploaded CPython 3.13 Windows x86-64

lakers_python-0.5.0-cp313-cp313-manylinux_2_34_x86_64.whl (401.7 kB view details)

Uploaded CPython 3.13 manylinux: glibc 2.34+ x86-64

lakers_python-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl (358.1 kB view details)

Uploaded CPython 3.13 macOS 10.12+ x86-64

lakers_python-0.5.0-cp312-cp312-win_amd64.whl (245.8 kB view details)

Uploaded CPython 3.12 Windows x86-64

lakers_python-0.5.0-cp312-cp312-manylinux_2_34_x86_64.whl (401.9 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.34+ x86-64

lakers_python-0.5.0-cp312-cp312-macosx_10_12_x86_64.whl (358.4 kB view details)

Uploaded CPython 3.12 macOS 10.12+ x86-64

lakers_python-0.5.0-cp311-cp311-win_amd64.whl (246.2 kB view details)

Uploaded CPython 3.11 Windows x86-64

lakers_python-0.5.0-cp311-cp311-manylinux_2_34_x86_64.whl (407.5 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.34+ x86-64

lakers_python-0.5.0-cp311-cp311-macosx_10_12_x86_64.whl (358.6 kB view details)

Uploaded CPython 3.11 macOS 10.12+ x86-64

lakers_python-0.5.0-cp310-cp310-win_amd64.whl (247.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

lakers_python-0.5.0-cp310-cp310-manylinux_2_34_x86_64.whl (401.9 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

lakers_python-0.5.0-cp310-cp310-macosx_10_12_x86_64.whl (359.6 kB view details)

Uploaded CPython 3.10 macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for lakers_python-0.5.0.tar.gz
Algorithm Hash digest
SHA256 19059fde5572409f061c3dfcaa12f1634572ff3622b45f81853d05bb67a37bc5
MD5 790c82a01fe47096b1ba845151d0f4d9
BLAKE2b-256 7e0649defc46cb7cffd46daf06538bbd4f6dcf4da511036fbb73ea856a02def4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lakers_python-0.5.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 26ba02540851a20b1e446d61e037bd8cce006a75925f922259dbfd5711b618d8
MD5 0ce09fc9d6fd8ac94d416ab8583cb7c9
BLAKE2b-256 2f586b04d8e91972621d86b8b2e8e886747f352997393d89b5d102e7ea61e656

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lakers_python-0.5.0-pp310-pypy310_pp73-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6f5af91fc70ed0ab249eed3da2861e3157cf2215cbe9b77919969f3b4c5dcb52
MD5 26d9b7f05b282553078fdc38b46f9aa6
BLAKE2b-256 f7d9fc2981c0bdf51675c6eeec3fbe8d5b6e32304428e7932b5a2fb3a5b9dc47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lakers_python-0.5.0-pp310-pypy310_pp73-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2b59249e54252519421616c4d7a7acac901f9e8d1556d4ccc2eb6e443b02a48d
MD5 c19dea19567a9e7c76bc5edcb476cba6
BLAKE2b-256 c711204d1aafa73decedc258c245696910ae7ce684683fdcfcaa27d902a52c87

See more details on using hashes here.

File details

Details for the file lakers_python-0.5.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.5.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 37f497f43ccab06076fa251f8dd9a2b95ca2bf2a529748f77929074b3fb643f8
MD5 d9237a4849a517cc440b6d363852ae98
BLAKE2b-256 87ba56e84b3ffbd353adb204015f3e288a2d2fd6f96c82178a76615e1abbb6e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lakers_python-0.5.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 14f905cab5c1e5f9457b1a028f7a48937c664d6bdb3ba7616c89db568ca8515e
MD5 c0cbab6d461789a35ffe7932da6a4c40
BLAKE2b-256 fd212cd2f2bcef870f821df2648d4e064cb862680ca05a04711fac3702470d33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lakers_python-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 61e5d226391b9c10ddeca761f34e896bb431a9f66ee290c91adaa64bf5ff207c
MD5 2d5bcb794c7bb4c4851de5fe8f18601e
BLAKE2b-256 21de211abc2a51019563faff8ad9221c0b50e5bd71df4df995b710297dd553b4

See more details on using hashes here.

File details

Details for the file lakers_python-0.5.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ad4b136f19e69668f2ad3f07c50e239bfaf33446a8c93369c5ce8ad3d436b4c5
MD5 a6837f1c639e4b6d8c8118a632d3fe7a
BLAKE2b-256 7f8f2bef3385939b13f1c265fd94a745fcac62a0ee6cea2343f393a123d1b2bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lakers_python-0.5.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 77c04234d75375f028dbb055ea8342040b4a7880bb5c894422e035f6008aebd1
MD5 b38a4ad55fa5a2ee898e642b8161a1d0
BLAKE2b-256 ed96aa13fdfc42d09b6640055fb6bfa1630c65d2874e86a8607db6776362de54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lakers_python-0.5.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cf621d280991c0744562a4fe1a02fbcd3f31af7bf6a70f5b5fa80ae2b66a0e6a
MD5 72266eecde7e0e026ca2072008de47d3
BLAKE2b-256 2402ff6961713a67b403f0425225a26897e98d8d69e692195228ed27abad5c77

See more details on using hashes here.

File details

Details for the file lakers_python-0.5.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 13288e8e72a9347495e36ec89e2b6c8ff0825796c91a0f1fc325e8f91c5aa7c7
MD5 03ec5f2de8aebd85f70b9ba9fd89571d
BLAKE2b-256 7d631b9fadf84a27e8685b9b8ee3aaa9b70bc578bea367ba693cd3e56452c6af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lakers_python-0.5.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2b02ad42c3ff990a5c4efb99ff1bce7e7a6877af00636d105d311f4acc9eb2af
MD5 ebe8af51efc222a06b6f355e1662f29a
BLAKE2b-256 664fe231f155cbacf44ceaf33d5ed4a732eb38eefae94d663fec11344e3ed3ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lakers_python-0.5.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e54f3094961b1cbf89b2d523303b637433e9f51b5170eb2b78e51313d171ff1a
MD5 64e79c79390a570a6d15d150d3b16406
BLAKE2b-256 236e79161bfdc3b8732f066d7592c5c4dea541f3d9392a1cea838d8de6413ffa

See more details on using hashes here.

File details

Details for the file lakers_python-0.5.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.5.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d381360a9fd362d6b3ad506419b106db540b0ba51074bbb8e955b05117519489
MD5 5ddf589219f4b878f9051536ef703c9c
BLAKE2b-256 58700233c208160eff87fdaa38b2989ab9931cf81f21b688fe1378633d49f634

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lakers_python-0.5.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b5094f16f5a1c01b6f2a77fc6459d988ab25078bcf354048d8d3d8885cc9ec40
MD5 2963c406d77169b4196b7b26722271f2
BLAKE2b-256 48e0a2a0b46ad1ffbfa1a781afa7ab2e1e5f70053d04b18855d7fabccb93d36f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lakers_python-0.5.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d34c0ccd546f7a0dc5387d8b6ef926d2905e9b48b7d0ef159d24325ddf4e359a
MD5 7ca47fb0fb76e17616feed7755715df5
BLAKE2b-256 3963a543c36874b6d6da4345a78cea404062d11a0d468632dfe888f5205c8116

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