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
The wheel includes native dotenvx Rust primitives. No dotenvx executable or post-install download is required.
# main.py
import os
from dotenvx import load_dotenv
load_dotenv() # take environment variables from .env
print(os.getenv("S3_BUCKET"))
You can also parse values without changing the environment:
from dotenvx import dotenv_values
values = dotenv_values(".env")
Encrypted values are decrypted using DOTENV_PRIVATE_KEY from the environment
or a neighboring .env.keys file.
Metadata
Release files for python-dotenvx 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| python_dotenvx-2.0.1-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details |
| python_dotenvx-2.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| python_dotenvx-2.0.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| python_dotenvx-2.0.1-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details |
| python_dotenvx-2.0.1-cp38-abi3-macosx_10_12_x86_64.whl | CPython 3.8 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 4.9 MB
Release files / python_dotenvx-2.0.1-cp38-abi3-win_amd64.whl
| Download URL | python_dotenvx-2.0.1-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 876.8 kB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
3ab0d3e2a683315051c9a9d0b7f92d6979d41147cadf5a56424848f05049f7fe
|
|
BLAKE2b-256 checksum How to use checksums |
85d76726e530930e0dde8971ab15b2ccb6335c66e116ba10833549039d3e597e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / python_dotenvx-2.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | python_dotenvx-2.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
fdbd2c559a351979492e0c1b06221003c9b380c39f5c210b1247781e6386606c
|
|
BLAKE2b-256 checksum How to use checksums |
08286d0ec5fe0c42488019ce184f94fba71cebdf70f538c3d506ceac22dc0c68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / python_dotenvx-2.0.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | python_dotenvx-2.0.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
c708307449e0023ca64d47a265231d8f243513ee00f087592cc3e7abc41b1251
|
|
BLAKE2b-256 checksum How to use checksums |
4ee5337744fa5004adff4a92ad267b5d28dfd02cbfb4ad5935800e3cf88b18d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / python_dotenvx-2.0.1-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | python_dotenvx-2.0.1-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 932.2 kB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6fe8adac49369bfd56040d1091c8caa58ab889af1646aef273902cdb46aad680
|
|
BLAKE2b-256 checksum How to use checksums |
eabd05f330b331e3121fb2b7263204be14e2990aec1ab70cb7c7f78b3a04296d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / python_dotenvx-2.0.1-cp38-abi3-macosx_10_12_x86_64.whl
| Download URL | python_dotenvx-2.0.1-cp38-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 976.4 kB |
| Tags | CPython 3.8 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
93a2000d543be027d8e7f44a79bd80caac0a289cf750fa827c5852b3fb2ba567
|
|
BLAKE2b-256 checksum How to use checksums |
32ddf63159319831830c0150bc4b8f834ae6fa160adf52c753f0ce25d0231b53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|