Skip to main content

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)

配置优先级

  1. 构造函数参数
  2. 环境变量 ANSIBLE_VAULT_PASSWORD
  3. 密码文件 ANSIBLE_VAULT_PASSWORD_FILE
  4. 默认文件 ~/.vault_pass

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

secure_config_loader-0.1.3.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

secure_config_loader-0.1.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for secure_config_loader-0.1.3.tar.gz
Algorithm Hash digest
SHA256 38205f4e0576ce28f84014ffe13d7b6ea92964af5030901e97189710bf3b7a59
MD5 fc809cd9c24a50283f4eb529a687b3a5
BLAKE2b-256 9398976f2f0d2c8b368f6fa95b4b77fe191db85d23ec6524cee43ab0a2a39d2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for secure_config_loader-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 686b96071886ef358c202fd87549f0692168b9125f3e955e5aba9adfa7370929
MD5 cc50cb43d32c4f0408c7328a2eb3f935
BLAKE2b-256 c9cbd8d82554c4d0db08e8cffb3f2b9cf74960d28f81e273395b3e63c7131e28

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