Name | enviz JSON |
Version |
0.1.2
JSON |
| download |
home_page | |
Summary | Python .env file made easier |
upload_time | 2023-11-22 02:20:46 |
maintainer | |
docs_url | None |
author | oskvr37 |
requires_python | >=3.8 |
license | |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<img src="https://raw.githubusercontent.com/oskvr37/enviz/main/logo.svg" width="100%"/>
# About
Enviz is a python module that allows you to write and read environment variables from a file.
# Installation
```bash
pip install enviz
```
# Usage
```python
from enviz import Env
# Read environment variables from a file
env = Env(path='.env.example', autowrite=True)
# We can update the environment variables with a dictionary
env.update({
'TEST1': '1',
'TEST2': '2'
})
# We can also update the environment variables by setting them manually
env['TEST3'] = '3'
```
```bash
# env.example
TEST1 = "1"
TEST2 = "2"
TEST3 = "3"
```
Enviz will automatically write the environment variables to the file if the `autowrite` parameter is set to `True`. If you want to write the environment variables manually, you can use the `write()` method.
Raw data
{
"_id": null,
"home_page": "",
"name": "enviz",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "oskvr37",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/f8/e3/144f89bb77ce15f952dc3db67cbdb563d68139a2889beb99fb3e6ee1f7c5/enviz-0.1.2.tar.gz",
"platform": null,
"description": "<img src=\"https://raw.githubusercontent.com/oskvr37/enviz/main/logo.svg\" width=\"100%\"/>\n\n# About\n\nEnviz is a python module that allows you to write and read environment variables from a file.\n\n# Installation\n\n```bash\npip install enviz\n```\n\n# Usage\n\n```python\nfrom enviz import Env\n\n# Read environment variables from a file\nenv = Env(path='.env.example', autowrite=True)\n\n# We can update the environment variables with a dictionary\nenv.update({\n 'TEST1': '1',\n 'TEST2': '2'\n})\n\n# We can also update the environment variables by setting them manually\nenv['TEST3'] = '3'\n```\n\n```bash\n# env.example\nTEST1 = \"1\"\nTEST2 = \"2\"\nTEST3 = \"3\"\n```\n\nEnviz will automatically write the environment variables to the file if the `autowrite` parameter is set to `True`. If you want to write the environment variables manually, you can use the `write()` method.\n",
"bugtrack_url": null,
"license": "",
"summary": "Python .env file made easier",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/oskvr37/enviz"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e28939c5d8daab5855c71d25ac99dcd74cfb6bac223881de1ee1045f57f9a609",
"md5": "9cd54180f4e3ab785b63fe460bda9463",
"sha256": "be59a14f81cca6f5e9b236bbb51455160399bd654033c80f78cb540cb72c640c"
},
"downloads": -1,
"filename": "enviz-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9cd54180f4e3ab785b63fe460bda9463",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 3835,
"upload_time": "2023-11-22T02:20:42",
"upload_time_iso_8601": "2023-11-22T02:20:42.958622Z",
"url": "https://files.pythonhosted.org/packages/e2/89/39c5d8daab5855c71d25ac99dcd74cfb6bac223881de1ee1045f57f9a609/enviz-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f8e3144f89bb77ce15f952dc3db67cbdb563d68139a2889beb99fb3e6ee1f7c5",
"md5": "ce96dd959198aa360ddb45670a1631f1",
"sha256": "b980524cde615bd3708adef096dab7bf02c9f66227aabf745d0aea61b9606f83"
},
"downloads": -1,
"filename": "enviz-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "ce96dd959198aa360ddb45670a1631f1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3731,
"upload_time": "2023-11-22T02:20:46",
"upload_time_iso_8601": "2023-11-22T02:20:46.179625Z",
"url": "https://files.pythonhosted.org/packages/f8/e3/144f89bb77ce15f952dc3db67cbdb563d68139a2889beb99fb3e6ee1f7c5/enviz-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-22 02:20:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "oskvr37",
"github_project": "enviz",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "enviz"
}