Skip to content

Shell environment management for python. It's not virt or weird, real!

License

Notifications You must be signed in to change notification settings

cemkiy/python-shell-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

$ pip install real_environment
$ pip3 install real_environment

How To Use

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")