Skip to main content

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, 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.

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

astarconf-0.1.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astarconf-0.1.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file astarconf-0.1.3.tar.gz.

File metadata

  • Download URL: astarconf-0.1.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for astarconf-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f72220726ae6ec37d9e6990d75db6403c51b9fed32d7f36ad10634d08ec43d87
MD5 8ca7b6b5b742e99d1064ab0f4b81d9a3
BLAKE2b-256 f1539843f2a2c61aa6c79207a7440886f76e04fc975c0ce3aa684733135e9156

See more details on using hashes here.

File details

Details for the file astarconf-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: astarconf-0.1.3-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

Hashes for astarconf-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d0405951bab02b793a9a82612b37daef5ed3678a846b983af74998c0e6156676
MD5 6e0ac6c8c8d0be512ecf9022c25681c1
BLAKE2b-256 94009fb4f0c7646b5e7f2a50ed6028e56d1e6ec7fbf6f7e44e5e76b30939233f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page