Skip to main content

A simple configuration file tool

Project description

confutilPPP

1.安装

pip install confutilPPP

2.导入并使用

import confutilPPP

def test():
    # _object : dict, 包含配置对象
    # _filename : str, 配置文件名 默认为 config
    # return : dict, 配置字典
    # 首次当前位置生成 *.yml 文件,之后直接读取
    # *.yaml也可用
    CONFIG = {
        'test': 'test'
    }
    conf = confutilPPP.check_config(_object=CONFIG, _filename='config')
    print(conf)

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

confutilPPP-1.2.2.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

confutilPPP-1.2.2-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page