Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /