Bring fast TEA cipher to Python. Powered by Rust.
Project description
rtea
Bring fast TEA cipher to Python. Powered by Rust.
为 Python 带来快速的TEA密码实现
依赖
开发依赖
一个能跑起来的 Rust,不知道最低是什么版本,但是用新的准没错你大概需要一个 Nightly 的 Rust- Python 3.7+
requirements-dev.txt
里的maturin
运行依赖
- Python 3.7+
构建
假设环境已经存在满足条件的 Rust 和 Python
- 新建一个虚拟环境并激活
- 安装开发依赖
pip install -r requirements-dev.txt
- 运行
maturin develop [--release]
在rtea
目录下生成二进制库文件,可直接引入 - 或者运行
maturin build [--release]
在target/wheels
下生成whl
,在 Unix 系统上还可添加--strip
以减少生成体积
测试
- 运行
pytest
同时运行单元测试与速度测试 - 运行
cargo test
运行单元测试 - 运行
cargo bench
运行速度测试
预编译包
- 从右侧 Release 页面获取
- 使用 pip 直接从 PyPI 安装
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
rtea-0.3.4.tar.gz
(11.5 kB
view hashes)
Built Distributions
rtea-0.3.4-cp37-abi3-win_amd64.whl
(116.2 kB
view hashes)
Close
Hashes for rtea-0.3.4-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa043a3945a19f80f91dd99f0503938cfba2816b14883219e7aeebc76d4c60c |
|
MD5 | 3b92ba16c1128ec87e7d44a1b2effa31 |
|
BLAKE2b-256 | c7d70b61a854ed62fd92d698ec10d724017e26ddaf6507923af1ae2bd765aea6 |
Close
Hashes for rtea-0.3.4-cp37-abi3-manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d654fc0e7807bf08a02595d1c4a386ced7c3ea90bce69db85e9a11525b1e2db |
|
MD5 | c324e9db6730b5192b595eea5d922124 |
|
BLAKE2b-256 | d429a7a16cdd283f29202b38c58605c4fa4f38ea343e2374f912c1cd55bdc166 |
Close
Hashes for rtea-0.3.4-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 207002e9d6ae7bb5df04d9bea41ddc3c162f4c4b83817c6aa98c38ee62acc03d |
|
MD5 | 8a35246885cc016da08df6972b7e1d36 |
|
BLAKE2b-256 | 72dd0dbc365821aec17661e820f516ce2a2c313b21521e48f6853935def9daa7 |