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 Distribution

bitool-0.1.1.tar.gz (934.4 kB view details)

Uploaded Source

Built Distribution

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

bitool-0.1.1-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.1.tar.gz.

File metadata

  • Download URL: bitool-0.1.1.tar.gz
  • Upload date:
  • Size: 934.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for bitool-0.1.1.tar.gz
Algorithm Hash digest
SHA256 75f63a28f88251eeae58664218152605a2d6045366d82304d8e85c5f6396d4b3
MD5 cfa12bea20b0980aa8ec430f96b56c86
BLAKE2b-256 094d53375cc0b4736953bd5c3f474b96d713137e638b3d7c14f059348ce1c01b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bitool-0.1.1-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.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1c17686ab73d41c9bd0e13b43f02ca3585711fbd2d3668199edaa2e2746a6c61
MD5 24700c88b51169e8ac83f5f0df709b72
BLAKE2b-256 957b325cc2cebdebb7a69385fb671cdaf9ad6e532fbd5ac7dc30949cf0faf6ed

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