virgesmith / pycrypto-rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 repo installed alongside this one (i.e. both have same parent directory).

Then install the python dependencies (virtualenv recommended):

pip install maturin

Build locally:

maturin develop

Test:

pytest.py

References

py03 docs

py03 repo with examples

maturin docs

About

License:MIT License


Languages

Language:Rust 61.2%Language:Python 38.8%