Skip to main content

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, or dict
  • ✅ 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.

Metadata

Release files for astarconf 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for astarconf 0.1.4
File Interpreter ABI Platform Actions
astarconf-0.1.4-py3-none-any.whl Python 3 none any Details for astarconf-0.1.4-py3-none-any.whl

Release files / astarconf-0.1.4-py3-none-any.whl

Download URL astarconf-0.1.4-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2afad94f091ba12f58f15e0ed1bd8819099f9839618896b67640a42ddf4d8ae5
BLAKE2b-256 checksum
How to use checksums
d4f4c9462b8fdf87181d58b5664cb6ec5990106d8ee0f88e43284d52a97637e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Security for astarconf 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page