Skip to main content

autoread-dotenv

Testing Linting Read the Docs Codecov PyPi Package MIT License

autoread-dotenv parses your .env file when starting any venv-based Python process:

Demo

Installation

Install via uv:

> uv add autoread-dotenv

Or add to your poetry-based project:

> poetry add autoread-dotenv

Install via pip:

> bin/pip install autoread-dotenv

Set up a local development environment

> just install

Usage

The only thing left to do for you is the create a .env in the root of your project.

Registered sitecustomize-entrypoint

The autoread_dotenv.entrypoint-function is registered as a sitecustomize-entrypoint in our pyproject.toml_:

    [project.entry-points.sitecustomize]
    autoread_dotenv = "autoread_dotenv:entrypoint"

Sitecustomize and all its registered entrypoints will be executed at the start of every python-process. For more information, please see sitecustomize-entrypoints

Avoid overriding existing environments variables

By default, your .env-file read by autoread-dotenv will override any pre-existing environment variables. You can avoid this behaviour by setting AUTOREAD_ENFORCE_DOTENV=0.

Compatibility

Python Version PyPI - Implementation

autoread-dotenv works on Python 3.9+, including PyPy3. Tested until Python 3.14.

Notable dependencies

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoread_dotenv-1.0.5.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

autoread_dotenv-1.0.5-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file autoread_dotenv-1.0.5.tar.gz.

File metadata

  • Download URL: autoread_dotenv-1.0.5.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for autoread_dotenv-1.0.5.tar.gz
Algorithm Hash digest
SHA256 2ce4df858fea7eef7980602d4ba9bd603034353af513bc77982e491de6728b7f
MD5 72bf1469b800e4b4085f83369c881e91
BLAKE2b-256 b6ec30dc6110c15b3e244a61d608f03db8db340e50b67eaa7fafdbc7bc17b245

See more details on using hashes here.

Provenance

The following attestation bundles were made for autoread_dotenv-1.0.5.tar.gz:

Publisher: release.yaml on libranet/autoread-dotenv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file autoread_dotenv-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for autoread_dotenv-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 00099a6c6611ba0233fd23b18bd0517ac088941f8455d57522befa7e09928086
MD5 f1d3fda523ef1219b7eee243b58b4b44
BLAKE2b-256 3c2825178bb149104ec2c9e23d6ca3f25ab49dd423fb57b7639e965436f2d136

See more details on using hashes here.

Provenance

The following attestation bundles were made for autoread_dotenv-1.0.5-py3-none-any.whl:

Publisher: release.yaml on libranet/autoread-dotenv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.0.6

2 files

This release

1.0.5 This release

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0

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