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
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.3.1.tar.gz
(1.4 MB
view hashes)
Built Distributions
Close
Hashes for lakers_python-0.3.1-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ec1d4df22d483902b4e97db59c68c76169db5195cd4e682b30a6baf8ab480f3 |
|
MD5 | 08444acc0201678ec194c47b5d1ed120 |
|
BLAKE2b-256 | eafa79f485260a2b478a33d175fca8049d17a4df17c7c69159ebab7c357915d7 |
Close
Hashes for lakers_python-0.3.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62b9a376cd0178941d1253b77bf5e3b83b430cb7c1ad3610092dc6939715820b |
|
MD5 | 58d1e82860049093423ab77e5c89b8d8 |
|
BLAKE2b-256 | 64505d4750dba9e2a3af908a5b010418c1b390a5bcc2afffc7f68b253519e880 |
Close
Hashes for lakers_python-0.3.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28301674c72d815ece6ec84a51e0d09f8b24a8087cb0f5bf958ab4503523c588 |
|
MD5 | 2aefd38a3bb08f88846a8762d5c31e79 |
|
BLAKE2b-256 | 498600b65f2da1c61fefd6c4c5037da0fc56d9bfb8d26b659d7d02b69d90ddc6 |
Close
Hashes for lakers_python-0.3.1-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12484758b23459203d870bf26aed75eb696edae6e1ccf01d5b507ec2e95708a3 |
|
MD5 | 416575eec262f339a49f9361d1c5f4de |
|
BLAKE2b-256 | 34d1024c3d334fadaee89aac3f357229c82643b4588e7535f31f43b8b3f4e00d |
Close
Hashes for lakers_python-0.3.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 717a5b5e275a07d339defbfc8fbfcbfc20267926bdd4eb1b468ffc9aca813ba1 |
|
MD5 | 8cf8b65ee8f62e6e276483f38b0aeeca |
|
BLAKE2b-256 | 77a28dbf14a7c6f69f420172056d3fefabc022bbc215828a6d9ef4c7272a2656 |
Close
Hashes for lakers_python-0.3.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 193037c2b6dbebde583888ab3951ca2d8edd70f9d955ae0c7009fd09cfbe96b7 |
|
MD5 | 5950a37c8887ed32ab2d65f025f8cb7d |
|
BLAKE2b-256 | e7bd6674ff7c0f8b657e41b11f7ca1827dbb600b0486a830a39d7dedf9fb1575 |
Close
Hashes for lakers_python-0.3.1-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66869f05b0a7be261b9082f5660c97d8846cce288d193422522d0b5467720887 |
|
MD5 | f8c386148efbbeb70e3efae431b30e77 |
|
BLAKE2b-256 | b078e578e62dbdd6cbfea8976fad098665628aa25a02967a9ca7dc9f2dc71712 |
Close
Hashes for lakers_python-0.3.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39d7d4bc4bc7c08928e53f28da2f40c264ee3daa2ad55ea131c8a42911335474 |
|
MD5 | 2b84cf5d75bad0ab2d5b4129d81998d4 |
|
BLAKE2b-256 | 1a4a10403b706aeaa8f55f6ff1e820753ae4439e24c7e01a6fc0d1bb1ec98af6 |
Close
Hashes for lakers_python-0.3.1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 438ccbef1b3e2c4f314ad2d0c1852f3434c6ff436f2792b2141a9c638504255e |
|
MD5 | a295fa24784d0ffe164690e4635c3e07 |
|
BLAKE2b-256 | a69526f7b8049cc7aaf316315532a3b8540518708c9a88d61ca9ffbc7dd2683f |