Visitar URL original
GitHub - cemkiy/python-shell-environment: Shell environment management for python. It's not virt or weird, real!
The Wayback Machine - https://web.archive.org/web/20200910050543/https://github.com/cemkiy/python-shell-environment
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

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

Packages

No packages published

Languages

You can’t perform that action at this time.