Registry /
serialization / airbyte-protocol-models
Install & Compatibility
Where this runs
tested against v0.18.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.206s · 26.3MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.1s · import 0.182s · 27MB
24MB installed
● package 24MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
AirbyteMessage
✓ from airbyte_protocol.models import AirbyteMessage
✗ from airbyte_protocol import AirbyteMessage
AirbyteMessage is in the models submodule, not top-level.
ConfiguredAirbyteCatalog
✓ from airbyte_protocol.models import ConfiguredAirbyteCatalog
✗ from airbyte_protocol.v0 import ConfiguredAirbyteCatalog
v0 subpackage was deprecated and removed in v0.17.0.
Type
✓ from airbyte_protocol.models import Type
✗ from airbyte_protocol.models.message import Type
Type is re-exported in models.
Create and serialize an Airbyte record message.
from airbyte_protocol.models import AirbyteMessage, Type, AirbyteRecordMessage
# Create a record message
record = AirbyteRecordMessage(
stream="my_stream",
data={"id": 1, "name": "example"},
emitted_at=1610000000000
)
msg = AirbyteMessage(type=Type.RECORD, record=record)
print(msg.json(indent=2))
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'airbyte_protocol'
Package not installed or incorrect environment.
fixRun 'pip install airbyte-protocol-models'.
ImportError: cannot import name 'AirbyteMessage' from 'airbyte_protocol'
Importing directly from top-level package instead of submodule.
fixUse 'from airbyte_protocol.models import AirbyteMessage'.
AttributeError: module 'airbyte_protocol.models' has no attribute 'AirbyteCatalog'
AirbyteCatalog was removed in v0.17.0 models.
fixUse ConfiguredAirbyteCatalog or check the latest model definitions.
Upgrade
Version history
0.18.0latest on PyPI · released Jun 27, 2025
Audit
Dependencies
pydanticrequiredUsed for data validation and serialization
PyYAMLoptionalYAML parsing for spec generation