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
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
Built Distributions
File details
Details for the file lakers_python-0.4.0.tar.gz
.
File metadata
- Download URL: lakers_python-0.4.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccf75212364340c7ff14dc88dea5368aa175c2705d771268087d1b8d31adeae9 |
|
MD5 | 301737d3c9888db64112a30740254871 |
|
BLAKE2b-256 | 328b4151e8a81180d681e650381a7fed6167740ef634967143d02bcb5449bfcc |
File details
Details for the file lakers_python-0.4.0-pp310-pypy310_pp73-win_amd64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-pp310-pypy310_pp73-win_amd64.whl
- Upload date:
- Size: 710.9 kB
- Tags: PyPy, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32808c05b39b74f00746135c845899aaa0a6dbcc447cefef7902fb309d82e775 |
|
MD5 | 358528e9eee1c3f93259eff910bc06a5 |
|
BLAKE2b-256 | 5700d1f6231e3768f17cc6e41da9e06c00ac6749b513b13a7094dc88cc639b47 |
File details
Details for the file lakers_python-0.4.0-pp310-pypy310_pp73-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-pp310-pypy310_pp73-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 938.9 kB
- Tags: PyPy, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07cd030f27cf6c71373eb30cde7aa872fb4e7fbb8eef817b5570d984161f1fb5 |
|
MD5 | 9560533642db965364139bb01c097767 |
|
BLAKE2b-256 | ed4e8f65193721f0e8a4b27c919021d80bf057758477795c9b444303eea792af |
File details
Details for the file lakers_python-0.4.0-pp310-pypy310_pp73-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-pp310-pypy310_pp73-macosx_10_12_x86_64.whl
- Upload date:
- Size: 859.3 kB
- Tags: PyPy, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 149af5192d21377089ba74145dfc8104c2200c02d892062232e5c81e0ee83d98 |
|
MD5 | b179268f9a3bc5a2b9d5838c25226e3a |
|
BLAKE2b-256 | 88603cc91da0c9dcccc0c682040a34e7e17e84d5e76604a3ff5775a00e5f7220 |
File details
Details for the file lakers_python-0.4.0-cp313-none-win_amd64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-cp313-none-win_amd64.whl
- Upload date:
- Size: 709.5 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c89089e6d926561d28434c38eab3720ca5b21a4f0406de9e2d155b33d7ff0b63 |
|
MD5 | 26145a2fff7f1e25a8bbd70b02559ee0 |
|
BLAKE2b-256 | fcb62ba87f20f2e87b0a2cf1230a200882bcee7a6bdf6f8acb9227cbe3834b12 |
File details
Details for the file lakers_python-0.4.0-cp313-cp313-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-cp313-cp313-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 938.6 kB
- Tags: CPython 3.13, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fc5d6f70a02752ca481f3fa55bd47d07b5ac24c3316d5e7e7a625f97b8ae088 |
|
MD5 | e1f489fad2b4593ebe98b96f4bc9cf8c |
|
BLAKE2b-256 | d78851231c45aba34ef2cbcbe9bbcac395d98e1bd8e10c25dd60b0dab8da5f15 |
File details
Details for the file lakers_python-0.4.0-cp313-cp313-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-cp313-cp313-macosx_10_12_x86_64.whl
- Upload date:
- Size: 857.2 kB
- Tags: CPython 3.13, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16e8735fadcf0c39186bc8f29a63e6ec918aa2b0fa844fb2778c66445db3cd4d |
|
MD5 | 5ea94132082b1e98c68a0eb7330fae86 |
|
BLAKE2b-256 | 133ae59fff63da9c2ab09eaa41d5c56256a37f607e2934645845ea7fe406d6b8 |
File details
Details for the file lakers_python-0.4.0-cp312-none-win_amd64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-cp312-none-win_amd64.whl
- Upload date:
- Size: 710.0 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 838cea1df44a52651371571854de666397e7f9b77fe6c816a99315d0ad715895 |
|
MD5 | 9865e9099a2a40a0a278cce6262fd739 |
|
BLAKE2b-256 | 17a1d1518cdc32389130a8dcbc8987a4e13fe5684089d1b7c0da990ef9f80e18 |
File details
Details for the file lakers_python-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 939.1 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4986caf3ef726024a3751e93d7769776590fe2fd7d9083b03a20c55362304dc5 |
|
MD5 | 4170c6dcf4c01d72bc1e274cdfb5f417 |
|
BLAKE2b-256 | 78b77891421327886bf826bb87731c0b660124fdc30a8182a6f2bde2c5cb2eec |
File details
Details for the file lakers_python-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 857.7 kB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 273123ca663bd9ec99c0b35080a15d9a7093dd07fe06a3368579933ec4b51a16 |
|
MD5 | db119620445fa333520933be3e17f983 |
|
BLAKE2b-256 | 7f5ef208c39a1bbc1893ee7facd5a51f9cadd4b5fb6eed4320db1c96f60089de |
File details
Details for the file lakers_python-0.4.0-cp311-none-win_amd64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-cp311-none-win_amd64.whl
- Upload date:
- Size: 710.2 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93cf7efef115d8d4ddb26ca8c9cb9e81f23aea10d12b0fc71139927570553338 |
|
MD5 | f1bb618b70fddfffae67e573fb677fba |
|
BLAKE2b-256 | b1e8e957ecc367c1a34a1c0028bb358ac68c638d9eb8c49d4b8698eb7bd524db |
File details
Details for the file lakers_python-0.4.0-cp311-cp311-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 945.0 kB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 440eea2bd5530b8d13cbc8b92c0c5cf04107e01dbeb2d0d05343dc042d81b7fc |
|
MD5 | 879060dce9c513e84f3a8d655beeb658 |
|
BLAKE2b-256 | 4a2f08b8c08052ed005ba0c6a5d65457af9e7c17e7f34d89ef6d12b34d4dfbe9 |
File details
Details for the file lakers_python-0.4.0-cp311-cp311-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-cp311-cp311-macosx_10_12_x86_64.whl
- Upload date:
- Size: 858.5 kB
- Tags: CPython 3.11, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f9400bc7aabfecdb3adf8caac95e46d7960a37cb8463b713cc6c083a3ae0e85 |
|
MD5 | c7f3d148952e83f6db03d41d749f45ad |
|
BLAKE2b-256 | 59b2b3b48678f6873c69178828d83d56209f03592bb8949ad7a7ba88ed26bf21 |
File details
Details for the file lakers_python-0.4.0-cp310-none-win_amd64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-cp310-none-win_amd64.whl
- Upload date:
- Size: 710.9 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f72be2a114277bc45aa17ff3cce91a2e00e28c116370d39f8750a55469562edd |
|
MD5 | d6a8799e6d469c89ca7dbfd3ad363e18 |
|
BLAKE2b-256 | 396a3b863554df48386f0d6c7c79fefcdd64fb9f8d59bc6a283a3a7c08505c74 |
File details
Details for the file lakers_python-0.4.0-cp310-cp310-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 937.7 kB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceca5b93958370e2b25a1321bc98f3a3e83d5c8ebc0936411e69350a37465705 |
|
MD5 | 5c0ef1d34b2161df9ba7d7a0475cb704 |
|
BLAKE2b-256 | a38950dfea220932d11805a80eede94b4e590a2bd3fab48ca43c1119b87f6dc6 |
File details
Details for the file lakers_python-0.4.0-cp310-cp310-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: lakers_python-0.4.0-cp310-cp310-macosx_10_12_x86_64.whl
- Upload date:
- Size: 858.3 kB
- Tags: CPython 3.10, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cc1613dc6ee7e6a7dc64b5af023cf5fcf121f5324a6b4364e16ae8df1950975 |
|
MD5 | 7ffe38dcc2321a2944fa66f521d8c735 |
|
BLAKE2b-256 | a62068fc99f7e4f55c17752f3f47af0a6132c608367b34f8d8a32eae7e3fddff |