{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/8"}],"enrichment":{"capability":"Parses YAML configuration files and resolves environment variables marked with a custom tag, allowing secrets to be injected at runtime rather than stored in plain text.","skillfed_tags":["configuration-management","secrets-handling","yaml-parsing"],"use_cases":["Load database credentials from environment variables in a YAML config without hardcoding secrets.","Manage different configurations per deployment environment (dev, staging, prod) by varying environment variables.","Provide default fallback values for optional config parameters while requiring critical ones to be set.","Parse YAML files containing serialized Python objects using a custom loader like yaml.UnsafeLoader.","Access nested config values as attributes (e.g., config.database.url) via BaseConfig wrapper."],"what_it_does":"pyaml-env is a thin wrapper around PyYAML that adds environment variable resolution to YAML configuration files. It lets you mark values with a custom tag (default !ENV) and substitute environment variables at parse time, keeping secrets out of version control. The library supports default values using a separator (default :), custom YAML loaders, type coercion via YAML's standard type tags, and attribute-style access through a BaseConfig wrapper.\n\nTypical use: define a YAML config with placeholders like `password: !ENV ${DB_PASS:fallback}`, set environment variables before running your app, then call parse_config() to get a dictionary with all variables resolved. If a variable is unset and has no default, it becomes 'N/A' by default\u2014or you can raise an error instead with raise_if_na=True.","worth_installing":"Yes, if you use YAML for configuration and need to inject secrets via environment variables. The package is lightweight, has no security vulnerabilities, and solves a common deployment pattern. Dormant maintenance is acceptable for a stable, single-purpose tool. Install if your workflow already involves YAML and environment-based secrets; skip if you prefer .env files or other config systems."},"id":"pyaml-env","links":{"html":"https://skillfed.io/packages/pyaml-env","md":"https://skillfed.io/packages/pyaml-env.md","pypi":"https://pypi.org/project/pyaml-env/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2025-01-13","license_spdx":null,"license_treatment":"permissive","name":"pyaml-env","python_support":"supports_current","summary":"Provides yaml file parsing with environment variable resolution"},"popularity":{"monthly_downloads":203671,"position":9627,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.2"}
