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
Jun 22, 2017
Jul 6, 2016
Jul 6, 2016
Jun 22, 2017
Jun 22, 2017

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages