Skip to main content

Load environment variables from age-encrypted files

Project description

agenv

A simple Python package for securely loading environment variables from age encrypted file.

Installation

pip install agenv

[!NOTE] age must be installed separately, as there is no native Python implementation of age.

Usage

from agenv import load_age_env

load_age_env(".env.age")  # Decrypts and loads environment variables

Identity Key Selection Order

agenv determines the age identity key in the following order:

  1. The identity parameter provided to load_age_env()
  2. The AGE_SECRET_KEY environment variable
  3. The AGE_SECRET_KEY_FILE environment variable (path to key file)
  4. The default key file: ~/.age/key

If no valid identity is found, decryption will fail.

License

MIT

Project details


Download files

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

Source Distribution

agenv-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

agenv-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file agenv-0.1.0.tar.gz.

File metadata

  • Download URL: agenv-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for agenv-0.1.0.tar.gz
Algorithm Hash digest
SHA256 27d41820ae1442d46d283374f4666358593d8267d8cbc4c24fcc710a969e9ba4
MD5 82fecddc8d35585fbc052e6b8c77bcff
BLAKE2b-256 135e85f2d5899048886b5da39a1edae9456c4d19594ac7dad0ccc114e91e40a9

See more details on using hashes here.

File details

Details for the file agenv-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agenv-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for agenv-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21d613e46b1c454b1e45ee7174f1d8e9a5a5f3cfa1bf3e6943e78746dab0de12
MD5 489020ccfb0c20b05576f9599923a929
BLAKE2b-256 d204f4c70974b542d72e9f9bf57020ee01cc42d096deb55f547234a9be607b4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page