load-dotenv-0.1.0
توضیحات
Automatically and implicitly load environment variables from .env file
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | load-dotenv-0.1.0 |
| نام | load-dotenv |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | fly |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/fly/load-dotenv |
| آدرس اینترنتی | https://pypi.org/project/load-dotenv/ |
| مجوز | - |
# load-dotenv
Environment variables are a great and popular way to configure your application.
Although the number of such variables can be really high in a big application, making
it annoying to manage during development.
Common solution for this issue is usage of `.env` files which contain all variables
that should be loaded into your development environment. There are different ways
to do this, for example handy [python-dotenv](https://pypi.org/project/python-dotenv/)
package. But it should be executed explicitly in order to work. In my projects
I don't want to add `load_dotenv()` execution in my code that is running on
production, and I'm too lazy to create customer runners for development only.
Thus, I made **load-dotenv** that can do this for me automatically.
## Installation
```shell
pip install load-dotenv
```
## Usage
Create `.env` file in your working directory and put your variables there.
For details about file format, please refer
[python-dotenv documentation](https://saurabh-kumar.com/python-dotenv/#file-format).
Run your application with `LOAD_DOTENV` variable set to one of `true`, `yes` or `1`.
Alternative path to the file can be specified via `LOAD_DOTENV_PATH` variable.
نیازمندی
| مقدار | نام |
|---|---|
| - | python-dotenv |
نحوه نصب
نصب پکیج whl load-dotenv-0.1.0:
pip install load-dotenv-0.1.0.whl
نصب پکیج tar.gz load-dotenv-0.1.0:
pip install load-dotenv-0.1.0.tar.gz