铁锋的python工具箱
一个全面的Python工具包集合,提供了多种常用功能和工具函数。
项目简介
feng-tools 是一个综合性的Python工具库,集成了多个常用功能模块,旨在简化日常开发工作。该工具包涵盖了从文件操作到图像处理,从日志管理到AI应用等多个领域的实用工具。
环境要求
- Python >= 3.10
安装方法
pip install feng-tools
主要功能模块
AI工具 (ai)
AI相关的工具和功能
文件操作 (file)
- TOML文件处理工具
- 文件读写操作
HTTP工具 (http)
- MIME类型工具
- HTTP请求处理
图像处理 (image)
- 图像Base64转换
- 图像水印处理
日志工具 (log)
- 标准日志工具
- Loguru日志工具
OpenCV工具 (opencv)
- 图像捕获工具
- 人脸检测
- OpenCV常用操作
操作系统工具 (os)
- 系统操作工具
- Shell命令工具
- 系统信息工具
其他工具模块
- 下载工具 (download)
- 加密工具 (encrypt)
- ID生成工具 (id)
- JSON处理 (json)
- PDF处理 (pdf)
- 随机数生成 (random)
- 等等...
使用示例
# 导入工具包
from feng_tools import file
from feng_tools.media import image
from feng_tools.base import log
# 使用日志工具
logger = log.get_logger()
logger.info("这是一条日志信息")
# 使用图像工具
image.add_watermark("input.jpg", "output.jpg", "水印文字")
# 使用文件工具
config = file.read_toml("config.toml")
贡献指南
欢迎提交问题和功能需求!如果您想贡献代码:
- Fork 本仓库
- 创建您的特性分支 (
git checkout -b feature/AmazingFeature) - 提交您的更改 (
git commit -m 'Add some AmazingFeature') - 推送到分支 (
git push origin feature/AmazingFeature) - 打开一个 Pull Request
作者
编程Thinker (imchentiefeng@aliyun.com)
许可证
本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详细信息
Metadata
Release files for feng-tools 0.2.30
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| feng_tools-0.2.30.tar.gz | 223.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| feng_tools-0.2.30-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 558.6 kB
Release files / feng_tools-0.2.30.tar.gz
| Download URL | feng_tools-0.2.30.tar.gz |
|---|---|
| Size | 223.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a595e99234bb4bac6f7503e268b574f8401948d7de5283186f3f15e07007bec
|
|
BLAKE2b-256 checksum How to use checksums |
10b2e943c07848f267388cad29e3a4b8924cb376c6fd2029b1be0a0b8875aa19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / feng_tools-0.2.30-py3-none-any.whl
| Download URL | feng_tools-0.2.30-py3-none-any.whl |
|---|---|
| Size | 335.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb57646d5bee450b24938ac6a59454dfc6addd00b47d39aed18942bde63be4ac
|
|
BLAKE2b-256 checksum How to use checksums |
0b215c546d10650b01918ab979b601ff5b4622f408cc730fbe7cf80cb87aeeaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for feng-tools 0.2.30
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.