{"id":30555475,"url":"https://github.com/the-codegen-project/asyncapi-python-parser","last_synced_at":"2026-02-11T23:04:09.837Z","repository":{"id":253332087,"uuid":"757464707","full_name":"the-codegen-project/asyncapi-python-parser","owner":"the-codegen-project","description":"An AsyncAPI Python parser that is always up to date with the specification!","archived":false,"fork":false,"pushed_at":"2024-08-13T18:04:02.000Z","size":507,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-26T21:25:24.148Z","etag":null,"topics":["asyncapi","asyncapi-python","parser","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/the-codegen-project.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-02-14T14:51:52.000Z","updated_at":"2025-08-17T17:22:03.000Z","dependencies_parsed_at":"2024-08-16T02:21:43.523Z","dependency_job_id":"d80a0578-7360-46ca-b985-09b76bc2a0f1","html_url":"https://github.com/the-codegen-project/asyncapi-python-parser","commit_stats":null,"previous_names":["jonaslagoni/asyncapi-python-parser","the-codegen-project/asyncapi-python-parser"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/the-codegen-project/asyncapi-python-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-codegen-project%2Fasyncapi-python-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-codegen-project%2Fasyncapi-python-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-codegen-project%2Fasyncapi-python-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-codegen-project%2Fasyncapi-python-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/the-codegen-project","download_url":"https://codeload.github.com/the-codegen-project/asyncapi-python-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-codegen-project%2Fasyncapi-python-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29349259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T20:11:40.865Z","status":"ssl_error","status_checked_at":"2026-02-11T20:10:41.637Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["asyncapi","asyncapi-python","parser","python","python3"],"created_at":"2025-08-28T05:32:26.770Z","updated_at":"2026-02-11T23:04:09.378Z","avatar_url":"https://github.com/the-codegen-project.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python AsyncAPI Parser\n\n## Parsing options\nThese are the options that can be provided when parsing AsyncAPI documents;\n\n### Reference resolvement\nBy default, all references are resolved when the document is parsed, however, if wanted you can turn this off by providing the option `resolve_references` when parsing a document.\n\n```py\nparse(data, ParserOptions({'resolve_references': True}))\n```\n\n### Validating input\n\nBy default, the input is validated against the [official AsyncAPI JSON Schema documents](https://github.com/asyncapi/spec-json-schemas/), however, if wanted you can turn this off by providing the option `validate_input` when parsing a document.\n\n```py\nparse(data, ParserOptions({'validate_input': True}))\n```\n\n### Applying traits\n\nBy default, traits are applied when parsed, however, if wanted you can turn this off by providing the option `apply_traits`. \n\n```py\nparse(data, ParserOptions({'apply_traits': True}))\n```\n\n## Serializing parsed documents\n\nAll parts of the parsed AsyncAPI document can be serialized back into JSON.\n\n```py\ndocument = {}\nparsedDocument = parse(data)\nserializedDocument = parsedDocument.json()\n```\n\n\u003e NOTICE: If `traits` or `references` have been applied, `document` and `serializedDocument` will never be the same.\n\n## Creating new AsyncAPI documents\n\nThrough the AsyncAPI Python models, you can create AsyncAPI documents directly in your code instead of parsing existing documents.\n\n```py\ndocument = AsyncApi2Dot0Dot0SchemaDot({'asyncapi': '3.0.0', 'info': {'title': 'smartylighting', 'version': '1.0.0'}})\n```\n\n## Reading and Overwriting values\nYou can also overwrite existing functions \n```py\ndocument = AsyncApi2Dot0Dot0SchemaDot({'asyncapi': '3.0.0', 'info': {'title': 'smartylighting', 'version': '1.0.0'}})\ndocument.id('urn:example:com:smartylighting:streetlights:server')\n```\n\n# Restrictions\n\nThese are the current known restrictions;\n- Private reference","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-codegen-project%2Fasyncapi-python-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthe-codegen-project%2Fasyncapi-python-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-codegen-project%2Fasyncapi-python-parser/lists"}