Skip to main content

Bring fast TEA cipher to Python. Powered by Rust.

Project description

rtea

Bring fast TEA cipher to Python. Powered by Rust.

为 Python 带来快速的TEA密码实现

依赖

开发依赖

  1. 一个能跑起来的 Rust,不知道最低是什么版本,但是用新的准没错 你大概需要一个 Nightly 的 Rust
  2. Python 3.6+
  3. requirements-dev.txt 里的 maturin

运行依赖

  1. Python 3.6+

构建

假设环境已经存在满足条件的 Rust 和 Python

  1. 新建一个虚拟环境并激活
  2. 安装开发依赖 pip install -r requirements-dev.txt
  3. 运行 maturin develop [--release]rtea 目录下生成二进制库文件,可直接引入
  4. 或者运行 maturin build [--release]target/wheels 下生成 whl,在 Unix 系统上还可添加 --strip 以减少生成体积

测试

  1. 运行 pytest 同时运行单元测试与速度测试
  2. 运行 cargo test 运行单元测试
  3. 运行 cargo bench 运行速度测试

预编译包

在右侧Release页面自取,目前只有 64 位 Windows Python3.9 的支持

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.1.tar.gz (11.9 kB view hashes)

Uploaded Source

Built Distributions

rtea-0.3.1-cp39-cp39-manylinux_2_24_x86_64.whl (143.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.24+ x86-64

rtea-0.3.1-cp39-cp39-manylinux2010_x86_64.whl (147.1 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

rtea-0.3.1-cp38-cp38-manylinux_2_24_x86_64.whl (143.8 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.24+ x86-64

rtea-0.3.1-cp38-cp38-manylinux2010_x86_64.whl (147.1 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

rtea-0.3.1-cp37-cp37m-manylinux_2_24_x86_64.whl (143.8 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.24+ x86-64

rtea-0.3.1-cp37-cp37m-manylinux2010_x86_64.whl (147.1 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

rtea-0.3.1-cp36-cp36m-manylinux_2_24_x86_64.whl (143.9 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.24+ x86-64

rtea-0.3.1-cp36-cp36m-manylinux2010_x86_64.whl (147.2 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page