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.2.0.tar.gz (3.9 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.2.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agenv-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2cc6fec835f6d2614efc536368161299862dda4856047081328cb36d1a3a4122
MD5 8d3d89dee577445150713909dc416416
BLAKE2b-256 ae478f638c19c166fce8cf92b41174fbace07b84ebc5cbeedaba843327559600

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agenv-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9171052cac0e6f50f7daae87fe59bb48b2eeee96872ec97972f72bba1ba42a0
MD5 99e7212e7b04a21aea0e730cf2195570
BLAKE2b-256 c5cef66b07d42a68f45ddaaa80f30c6043946345b6a6ee02568401adc3c164fe

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