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:
- The
identityparameter provided toload_age_env() - The
AGE_SECRET_KEYenvironment variable - The
AGE_SECRET_KEY_FILEenvironment variable (path to key file) - The default key file:
~/.age/key
If no valid identity is found, decryption will fail.
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cc6fec835f6d2614efc536368161299862dda4856047081328cb36d1a3a4122
|
|
| MD5 |
8d3d89dee577445150713909dc416416
|
|
| BLAKE2b-256 |
ae478f638c19c166fce8cf92b41174fbace07b84ebc5cbeedaba843327559600
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9171052cac0e6f50f7daae87fe59bb48b2eeee96872ec97972f72bba1ba42a0
|
|
| MD5 |
99e7212e7b04a21aea0e730cf2195570
|
|
| BLAKE2b-256 |
c5cef66b07d42a68f45ddaaa80f30c6043946345b6a6ee02568401adc3c164fe
|