https://github.com/asynq-io/pydantic-asyncapi
Pydantic models for AsyncAPI schema
https://github.com/asynq-io/pydantic-asyncapi
asyncapi pydantic python
Last synced: 9 days ago
JSON representation
Pydantic models for AsyncAPI schema
- Host: GitHub
- URL: https://github.com/asynq-io/pydantic-asyncapi
- Owner: asynq-io
- License: apache-2.0
- Created: 2024-07-15T11:02:35.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-22T18:12:00.000Z (9 days ago)
- Last Synced: 2025-04-22T19:29:00.799Z (9 days ago)
- Topics: asyncapi, pydantic, python
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 4
- Watchers: 0
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README




[](https://github.com/charliermarsh/ruff)
[](https://docs.pydantic.dev/latest/contributing/#badges)
[](https://github.com/PyCQA/bandit)


# Pydantic AsyncAPI
Pydantic models for AsyncAPI
## Installation
```shell
pip install pydantic-asyncapi
```## About
This package provides Pydantic models for [AsyncAPI](https://www.asyncapi.com/).
Currently versions `2.6.0` and `3.0.0` are supported.The package can be used to:
1. Validate AsyncAPI documents
2. Generate AsyncAPI documents from code
3. Create Python frameworks/applications based on AsyncAPI specification## Usage
```python
from pydantic_asyncapi import AsyncAPI# v2 or v3 based on on 'asyncapi' version field
model = AsyncAPI.model_validate(...)```