Observed since 21 Oct, 09:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Load environment variables from age-encrypted files
A simple Python package for securely loading environment variables from age encrypted file.
If you only need to decrypt files at runtime:
pip install agenv
If you need to load encrypted environment variables automatically:
pip install agenv[dotenv]
[!NOTE] age must be installed separately, as there is no native Python implementation of age.
from agenv import load_age_env
# Decrypts and loads environment variables from a .env.age file
load_age_env(".env.age")
import yaml
from agenv import decrypt
# Decrypts the .age encrypted file and loads the content as a YAML object
yaml_str = decrypt("database.yml.age")
data = yaml.safe_load(yaml_str)
print(data)
agenv determines the age identity key in the following order:
identity parameter provided to load_age_env()AGE_SECRET_KEY environment variableAGE_SECRET_KEY_FILE environment variable (path to key file)$HOME/.age/age.keyIf no valid identity is found, decryption will fail.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.5.0 | 17 Apr 2025 | 1 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:7a0c3d150e29c76fb49c4044e003e66c826c9fc13edd96c2760fe5d86540ec49