Skip to main content

dotenvx

a better dotenv–from the creator of dotenv.

  • run anywhere (cross-platform)
  • multi-environment
  • encrypted envs

 

Quickstart PyPI version

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

python_dotenvx-2.0.0-cp38-abi3-win_amd64.whl (885.9 kB view details)

Uploaded CPython 3.8+Windows x86-64

python_dotenvx-2.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

python_dotenvx-2.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

python_dotenvx-2.0.0-cp38-abi3-macosx_11_0_arm64.whl (953.2 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

python_dotenvx-2.0.0-cp38-abi3-macosx_10_12_x86_64.whl (986.7 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file python_dotenvx-2.0.0-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for python_dotenvx-2.0.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5b7fe10be032fe8973ddd1f92b404c5ae0a8b1db53776a73eb3e5920f960bd79
MD5 1e2f209c97e7f20bb9e1fa630d7fee82
BLAKE2b-256 55e6b09ea13fb59ccee15fc720c4fa2794eca5374b3598d47b49f8affb074fcf

See more details on using hashes here.

File details

Details for the file python_dotenvx-2.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for python_dotenvx-2.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e8cd30b658abaf59cae8553a461c702657db8badac1ccf5ea97144fc9b4159e
MD5 9fd45bbd0c0dc2366529d9c877336a16
BLAKE2b-256 9f0987d37d8cce03373b2a30a5752a66a7ada79605ab7d7e1bf0f29685c9087a

See more details on using hashes here.

File details

Details for the file python_dotenvx-2.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for python_dotenvx-2.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2d5581229ba632e46d3e2c30302b0dbfdb50771b99f94775642f54a2ee107fe6
MD5 3c84b01075cba79b4d0eb0a7a666bddb
BLAKE2b-256 0058ca496e0ed87d0e3bbfc4e57a48fd576a784bcc2bc6888936f9cb3592d4c0

See more details on using hashes here.

File details

Details for the file python_dotenvx-2.0.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for python_dotenvx-2.0.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86607f3e19157658980fd1d73d775681450458477ef3288ecb9ebba2a5941aac
MD5 994b4639d6f5642515c80e106e2a3256
BLAKE2b-256 caeb7ff111ab803b77f8dd3f1b4085a54df4102510aef9ec9f3c8fc83f77e3e9

See more details on using hashes here.

File details

Details for the file python_dotenvx-2.0.0-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for python_dotenvx-2.0.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 93bdfb5d61020ffaab87d0c4badc8d6ed06b1f94cefedc89ee77bb45520d379a
MD5 f4d98c1b4ee40f39528c696fa06363fb
BLAKE2b-256 b45ba1ff90d119491ce429f45d068c30944847228fc5ea757393cf5867c7c31a

See more details on using hashes here.

Release history Release notifications | RSS feed

2.0.1

5 files

This release

2.0.0 This release

5 files

0.3.0

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page