pyyaml
Package — ConfigPython 3.6+Beginner
Parse and emit YAML files
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.6+
- Dependencies
- None (C extension with LibYAML; fallback pure Python)
- Install
pip install pyyaml
Learn by Difficulty
Quick Example
python
import pyyaml print(f"pyyaml loaded successfully") print(f"Version: {getattr(pyyaml, '__version__', 'unknown')}")
pyyaml is a third-party package. Parse and emit YAML files. Install with: pip install pyyaml
Try in PlaygroundTags
packageconfigyamlserializationdata-format
Related Items
json
Stdlib — Serialization
Encode and decode JSON data
configparser
Stdlib — Serialization
Read and write INI-style configuration files
ruamel.yaml
Package — Config
YAML 1.2 parser/emitter preserving comments and formatting
OmegaConf
Package — Config
Hierarchical configuration with merge, interpolation, and validation