env.py-0.2.2
توضیحات
Easily manage your python application settings for different environments
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | env.py-0.2.2 |
| نام | env.py |
| نسخه کتابخانه | 0.2.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Abhinav Singh |
| ایمیل نویسنده | mailsforabhinav@gmail.com |
| آدرس صفحه اصلی | https://github.com/abhinavsingh/env.py |
| آدرس اینترنتی | https://pypi.org/project/env.py/ |
| مجوز | BSD |
env.py
======
Easily manage your python application settings for different environments
Usage:
------
Consider following file structure somewhere in your python application:
```
- app
- settings.py
- local_env.py # required by env.py
- local_settings.py
- dev_settings.py
- prod_settings.py
- prodstage_settings.py
- test_settings.py
```
What `env.py` does is, it allows you to define different environment custom settings
inside files named `$env_settings.py`. Then, inside `local_env.py` define
current environment like `ENV='prod'`.
At the top or at the bottom of `settings.py` based upon how you use `env.py`, use as:
`from env import *`
This will configure your application for your current `ENV` custom settings along with common `settings.py`
نحوه نصب
نصب پکیج whl env.py-0.2.2:
pip install env.py-0.2.2.whl
نصب پکیج tar.gz env.py-0.2.2:
pip install env.py-0.2.2.tar.gz