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.1-cp38-abi3-win_amd64.whl (876.8 kB view details)

Uploaded CPython 3.8+Windows x86-64

python_dotenvx-2.0.1-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.1-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.1-cp38-abi3-macosx_11_0_arm64.whl (932.2 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

python_dotenvx-2.0.1-cp38-abi3-macosx_10_12_x86_64.whl (976.4 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for python_dotenvx-2.0.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3ab0d3e2a683315051c9a9d0b7f92d6979d41147cadf5a56424848f05049f7fe
MD5 c23c1fdb000b7aa94466668a473132ee
BLAKE2b-256 85d76726e530930e0dde8971ab15b2ccb6335c66e116ba10833549039d3e597e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_dotenvx-2.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fdbd2c559a351979492e0c1b06221003c9b380c39f5c210b1247781e6386606c
MD5 2ec4b579569dc8a206584bca4f365700
BLAKE2b-256 08286d0ec5fe0c42488019ce184f94fba71cebdf70f538c3d506ceac22dc0c68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_dotenvx-2.0.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c708307449e0023ca64d47a265231d8f243513ee00f087592cc3e7abc41b1251
MD5 37426fc9220d1d9a466e5c468932ecad
BLAKE2b-256 4ee5337744fa5004adff4a92ad267b5d28dfd02cbfb4ad5935800e3cf88b18d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_dotenvx-2.0.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6fe8adac49369bfd56040d1091c8caa58ab889af1646aef273902cdb46aad680
MD5 4cd96274dada2a5f7c6692b40c133fa9
BLAKE2b-256 eabd05f330b331e3121fb2b7263204be14e2990aec1ab70cb7c7f78b3a04296d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_dotenvx-2.0.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 93a2000d543be027d8e7f44a79bd80caac0a289cf750fa827c5852b3fb2ba567
MD5 6a69ccdd8e99b519bb6a1b3270458e38
BLAKE2b-256 32ddf63159319831830c0150bc4b8f834ae6fa160adf52c753f0ce25d0231b53

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.1 This release

5 files

2.0.0

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