{"categories":[{"label":"Markup","url":"https://skillfed.io/packages/category/text-processing-markup"}],"enrichment":{"capability":"Adds YAML 1.2 Core Schema support to PyYAML, enabling strict parsing of YAML 1.2 files with correct type interpretation and duplicate-key rejection.","skillfed_tags":["yaml-parsing","schema-compliance"],"use_cases":["Loading YAML 1.2 configuration files where strict type interpretation matters (e.g., distinguishing 'yes' as a string, not a boolean).","Catching duplicate keys in YAML documents during parsing to prevent silent data loss.","Migrating from YAML 1.1 to YAML 1.2 while keeping the rest of your PyYAML workflow intact.","Parsing hexadecimal and octal literals correctly as per YAML 1.2 spec (0x42, 0o10).","Dumping YAML with Core Schema compliance using CoreDumper."],"what_it_does":"yamlcore extends PyYAML to parse YAML 1.2 files using the Core Schema specification, which differs from PyYAML's default YAML 1.1 behavior in how it interprets types and handles edge cases. For example, strings like 'yes' and 'no' remain strings in YAML 1.2 (not booleans), and numeric literals like '0x42' and '0o10' are correctly parsed as hex and octal. The package enforces the YAML spec's requirement that duplicate keys are forbidden, catching accidental key collisions that PyYAML would silently allow.\n\nIt inherits from PyYAML rather than forking it, providing CoreLoader and CoreDumper classes that work alongside the standard PyYAML module. The package also offers C-accelerated variants (CCoreLoader, CCoreDumper) for users with libyaml installed. It is designed as a stopgap until PyYAML itself adds YAML 1.2 support, which has been pending in a pull request.","worth_installing":"Yes, if you need YAML 1.2 Core Schema compliance and PyYAML hasn't yet merged native support. The package is low-friction to install, carries no security issues, and solves a real spec-compliance gap. However, check whether the pending PyYAML PR has been merged in your target PyYAML version first\u2014if it has, use PyYAML's native support instead. The dormant maintenance status is acceptable for a thin compatibility layer, but monitor for PyYAML API changes."},"id":"yamlcore","links":{"html":"https://skillfed.io/packages/yamlcore","md":"https://skillfed.io/packages/yamlcore.md","pypi":"https://pypi.org/project/yamlcore/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-10-09","license_spdx":null,"license_treatment":"permissive","name":"yamlcore","python_support":"supports_current","summary":"YAML 1.2 Support for PyYAML"},"popularity":{"monthly_downloads":258593,"position":8428,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.0.4"}
