Skip to main content

A simple .env reader

Project description

uenv

Tiny simple .env reader.

Usage

import uenv

Why

Ever writing a Jupyter notebook and you want to use a token, where do you set it?

  • write directly to the Jupyter, then it is like write secret to code. Some may git add the .ipynb file and push to GitHub
  • set shell ENVIRONMENT variable, then it would need to restart the notebook every time
  • read from some random file, then you may need to delete before go production.

.env file is a popular way to handle it, put the env key=value inside it and load with some library, e.g https://github.com/theskumar/python-dotenv

Why uenv?

μenv, like utorrent. Mu .env reader, because dotenv name on PYPI is already taken, and https://github.com/theskumar/python-dotenv is a bit more full-features or more than too simple.

Install

pip install git+https://github.com/hvnsweeting/uenv

Or

TODO

pip install uenv

or open uenv.py then copy 5 lines of code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uenv-0.0.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

uenv-0.0.1-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page