Web lists-archives.com

Bug#917076: ITP: python-envs -- Easy access of environment variables from Python




Package: wnpp
Severity: wishlist
Owner: Ruben Undheim <ruben.undheim@xxxxxxxxx>

* Package name    : python-envs
  Version         : 1.2.6
  Upstream Author : Brian Jinwright
* URL             : https://pypi.org/project/envs/
* License         : Apache-2.0
  Programming Lang: Python
  Description     : Easy access of environment variables from Python


You can use python-envs if you need environment variables for your settings but
need an easy way of using Python objects instead of just strings. For example,
if you need a list of strings.

Features:
 - CLI to convert settings
 - CLI to list and check environment variables
 - Use strings, lists, tuples, integers, floats or dicts. IMPORTANT: When
   setting the variables in your environmenet (ex. in .env file) wrap them in
   single or double quotes (ex. "['some','list']")

It is a dependency for home-assistant.

I plan to maintain it in the Python modules team.