{"id":15726733,"url":"https://github.com/perlpunk/pyyaml-core","last_synced_at":"2025-10-05T06:59:43.116Z","repository":{"id":234766721,"uuid":"789369226","full_name":"perlpunk/pyyaml-core","owner":"perlpunk","description":"YAML 1.2 Core Schema Support for PyYAML","archived":false,"fork":false,"pushed_at":"2024-10-11T21:45:05.000Z","size":14,"stargazers_count":14,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-18T21:50:18.890Z","etag":null,"topics":["python","pyyaml","yaml"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/yamlcore/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perlpunk.png","metadata":{"files":{"readme":"Readme.md","changelog":"Changelog.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-20T10:57:33.000Z","updated_at":"2025-05-14T20:11:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a985d82-3937-427a-be2c-fbbdafd3750a","html_url":"https://github.com/perlpunk/pyyaml-core","commit_stats":null,"previous_names":["perlpunk/pyyaml-core"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/perlpunk/pyyaml-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlpunk%2Fpyyaml-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlpunk%2Fpyyaml-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlpunk%2Fpyyaml-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlpunk%2Fpyyaml-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perlpunk","download_url":"https://codeload.github.com/perlpunk/pyyaml-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perlpunk%2Fpyyaml-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278420211,"owners_count":25983813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","pyyaml","yaml"],"created_at":"2024-10-03T22:40:26.561Z","updated_at":"2025-10-05T06:59:43.087Z","avatar_url":"https://github.com/perlpunk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## pyyaml-core - YAML 1.2 Core Schema Support for PyYAML\n\nThis module can be used on top of [PyYAML](https://github.com/yaml/pyyaml) to\nload YAML 1.2 files.\nIt depends on PyYAML and inherits from it, it's not a fork.\n\nCurrently it supports enabling all YAML 1.2 Core Schema tags on top\nof the PyYAML BaseLoader.\nIt does not (yet) support other tags like the `\u003c\u003c` merge key.\nYou can add custom constructors, though.\n\nFor more information see the [comparison of 1.1 and 1.2\nschemas](https://perlpunk.github.io/yaml-test-schema/schemas.html).\n\n## Examples\n\n    import yaml\n    from yamlcore import CoreLoader\n    from yamlcore import CoreDumper\n\n    y = \"\"\"\n    ---\n    1.1: # strings\n    - yes\n    - no # norway problem anymore\n    - 1__0\n    - 10:20\n    - +0b100\n    - 0x4_2\n\n    core:\n    - true\n    - 0o10\n    - 0x42\n    - ~\n    - .inf\n    \"\"\"\n\n    d = yaml.load(y, Loader=CoreLoader)\n    out = yaml.dump(d, Dumper=CoreDumper)\n\nYou can also use `CCoreLoader` and `CCoreDumper` for using the\n[libyaml](https://github.com/yaml/libyaml) based parser and emitter.\n\n## Why?\n\nAt the time of this writing, there is a [pending pull\nrequest](https://github.com/yaml/pyyaml/pull/555) that adds YAML 1.2 Core\nSchema Support for PyYAML.\n\nIt's blocked because there is a plan to redesign the API, and no new things\nshall be added using the old API at this point.\n\nSo as long as PyYAML doesn't merge this, you can use this module as an\nalternative.\n\n## Differences\n\nThere are other differences in behaviour to PyYAML.\n\n### Duplicate keys are not allowed\n\nThe YAML spec forbids duplicate keys. PyYAML allows them, which leads to\naccidentally added duplicate keys in YAML files, eventually.\n\nI can't see a good use case that people would want to allow duplicate\nkeys in a typical YAML loading process.\nFor the use cases I see you would want your own constructor anyway.\n\nIf this is breaking anyone's use case, please let me know.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperlpunk%2Fpyyaml-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperlpunk%2Fpyyaml-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperlpunk%2Fpyyaml-core/lists"}