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.4.tar.gz (5.4 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.4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: secure_config_loader-0.1.4.tar.gz
  • Upload date:
  • Size: 5.4 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.4.tar.gz
Algorithm Hash digest
SHA256 435e0e1b71a7975b713f65210258966699f6361c98c9d8307d91d85133448627
MD5 952039e0242b87c4b39670c247f0b6c2
BLAKE2b-256 9707eedaaa3c8f4efeecf890bda2b25d8e912b8ebc5d059f37bdac6c3817c117

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for secure_config_loader-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f066c913986106e6feb555eba3926bfb776bfffd981c18c876b06759c6ab6ef0
MD5 62472c06b30f02d2c9bb2071defabc33
BLAKE2b-256 2676891b4d3955669825eb44fc1dc7f99cedf0eca03be4b7e737898c6d942c5d

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