Secure multi-format configuration loader with Ansible Vault support
Project description
Secure Config Loader
功能特性
- ✅ 多格式支持:YAML
- ✅ Ansible Vault 自动解密
- 🔒 密码加载优先级策略
- 📦 点分语法访问配置
安装
pip install secure-config-loader
快速开始
from secure_config_loader import SecureConfigLoader
loader = SecureConfigLoader()
config = loader.load("config.yaml")
print(config.database.host)
配置优先级
- 构造函数参数
- 环境变量
ANSIBLE_VAULT_PASSWORD - 密码文件
ANSIBLE_VAULT_PASSWORD_FILE - 默认文件
~/.vault_pass
Project details
Release history Release notifications | RSS feed
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 secure_config_loader-0.1.0.tar.gz.
File metadata
- Download URL: secure_config_loader-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64ad24bb011bdbf370cb715949f1edca011615bbed4870513f5b65bbc56e2d5c
|
|
| MD5 |
0cdca121c70cd8d6444262c1ee2722c0
|
|
| BLAKE2b-256 |
44000bfbaaa155e365e173e0395b102851c46273779f61e3abb6947ade0c135a
|
File details
Details for the file secure_config_loader-0.1.0-py3-none-any.whl.
File metadata
- Download URL: secure_config_loader-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39914c2c703e54734c323738cd04cfad5e1136c4e8efa17fad9728ae6deb5581
|
|
| MD5 |
0ff5ee0d89ee4cbb812f84f6bf358b71
|
|
| BLAKE2b-256 |
ff0043781f57f3597f22d73162dcd2a0ee5741b47b4892290322731852b0ba5d
|