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

Development

To build and test:

maturin develop
pytest

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
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.2.1.tar.gz (1.4 MB view hashes)

Uploaded Source

Built Distributions

lakers_python-0.2.1-cp312-none-win_amd64.whl (210.6 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

lakers_python-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl (365.0 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.34+ x86-64

lakers_python-0.2.1-cp312-cp312-macosx_10_12_x86_64.whl (324.0 kB view hashes)

Uploaded CPython 3.12 macOS 10.12+ x86-64

lakers_python-0.2.1-cp311-none-win_amd64.whl (210.3 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

lakers_python-0.2.1-cp311-cp311-manylinux_2_34_x86_64.whl (364.5 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.34+ x86-64

lakers_python-0.2.1-cp311-cp311-macosx_10_12_x86_64.whl (324.7 kB view hashes)

Uploaded CPython 3.11 macOS 10.12+ x86-64

lakers_python-0.2.1-cp310-none-win_amd64.whl (210.7 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

lakers_python-0.2.1-cp310-cp310-manylinux_2_34_x86_64.whl (364.1 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

lakers_python-0.2.1-cp310-cp310-macosx_10_12_x86_64.whl (324.5 kB view hashes)

Uploaded CPython 3.10 macOS 10.12+ x86-64

Supported by

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