Utility functions for AMH system
Project description
简介
1、封装PyMySQL使用的集合类
- 读取配置文件
- 创建连接
- 创建游标
2、新增公用读取配置文件的方法
- 支持从多个位置加载 YAML/JSON/CONF 格式的配置文件
- 支持从环境变量/工作目录/用户目录中加载配置文件
- 支持从多个配置文件中加载指定环境的配置
- 支持类型转换和必填字段校验
3、新增日志记录器
- 支持多处理器、配置文件、异常捕获的增强型日志记录器
- 支持多种日志格式(标准、JSON)
- 支持多种日志级别(DEBUG、INFO、WARNING、ERROR、CRITICAL)
- 支持多种日志输出方式(控制台、文件)
- 支持多种日志滚动策略(按时间、按大小)
使用方法
后续添加
日志
-
2026-03-17
- 新增日志记录器
-
2026-03-10
- tags v1.0.0
- utils 新增config文件夹,默认放配置文件
-
2026-02-25 MySQLClient 新增 is_connected 方法
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
amh_utils-1.0.1.tar.gz
(12.5 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
amh_utils-1.0.1-py3-none-any.whl
(13.5 kB
view details)
File details
Details for the file amh_utils-1.0.1.tar.gz.
File metadata
- Download URL: amh_utils-1.0.1.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
200626247815fe9e3f8b8381964be972f93cf4e8be233b0a7485bcaa7d343a01
|
|
| MD5 |
9adc1db3d12f60878de1792a702c754d
|
|
| BLAKE2b-256 |
b8be2362b31c69793a30e2c8bf607e6f948803d9f6941730a55a6b379cc5178d
|
File details
Details for the file amh_utils-1.0.1-py3-none-any.whl.
File metadata
- Download URL: amh_utils-1.0.1-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1394a2be2811eb7adf6c34825077e7d560169e8ec29c357b1f7e1e3af88f34ac
|
|
| MD5 |
3dc75fe603777fad732271672e13f2ee
|
|
| BLAKE2b-256 |
a09d82e44ee79509d0c1456b4bac40801f81ffbcc739e8539b6b646555c56e01
|