fastconf-1.0.0
توضیحات
A simple config lib
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fastconf-1.0.0 |
| نام | fastconf |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Arwichok |
| ایمیل نویسنده | arwichok@gmail.com |
| آدرس صفحه اصلی | https://github.com/arwichok/fastconf |
| آدرس اینترنتی | https://pypi.org/project/fastconf/ |
| مجوز | MIT |
# FastConf
Simple lib for configuration
[](https://pypi.org/project/fastconf/)
#### Install
```
$ pip install fastconf
```
#### Example project structure
```
main.py
core/
__init__.py
config.py
```
**main.py**
```python
from core import config
print('TOKEN:', config.TOKEN)
```
**core/config.py**
```python
import fastconf
TOKEN = '...'
fastconf.config(__name__)
```
#### Run project:
```
$ python main.py
TOKEN: ...
```
The **config.yml** file is created in the project root directory.
Change him:
```
TOKEN: 'MY_TOKEN'
```
#### Run again
```
$ python main.py
TOKEN: MY_TOKEN
```
`fastconf.config(name, file='config.yml', root=ROOT_DIR)`
`name` - current name of config module
`file` - name config file
`dir` - path to config dir
نیازمندی
| مقدار | نام |
|---|---|
| - | pyyaml |
نحوه نصب
نصب پکیج whl fastconf-1.0.0:
pip install fastconf-1.0.0.whl
نصب پکیج tar.gz fastconf-1.0.0:
pip install fastconf-1.0.0.tar.gz