[dotenvx.com] a better dotenv–from the creator of `dotenv`
Project description
[!IMPORTANT]
Warning: work in progress. until complete, please use github.com/dotenvx/dotenvx directly.
see python examples
a better dotenv–from the creator of dotenv
.
- run anywhere (cross-platform)
- multi-environment
- encrypted envs
Quickstart 
Install and use it in code just like python-dotenv
.
pip install python-dotenvx
Then run dotenvx-postinstall
to install the dotenvx
binary (python-dotenvx is a wrapper).
dotenvx-postinstall
# or to specify the os-arch – useful for building binaries to a specific target such as linux-x86_64 on aws lambda
dotenvx-postinstall --os linux --arch x86_64
# you might also find you need to specify PYTHONPATH depend on how/where dotenvx installs to
PYTHONPATH=. bin/dotenvx-postinstall --os linux --arch x86_64
Then use it in code.
# main.py
import os
from dotenvx import load_dotenvx
load_dotenvx() # take environment variables from .env.
print(os.getenv("S3_BUCKET"))
Changelog
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
Unreleased
0.3.0
Added
- Add
dotenv_path
andoverride
arguments (#4)
0.2.6
Changed
- Add force to the binary install
0.2.5
Added
- Add additional bin/* candidate to check for dotenvx binary
0.2.4
Added
- Add the ability to specify the
os
andarch
ondotenvx-postinstall
0.2.3
Changed
- Patch
dotenvx
binary install across multiple edge cases
0.2.2
Changed
- Adjust installation of
dotenvx
binary on demand
0.2.1
Added
- Install the
dotenvx
binary on install of the python package
0.2.0
Please see commit history.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python_dotenvx-0.3.0.tar.gz
.
File metadata
- Download URL: python_dotenvx-0.3.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0edf67343202952a73775f30654e7d3ea5af19bb6df94947f70c4ca243bab71f
|
|
MD5 |
6ed5862e1c3441d0dd3eb6a507718d67
|
|
BLAKE2b-256 |
1bd7195d93711e15ac99a79b5d5fabe8b50d1344ee7137310b93c73057c5ae9c
|
File details
Details for the file python_dotenvx-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: python_dotenvx-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
8ddb042680d88c54aeae3503f3bae149ce52fc00de6785572210aab206392293
|
|
MD5 |
b8cab02e2f552257113ff8b59a54475e
|
|
BLAKE2b-256 |
3dbde1c98d41b636550f8bcebc583d4d168035e7544a90eff050a8b3fe02c9d2
|