A secure, pluggable config loader with encryption and CLI tools
Project description
astarconf
🛡 A secure, pluggable config loader for YAML, JSON, .env and Python dicts — with field-level encryption, CLI support, and hybrid access.
Features
- 🔐 Encrypt/decrypt fields in YAML
- 🔌 Load from
.yaml,.json,.env, ordict - ✅ Attribute (
config.key) and key (config['key']) access - 🧰 CLI interface for encryption workflows
Installation
pip install astarconf
Usage
from astarconf import Astarconf
conf = Astarconf("config.yaml")
print(conf.database.user)
CLI
astarconf -g ~/.astarconf/secret.key #Generate a new secret key (default: ~/.astartool/secret.key)
astarconf -r ~/.astarconf/secret.key #Delete a secret key at specified path
astarconf -c config.yaml user password #Encrypt YAML file: first argument is path,
others are field names (default: user, password)
astarconf -d config.yaml -o output.yaml #Decrypt all encrypted fields in YAML file
License
MIT
📚 Full Documentation
See DOCUMENTATION.md for detailed API and CLI usage.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 astarconf-0.1.4-py3-none-any.whl.
File metadata
- Download URL: astarconf-0.1.4-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2afad94f091ba12f58f15e0ed1bd8819099f9839618896b67640a42ddf4d8ae5
|
|
| MD5 |
833bd509b2c305873e1477e587933f86
|
|
| BLAKE2b-256 |
d4f4c9462b8fdf87181d58b5664cb6ec5990106d8ee0f88e43284d52a97637e7
|