{"id":32861282,"url":"https://github.com/emaddeve20/yaml-syntax","last_synced_at":"2026-05-13T21:36:15.558Z","repository":{"id":321627866,"uuid":"1086580946","full_name":"EmadDeve20/yaml-syntax","owner":"EmadDeve20","description":"Make your own syntax or format to write a Yaml","archived":false,"fork":false,"pushed_at":"2025-11-07T15:41:22.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-07T17:27:48.613Z","etag":null,"topics":["pydantic","python","python3","pyyaml","yaml","yaml-parser","yaml-validator","yaml2json"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EmadDeve20.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-30T16:01:00.000Z","updated_at":"2025-11-07T15:35:08.000Z","dependencies_parsed_at":"2025-10-30T18:09:13.572Z","dependency_job_id":"de5ed270-a3f9-4850-9a68-d8ff78da0816","html_url":"https://github.com/EmadDeve20/yaml-syntax","commit_stats":null,"previous_names":["emaddeve20/yaml-syntax"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EmadDeve20/yaml-syntax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmadDeve20%2Fyaml-syntax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmadDeve20%2Fyaml-syntax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmadDeve20%2Fyaml-syntax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmadDeve20%2Fyaml-syntax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmadDeve20","download_url":"https://codeload.github.com/EmadDeve20/yaml-syntax/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmadDeve20%2Fyaml-syntax/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283418034,"owners_count":26832617,"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-11-08T02:00:06.281Z","response_time":57,"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":["pydantic","python","python3","pyyaml","yaml","yaml-parser","yaml-validator","yaml2json"],"created_at":"2025-11-08T21:01:03.938Z","updated_at":"2025-11-08T21:02:11.562Z","avatar_url":"https://github.com/EmadDeve20.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yaml Syntax\n\nyaml-syntax to check a YAML file with your own standard for keys or fields.\n\nlike you want a YAML file with these keys:\n\n```version, service, name```\n\nfor this you can make a serializer with pydantic to check it:\n\n```python\n\nfrom pydantic import BaseModel\n\nclass MySyntax(BaseModel):\n    version:str\n    service:str\n    name:str\n```\n\n*Note*: You can use any option of BaseModel to build your own serializer. For example, use `Field` to create default values ​​for your fields, or use `typing` to handle required fields, or anything else to make it more advanced.\n\n\nand for example this is your yaml file:\n\n```yaml\nversion: 'v1.0.0'\nservice: 'aws'\nname: 'test'\n```\n\nthen you can check this file is correct or not:\n\n```python\nfrom yaml_syntax.syntax import YamlSyntax\n\nyaml = YamlSyntax.from_file(syntax_schema=MySyntax, yaml_file=\"test.yaml\")\n```\n\nnow you can use your serialized data:\n\n```python\nserialized_data = yaml.serialized_data\nprint(serialized_data.version)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femaddeve20%2Fyaml-syntax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femaddeve20%2Fyaml-syntax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femaddeve20%2Fyaml-syntax/lists"}