Skip to main content

Bitool - Rust + Python 混合架构工具集

Project description

Bitool

基于 Maturin 的 Rust + Python 混合架构工具集,将性能瓶颈和共性部分使用 Rust 实现,接口和逻辑部分使用 Python 实现。

特性

  • 高性能:核心计算和 I/O 操作使用 Rust 实现
  • 易用性:Python 提供简洁的 API 接口
  • 可扩展:插件系统支持功能扩展
  • 跨平台:支持 Windows、Linux、macOS

安装

pip install bitool

开发

# 安装依赖
pip install maturin

# 开发模式构建
maturin develop

# 运行测试
cargo test && pytest

# 构建发布版本
maturin build --release

项目结构

bitool/
├── src/                    # Rust 源代码
│   ├── core/               # 核心功能模块
│   ├── plugins/            # 插件系统核心
│   └── python/             # Python 绑定
├── python/                 # Python 源代码
│   └── bitool/
│       ├── core/           # 核心业务逻辑
│       ├── plugins/        # Python 插件实现
│       ├── scripts/        # Scripts 工具
│       └── cli/            # 命令行工具
└── examples/               # 示例代码

使用示例

from bitool import FileOps, TextProcessor

# 文件操作
file_ops = FileOps()
files = file_ops.scan_directory("/path/to/dir")

# 文本处理
processor = TextProcessor()
result = processor.regex_search(pattern, text)

许可证

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitool-0.1.0-cp38-abi3-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.8+Windows x86-64

File details

Details for the file bitool-0.1.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: bitool-0.1.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for bitool-0.1.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 723d6bc8bc379f8216984118268bf0f858535deb5dba9d26774b0530945ab8b3
MD5 57ab78767e6fd27855a7fdab05d2d2d0
BLAKE2b-256 a5df3c1d2c2f89142826cd5658bef28892e9170cf9cc02ca9117bd3696e7c693

See more details on using hashes here.

Supported by

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