Skip to main content

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


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.2.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

amh_utils-1.0.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file amh_utils-1.0.2.tar.gz.

File metadata

  • Download URL: amh_utils-1.0.2.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for amh_utils-1.0.2.tar.gz
Algorithm Hash digest
SHA256 127061ef66818607bfa058ecf4e5842558afc86878781c3372bd190c951c4d9a
MD5 de8df66e0fcfd9f4ea045f4331b2e234
BLAKE2b-256 b6ed7f087b03ba5f95030709b22cc89858f57da8ba4f57ad4da55891224624b0

See more details on using hashes here.

File details

Details for the file amh_utils-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: amh_utils-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for amh_utils-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f0a30ca51c6577e40bbc6dfdb0c5ee77c7a1d7051395574605e9e0011195fc76
MD5 7c52c8faa2109dac46ab946f0369461d
BLAKE2b-256 38392ab8ece7b8f49d10eb01fe087687d6e9432385bc18c8af11b839d47555f6

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