Observed since 21 Oct, 09:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
agenv
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.
| Package / target | Requirement | Relationship |
|---|---|---|
python-dotenvEnvironment{
"extras": "",
"marker": "extra == \"dotenv\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | python-dotenv; extra == "dotenv" | runtime |
bdist_wheel · 5.06 KB · Python py3
sdist · 4.31 KB · Python source
Observed since 21 Oct, 09:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:eb747ebecc6283f767e70055b5d5a0af392897feae299bd514b71428a37783db