config-library-0.2.0
توضیحات
utility library to find and load configuration files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | config-library-0.2.0 |
| نام | config-library |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | PlayerG9 |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/PlayerG9/py-config-lib |
| آدرس اینترنتی | https://pypi.org/project/config-library/ |
| مجوز | - |
# config-library
utility library to find and load configuration files
# Installation
`pip install config-library`
# Usage Example
```python
import configs
config = configs.findAndLoad('app.conf', 'project')
```
project-structure
```
/
├─ etc/
├─ home/user/
│ ├─ path/to/repo/
│ │ ├─ src/code/
│ │ │ ├─ main.py
│ ├─ .config/
```
places to search for the config-file
- /home/user/path/to/repo/src/code/app.conf
- /home/user/path/to/repo/src/code/project/app.conf
- /home/user/path/to/repo/app.conf
- /home/user/path/to/repo/project/app.conf
- /home/user/.config/app.conf
- /home/user/.config/project/app.conf
- /etc/app.conf
- /etc/project/app.conf
# Supported Config-Types
- .json
- .ini/.conf
- .toml (python3.11+)
- .yaml (if `pyyaml` is installed)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl config-library-0.2.0:
pip install config-library-0.2.0.whl
نصب پکیج tar.gz config-library-0.2.0:
pip install config-library-0.2.0.tar.gz