# PixelArrayLib - PixelArray Python开发工具库
PixelArrayLib是一个功能丰富的Python开发工具库,包含阿里云服务、数据库工具、装饰器、监控等功能,同时提供便捷的命令行工具。
## 安装
```bash
pip install pixelarraylib
```
## 使用方法
### 1. Python程序中使用
```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` 命令:
#### 创建测试用例文件
```bash
# 一键创建所有测试用例文件
pixelarraylib create_test_case_files
```
## 功能特性
- **阿里云服务集成**: 包含CMS、Green、DM、FC、SMS、STS等服务
- **数据库工具**: MySQL、Redis等数据库操作工具
- **Web框架**: FastAPI集成
- **实用工具**: 二维码生成、加密解密、XML处理等
- **命令行工具**: 测试用例生成、代码统计等实用脚本
## 开发
### 本地开发安装
```bash
# 克隆仓库
git clone https://gitlab.com/pixelarrayai/general_pythondevutils_lib.git
cd general_pythondevutils_lib
# 安装开发依赖
pip install -e .
# 测试命令行工具
pixelarraylib --help
```
### 添加新的命令行工具
1. 在 `pixelarraylib/scripts/` 目录下创建新的脚本文件
2. 在 `pixelarraylib/__main__.py` 中添加新的命令选项
3. 更新 `pixelarraylib/scripts/__init__.py` 导出新功能
## 许可证
MIT License
## 作者
Lu qi (qi.lu@pixelarrayai.com)
Raw data
{
"_id": null,
"home_page": null,
"name": "pixelarraylib",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "python, utils, aliyun, database, tools, pixelarray",
"author": null,
"author_email": "Lu qi <qi.lu@pixelarrayai.com>",
"download_url": "https://files.pythonhosted.org/packages/94/e1/2a7a9f4aa1547b370f5120827510539c1ba42d243dd64647511ba21c0cf1/pixelarraylib-1.0.7.tar.gz",
"platform": null,
"description": "# PixelArrayLib - PixelArray Python\u5f00\u53d1\u5de5\u5177\u5e93\n\nPixelArrayLib\u662f\u4e00\u4e2a\u529f\u80fd\u4e30\u5bcc\u7684Python\u5f00\u53d1\u5de5\u5177\u5e93\uff0c\u5305\u542b\u963f\u91cc\u4e91\u670d\u52a1\u3001\u6570\u636e\u5e93\u5de5\u5177\u3001\u88c5\u9970\u5668\u3001\u76d1\u63a7\u7b49\u529f\u80fd\uff0c\u540c\u65f6\u63d0\u4f9b\u4fbf\u6377\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002\n\n## \u5b89\u88c5\n\n```bash\npip install pixelarraylib\n```\n\n## \u4f7f\u7528\u65b9\u6cd5\n\n### 1. Python\u7a0b\u5e8f\u4e2d\u4f7f\u7528\n\n```python\n# \u5bfc\u5165pixelarraylib\u6a21\u5757\nimport pixelarraylib\n\n# \u4f7f\u7528\u5404\u79cd\u529f\u80fd\u6a21\u5757\nfrom pixelarraylib.aliyun import some_service\nfrom pixelarraylib.db_utils import database_tools\nfrom pixelarraylib.decorators import useful_decorators\n```\n\n### 2. \u547d\u4ee4\u884c\u5de5\u5177\u4f7f\u7528\n\n\u5b89\u88c5\u540e\uff0c\u4f60\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528 `pixelarraylib` \u547d\u4ee4\uff1a\n\n#### \u521b\u5efa\u6d4b\u8bd5\u7528\u4f8b\u6587\u4ef6\n```bash\n# \u4e00\u952e\u521b\u5efa\u6240\u6709\u6d4b\u8bd5\u7528\u4f8b\u6587\u4ef6\npixelarraylib create_test_case_files\n```\n\n## \u529f\u80fd\u7279\u6027\n\n- **\u963f\u91cc\u4e91\u670d\u52a1\u96c6\u6210**: \u5305\u542bCMS\u3001Green\u3001DM\u3001FC\u3001SMS\u3001STS\u7b49\u670d\u52a1\n- **\u6570\u636e\u5e93\u5de5\u5177**: MySQL\u3001Redis\u7b49\u6570\u636e\u5e93\u64cd\u4f5c\u5de5\u5177\n- **Web\u6846\u67b6**: FastAPI\u96c6\u6210\n- **\u5b9e\u7528\u5de5\u5177**: \u4e8c\u7ef4\u7801\u751f\u6210\u3001\u52a0\u5bc6\u89e3\u5bc6\u3001XML\u5904\u7406\u7b49\n- **\u547d\u4ee4\u884c\u5de5\u5177**: \u6d4b\u8bd5\u7528\u4f8b\u751f\u6210\u3001\u4ee3\u7801\u7edf\u8ba1\u7b49\u5b9e\u7528\u811a\u672c\n\n## \u5f00\u53d1\n\n### \u672c\u5730\u5f00\u53d1\u5b89\u88c5\n\n```bash\n# \u514b\u9686\u4ed3\u5e93\ngit clone https://gitlab.com/pixelarrayai/general_pythondevutils_lib.git\ncd general_pythondevutils_lib\n\n# \u5b89\u88c5\u5f00\u53d1\u4f9d\u8d56\npip install -e .\n\n# \u6d4b\u8bd5\u547d\u4ee4\u884c\u5de5\u5177\npixelarraylib --help\n```\n\n### \u6dfb\u52a0\u65b0\u7684\u547d\u4ee4\u884c\u5de5\u5177\n\n1. \u5728 `pixelarraylib/scripts/` \u76ee\u5f55\u4e0b\u521b\u5efa\u65b0\u7684\u811a\u672c\u6587\u4ef6\n2. \u5728 `pixelarraylib/__main__.py` \u4e2d\u6dfb\u52a0\u65b0\u7684\u547d\u4ee4\u9009\u9879\n3. \u66f4\u65b0 `pixelarraylib/scripts/__init__.py` \u5bfc\u51fa\u65b0\u529f\u80fd\n\n## \u8bb8\u53ef\u8bc1\n\nMIT License\n\n## \u4f5c\u8005\n\nLu qi (qi.lu@pixelarrayai.com) \n",
"bugtrack_url": null,
"license": null,
"summary": "PixelArray Python\u5f00\u53d1\u5de5\u5177\u5e93 - \u5305\u542b\u963f\u91cc\u4e91\u670d\u52a1\u3001\u6570\u636e\u5e93\u5de5\u5177\u3001\u88c5\u9970\u5668\u3001\u76d1\u63a7\u7b49\u529f\u80fd",
"version": "1.0.7",
"project_urls": {
"Bug Reports": "https://gitlab.com/pixelarrayai/general_pythondevutils_lib/-/issues",
"Homepage": "https://gitlab.com/pixelarrayai/general_pythondevutils_lib",
"Source": "https://gitlab.com/pixelarrayai/general_pythondevutils_lib"
},
"split_keywords": [
"python",
" utils",
" aliyun",
" database",
" tools",
" pixelarray"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "2a365301d065def11f745f1eec502cc6946e76638763fc48edac1f61f7abc4e4",
"md5": "24b6e82f01edbcd5865442ff7c412e40",
"sha256": "74c0573fd20bd454759dbfac7b254660e208a584ba78ba2f88056db98d9b3751"
},
"downloads": -1,
"filename": "pixelarraylib-1.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "24b6e82f01edbcd5865442ff7c412e40",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 61335,
"upload_time": "2025-10-16T05:35:45",
"upload_time_iso_8601": "2025-10-16T05:35:45.570244Z",
"url": "https://files.pythonhosted.org/packages/2a/36/5301d065def11f745f1eec502cc6946e76638763fc48edac1f61f7abc4e4/pixelarraylib-1.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "94e12a7a9f4aa1547b370f5120827510539c1ba42d243dd64647511ba21c0cf1",
"md5": "6fa739e065eed574716495a68acedcc5",
"sha256": "d53f25f208da11683c2c62f00682f1b9b2ab616d415ae6811bede9dbdaf957dc"
},
"downloads": -1,
"filename": "pixelarraylib-1.0.7.tar.gz",
"has_sig": false,
"md5_digest": "6fa739e065eed574716495a68acedcc5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 49225,
"upload_time": "2025-10-16T05:35:47",
"upload_time_iso_8601": "2025-10-16T05:35:47.341749Z",
"url": "https://files.pythonhosted.org/packages/94/e1/2a7a9f4aa1547b370f5120827510539c1ba42d243dd64647511ba21c0cf1/pixelarraylib-1.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-16 05:35:47",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "pixelarrayai",
"gitlab_project": "general_pythondevutils_lib",
"lcname": "pixelarraylib"
}