{"id":26917,"library":"dumbyaml","title":"dumbyaml","description":"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.","status":"active","version":"0.9.3","language":"python","source_language":"en","source_url":"https://github.com/crdoconnor/dumbyaml","tags":["yaml","parser","safe","restricted","config"],"install":[{"cmd":"pip install dumbyaml","lang":"bash","label":"pip install"}],"dependencies":[],"imports":[{"note":"dumbyaml replaces PyYAML's load for safe parsing","wrong":"import yaml","symbol":"load","correct":"from dumbyaml import load"}],"quickstart":{"code":"from dumbyaml import load\n\nyaml_str = \"\"\"\nname: test\nversion: 1\n\"\"\"\ndata = load(yaml_str)\nprint(data['name'])  # test\n","lang":"python","description":"Load a simple YAML string."},"warnings":[{"fix":"Use only simple YAML constructs: strings, numbers, lists, dicts.","message":"dumbyaml 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.","severity":"gotcha","affected_versions":"all"},{"fix":"If you need custom objects, serialize them manually.","message":"dumbyaml'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","severity":"breaking","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Check your YAML syntax. dumbyaml is strict; trailing spaces or indentation errors also cause this.","cause":"Malformed YAML (e.g., missing closing quote or colon)","error":"dumbyaml.exceptions.DumpyError: Unexpected end of stream"},{"fix":"Remove unsupported constructs. Stick to basic mappings, sequences, and scalars.","cause":"Using a YAML feature not in the restricted subset (e.g., anchors, tags like !!python/object)","error":"dumbyaml.exceptions.DumpyError: Unsupported YAML construct"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}