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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_dotenvx-2.0.0-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: python_dotenvx-2.0.0-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 885.9 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b7fe10be032fe8973ddd1f92b404c5ae0a8b1db53776a73eb3e5920f960bd79
|
|
| MD5 |
1e2f209c97e7f20bb9e1fa630d7fee82
|
|
| BLAKE2b-256 |
55e6b09ea13fb59ccee15fc720c4fa2794eca5374b3598d47b49f8affb074fcf
|
File details
Details for the file python_dotenvx-2.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: python_dotenvx-2.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e8cd30b658abaf59cae8553a461c702657db8badac1ccf5ea97144fc9b4159e
|
|
| MD5 |
9fd45bbd0c0dc2366529d9c877336a16
|
|
| BLAKE2b-256 |
9f0987d37d8cce03373b2a30a5752a66a7ada79605ab7d7e1bf0f29685c9087a
|
File details
Details for the file python_dotenvx-2.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: python_dotenvx-2.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d5581229ba632e46d3e2c30302b0dbfdb50771b99f94775642f54a2ee107fe6
|
|
| MD5 |
3c84b01075cba79b4d0eb0a7a666bddb
|
|
| BLAKE2b-256 |
0058ca496e0ed87d0e3bbfc4e57a48fd576a784bcc2bc6888936f9cb3592d4c0
|
File details
Details for the file python_dotenvx-2.0.0-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: python_dotenvx-2.0.0-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 953.2 kB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86607f3e19157658980fd1d73d775681450458477ef3288ecb9ebba2a5941aac
|
|
| MD5 |
994b4639d6f5642515c80e106e2a3256
|
|
| BLAKE2b-256 |
caeb7ff111ab803b77f8dd3f1b4085a54df4102510aef9ec9f3c8fc83f77e3e9
|
File details
Details for the file python_dotenvx-2.0.0-cp38-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: python_dotenvx-2.0.0-cp38-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 986.7 kB
- Tags: CPython 3.8+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93bdfb5d61020ffaab87d0c4badc8d6ed06b1f94cefedc89ee77bb45520d379a
|
|
| MD5 |
f4d98c1b4ee40f39528c696fa06363fb
|
|
| BLAKE2b-256 |
b45ba1ff90d119491ce429f45d068c30944847228fc5ea757393cf5867c7c31a
|