Metadata-Version: 2.1
Name: python-environment-settings
Version: 0.1.1
Summary: 简易的配置项获取方式，支持添加多种配置项获取源。默认从环境变量中获取配置项。
Author: rRR0VrFP
Maintainer: rRR0VrFP
License: Apache License, Version 2.0
Keywords: python-environment-settings
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Description-Content-Type: text/markdown
License-File: LICENSE

# python-environment-settings

简易的配置项获取方式，支持添加多种配置项获取源。默认从环境变量中获取配置项。

## 安装

```shell
pip install python-environment-settings
```

## 使用

```python
from django.conf import settings
import python_environment_settings

python_environment_settings.add_settings(settings)

CONFIG1 = python_environment_settings.get(
    "CONFIG1",
    default="DEFAULT_VALUE1",
    aliases=[
        "config1",
        "item1",
        "key1",
    ]
)
```

## 版本记录

### v0.1.0

- 版本首发。

### v0.1.1

- 允许添加优先级高于env的settings。
