Skip to main content

AppsCfg

应用程序配置管理包,提供配置读取、运行时监控和基础配置类。

注意: 包在PyPI上的名称是 liwancai-AppsCfg,但导入时使用 AppsCfg

安装

pip install liwancai-AppsCfg

使用

# 导入整个包的所有功能
from AppsCfg import *

# 使用功能示例
AppName, DataPath, config = GetConfig()
cfg = SetCfgBase(AppName, DataPath, config)

其他导入方式

# 导入特定模块
from AppsCfg import Core

# 导入特定函数
from AppsCfg.Core import SetCfgBase, GetConfig

功能模块

  • SetCfgBase: 基础配置类,提供应用程序配置管理功能
  • GetConfig: 配置获取函数,自动读取和解析配置文件

SetCfgBase 类

主要功能:

  • 应用程序配置管理
  • 运行时监控
  • 本地IP获取
  • 启动/停止时间记录
class SetCfgBase:
    def __init__(self, AppName, DataPath, config):
        # 初始化配置
        
    def update_runtime(self):
        # 更新运行时间
        
    def Start(self):
        # 启动应用程序
        
    def Stop(self):
        # 停止应用程序
        
    def GetLocalIP(self):
        # 获取本地IP地址

GetConfig 函数

def GetConfig(DataPath: str = f"./Apps/{AppName}/Datas/"):
    # 自动获取应用程序配置
    # 返回: AppName, DataPath, config

依赖包

  • liwancai-PyLog: 日志管理
  • liwancai-DirsFile: 文件和目录操作
  • liwancai-PyTools: 工具函数集合

许可证

MIT License

Metadata

Release files for liwancai-AppsCfg 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for liwancai-AppsCfg 1.0.1
File Size Uploaded Provenance Actions
liwancai_appscfg-1.0.1.tar.gz 3.7 kB Without provenance Details for liwancai_appscfg-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for liwancai-AppsCfg 1.0.1
File Interpreter ABI Platform Actions
liwancai_appscfg-1.0.1-py3-none-any.whl Python 3 none any Details for liwancai_appscfg-1.0.1-py3-none-any.whl

Total release size: 7.4 kB

Release files / liwancai_appscfg-1.0.1.tar.gz

Download URL liwancai_appscfg-1.0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fcac2e7853dc3b3bf2c13dfa4145175ec42cda2f35cc3191bda350b47bc83509
BLAKE2b-256 checksum
How to use checksums
995e0df0bb9bcbe48e6153fb1d29bf18e100cb16885e499250486c96b3f28fc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / liwancai_appscfg-1.0.1-py3-none-any.whl

Download URL liwancai_appscfg-1.0.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66b54ac6ba11dd8b8acfd82080ef22591993ce8d571ecba4dbcd8c4868bd1173
BLAKE2b-256 checksum
How to use checksums
3abf95e63f81eda94ad1a8827ec666f5c7101b471e5c70533e8449fb575c8dd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for liwancai-AppsCfg 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page