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.0.tar.gz (3.9 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.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for secure_config_loader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 64ad24bb011bdbf370cb715949f1edca011615bbed4870513f5b65bbc56e2d5c
MD5 0cdca121c70cd8d6444262c1ee2722c0
BLAKE2b-256 44000bfbaaa155e365e173e0395b102851c46273779f61e3abb6947ade0c135a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for secure_config_loader-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39914c2c703e54734c323738cd04cfad5e1136c4e8efa17fad9728ae6deb5581
MD5 0ff5ee0d89ee4cbb812f84f6bf358b71
BLAKE2b-256 ff0043781f57f3597f22d73162dcd2a0ee5741b47b4892290322731852b0ba5d

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