PixelArray Python开发工具库 - 包含阿里云服务、数据库工具、装饰器、监控等功能
Project description
PixelArrayLib - PixelArray Python开发工具库
PixelArrayLib是一个功能丰富的Python开发工具库,包含阿里云服务、数据库工具、装饰器、监控等功能,同时提供便捷的命令行工具。
安装
pip install pixelarraylib
使用方法
1. Python程序中使用
# 导入pixelarraylib模块
import pixelarraylib
# 使用各种功能模块
from pixelarraylib.aliyun import some_service
from pixelarraylib.db_utils import database_tools
from pixelarraylib.decorators import useful_decorators
2. 命令行工具使用
安装后,你可以在命令行中直接使用 pixelarraylib 命令:
创建测试用例文件
# 一键创建所有测试用例文件
pixelarraylib create_test_case_files
代码提交统计
# 统计最近30天的代码提交
pixelarraylib summary_code_count
# 统计指定日期范围的提交
pixelarraylib summary_code_count --since="2025-05-09"
# 统计特定作者的提交
pixelarraylib summary_code_count --author="张三"
# 输出到CSV文件
pixelarraylib summary_code_count --output=stats.csv
# 只统计特定文件类型
pixelarraylib summary_code_count --file-types="py,js,vue"
# 查看帮助信息
pixelarraylib summary_code_count --help
功能特性
- 阿里云服务集成: 包含CMS、Green、DM、FC、SMS、STS等服务
- 数据库工具: MySQL、Redis等数据库操作工具
- Web框架: FastAPI集成
- 实用工具: 二维码生成、加密解密、XML处理等
- 命令行工具: 测试用例生成、代码统计等实用脚本
开发
本地开发安装
# 克隆仓库
git clone https://gitlab.com/pixelarrayai/general_pythondevutils_lib.git
cd general_pythondevutils_lib
# 安装开发依赖
pip install -e .
# 测试命令行工具
pixelarraylib --help
添加新的命令行工具
- 在
pixelarraylib/scripts/目录下创建新的脚本文件 - 在
pixelarraylib/__main__.py中添加新的命令选项 - 更新
pixelarraylib/scripts/__init__.py导出新功能
许可证
MIT License
作者
Lu qi (qi.lu@pixelarrayai.com)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pixelarraylib-1.0.2.tar.gz
(50.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pixelarraylib-1.0.2.tar.gz.
File metadata
- Download URL: pixelarraylib-1.0.2.tar.gz
- Upload date:
- Size: 50.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
350981ecf2c4791df43a1fd58d283d414f78801cf3ece43b682166d36b651b74
|
|
| MD5 |
30bc90d61300bbcd2d5745e4bd04f468
|
|
| BLAKE2b-256 |
5f2e561566d9a6fe1fa5ec48fe308fb7e8d51d1d980dc3ab8fb9133f431bd6d3
|
File details
Details for the file pixelarraylib-1.0.2-py3-none-any.whl.
File metadata
- Download URL: pixelarraylib-1.0.2-py3-none-any.whl
- Upload date:
- Size: 62.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0f6c4fe843dac7661fcb4f8cf47a71afb92527de26b29018d84ae2417f136b5
|
|
| MD5 |
ab74837793c08cfe7d0037c743a5f2ba
|
|
| BLAKE2b-256 |
3a417adb1e5a6bc4a86ad891f715b44b86b42f482dbfd8a676fb4eed0d2f25bb
|