https://github.com/cemkiy/python-shell-environment
Shell environment management for python. It's not virt or weird, real!
https://github.com/cemkiy/python-shell-environment
environment environment-variables python-environment shell-environment
Last synced: 3 months ago
JSON representation
Shell environment management for python. It's not virt or weird, real!
- Host: GitHub
- URL: https://github.com/cemkiy/python-shell-environment
- Owner: cemkiy
- License: gpl-3.0
- Created: 2016-07-06T07:46:21.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-25T17:35:52.000Z (almost 8 years ago)
- Last Synced: 2025-02-25T22:03:55.487Z (3 months ago)
- Topics: environment, environment-variables, python-environment, shell-environment
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Real Environment
Easy to use python shell environment management
- works with directly shell
- autoload ".env" file### Version
1.0### Installation
You could install with pip or pip3.
```sh
$ pip install real_environment
$ pip3 install real_environment
```### How To Use
```python
from real_environment import real_environment
# init func will autoload your .env file
renv = real_environment.RealEnvironment()
renv.get_env_or_default("db_url","default_value_if_empty_returns")
renv.set_a_variable_to_environment("key","value")
renv.remove_a_variable_from_environment("key")
```