https://github.com/virgesmith/pycrypto-rs
https://github.com/virgesmith/pycrypto-rs
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/virgesmith/pycrypto-rs
- Owner: virgesmith
- License: mit
- Created: 2020-12-27T21:05:55.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-07-17T13:09:51.000Z (almost 4 years ago)
- Last Synced: 2025-02-14T13:28:23.299Z (over 1 year ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python-rust binding with pyo3 and maturin
This replicates the functionality of the command-line crypto-rs module as a python module.
## Prerequisites
It uses the maturin and py03 crates for creating rust-implemented python modules.
Firstly, you need a working rust installation, and the [crypto-rs](https://github.com/virgesmith/crypto-rs) repo installed alongside this one (i.e. both have same parent directory).
Then install the python dependencies (virtualenv recommended):
```sh
pip install maturin
```
Build locally:
```sh
maturin develop
```
Test:
```sh
pytest.py
```
## References
[py03 docs](https://docs.rs/pyo3/0.13.0/pyo3/index.html)
[py03 repo with examples](https://github.com/PyO3/pyo3)
[maturin docs](https://docs.rs/maturin/0.8.3/maturin/)