Registry / serialization / dumbyaml

dumbyaml

JSON →
library0.9.3pypypi✓ verified 85d ago

A restricted YAML parser that reads only a safe subset of YAML, designed for use with config files where you want to avoid arbitrary YAML features. Version 0.9.3 is current. Release cadence is low, with occasional updates.

pip install dumbyaml
INSTALL
IMPORT
SIG · DUMBYAML
D
dumbyaml
serializationpythonv0.9.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

load
from dumbyaml import load
import yaml
dumbyaml replaces PyYAML's load for safe parsing

Load a simple YAML string.

from dumbyaml import load yaml_str = """ name: test version: 1 """ data = load(yaml_str) print(data['name']) # test
Debug
Known issues
gotchadumbyaml does NOT support full YAML 1.1; it only accepts a restricted subset (scalars, mappings, sequences, basic tags). Do not expect anchors, aliases, or complex types to work.
fix
Use only simple YAML constructs: strings, numbers, lists, dicts.
affects: all
breakingdumbyaml's load returns only primitive Python types (str, int, float, bool, None, list, dict). It will never return arbitrary Python objects, unlike PyYAML's FullLoader
fix
If you need custom objects, serialize them manually.
affects: all
Errors
Common errors & fixes
dumbyaml.exceptions.DumpyError: Unexpected end of stream
Malformed YAML (e.g., missing closing quote or colon)
fix
Check your YAML syntax. dumbyaml is strict; trailing spaces or indentation errors also cause this.
dumbyaml.exceptions.DumpyError: Unsupported YAML construct
Using a YAML feature not in the restricted subset (e.g., anchors, tags like !!python/object)
fix
Remove unsupported constructs. Stick to basic mappings, sequences, and scalars.
Upgrade
Version history
0.9.3latest on PyPI · released Nov 20, 2015
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
OpenAI (training)
1
Resources
dumbyaml — pip install dumbyaml · libregistry