$npx skillfedfor your agent

pyyaml-env-tag

A custom YAML tag for referencing environment variables in YAML files.

With conditionsPyPI Python ModulesReleased May 202517.2M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pyyaml_env_tag-1.1-py3-none-any.whl
v1.1 · released 2025-05-13 · Python >=3.9 · 1 runtime deps: pyyaml

Yes, if you need to inject environment variables into YAML configs at parse time. The package is lightweight, has no security issues, and is stable. The aging maintenance status (458 days since last release) is not a blocker for a small, focused tool, but monitor the repo if you depend on active development. Install if your workflow benefits from env-var-aware YAML loading; skip if you prefer post-processing or template-based substitution.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with a single pure-Python dependency.
  • Maintenance status is aging—last release was 458 days ago—but the repo is active and marked Production/Stable.

License · maintenance · safety

MIT (permissive) — MIT license (permissive) means you can use this freely in commercial and private projects with minimal restrictions.

last release 2025-05-13 (458 days) · last repo commit 2025-05-13 · 13 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 17,155,159 downloads/mo, #1,131 on PyPI

Verify before relying

pip install pyyaml-env-tag

from pyyaml_env_tag import add_env_tag
import pyyaml

myLoader = add_env_tag(pyyaml.Loader)
pyyaml.load('key: !ENV MY_VAR', Loader=myLoader)
  • Whether environment variable parsing handles all YAML scalar types correctly in edge cases
  • Performance characteristics when processing large YAML files with many env tags
Same gist for agents: .md · .json

What it is and what it does

pyyaml_env_tag extends pyyaml with a custom `!ENV` tag that substitutes environment variable values directly into YAML during parsing. Instead of loading static config files, you can reference environment variables by name, and the tag will resolve them to their actual values at parse time. The package automatically coerces values using YAML's implicit type system—so an environment variable set to the string `true` becomes a Python boolean, not a string.

The tag supports fallback chains and defaults: you can specify multiple environment variables to try in order, with a final default value if none are set. This is useful for configuration management where you want environment-specific overrides but sensible defaults when variables aren't defined. The package depends only on pyyaml and integrates by wrapping your chosen loader with the `add_env_tag()` helper.

Use it for

  • Load database credentials from environment variables in a YAML config file without post-processing
  • Provide environment-specific configuration by setting different env vars before parsing
  • Define fallback values for optional settings that may or may not be set in the environment
  • Avoid hardcoding secrets in config files by referencing them as env vars at parse time
  • Coerce environment string values to booleans, integers, or null in YAML without manual conversion

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to inject environment variables into YAML configs at parse time.

The package is lightweight, has no security issues, and is stable. The aging maintenance status (458 days since last release) is not a blocker for a small, focused tool, but monitor the repo if you depend on active development. Install if your workflow benefits from env-var-aware YAML loading; skip if you prefer post-processing or template-based substitution.

Install

pyyaml-env-tag on PyPI

Before you install

Low install friction with a single pure-Python dependency. Maintenance status is aging—last release was 458 days ago—but the repo is active and marked Production/Stable.

License in practice

MIT license (permissive) means you can use this freely in commercial and private projects with minimal restrictions.

Quickstart

pip install pyyaml-env-tag

from pyyaml_env_tag import add_env_tag
import pyyaml

myLoader = add_env_tag(pyyaml.Loader)
pyyaml.load('key: !ENV MY_VAR', Loader=myLoader)

Verify before relying

  • Whether environment variable parsing handles all YAML scalar types correctly in edge cases
  • Performance characteristics when processing large YAML files with many env tags

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
pyyaml
MaintenanceAging 458 days since the last release
Last repo commit
First released
Downloads17,155,159 / month, #1,131 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: Markup

Evidence: pyyaml_env_tag-1.1-py3-none-any.whl

Tags

Capabilities
yaml environment variablesenv tag yamlyaml config from environmentenvironment substitution yamlyaml env variable referenceenvironment variable yaml loaderyaml environment fallback
Topics
yaml-configenvironment-variables

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “yaml environment variables”

  • pyyaml-env-tagAdds a custom YAML tag that lets you reference environment variables…
  • pyaml-envParses YAML configuration files and resolves environment variables…
  • envyamlParses YAML configuration files with environment variable…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also pyaml-env · yaml-config · pyyaml-include · load-dotenv · yamlcore · yamlloader · envsubst · bestconfig · envyaml · aspy.yaml