avro
Avro is a serialization and RPC framework.
What it is and what it does
Apache Avro is a mature, language-agnostic data serialization framework that converts structured data into a compact binary format. It uses schemas to define the shape of data, enabling efficient encoding and decoding across different systems and programming languages. The Python package provides tools to parse schemas, serialize Python objects into Avro binary format, and deserialize binary data back into Python objects.
Avro is commonly used in distributed systems, data pipelines, and RPC frameworks where compact representation and schema evolution matter. It has no external runtime dependencies, making it straightforward to integrate into existing Python projects. The package supports Python 3.9 through 3.13 and is classified as production-stable.
Use it for:
- Serialize and deserialize structured records in data pipelines and message brokers.
- Define and enforce schemas for data interchange between microservices or across language boundaries.
- Compress structured data for efficient storage in databases or data lakes.
- Build RPC frameworks that need language-neutral data encoding and schema versioning.
- Validate incoming data against a predefined schema before processing.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Apache Avro is a data serialization system that encodes structured data into a compact binary format for efficient storage and transmission over networks.
Yes. Avro is a production-stable, zero-dependency serialization library with broad language support and no known vulnerabilities. Install it if you need compact binary encoding, schema-driven serialization, or cross-language data interchange. The aging release cycle is not a blocker for a mature, standardized format, but verify that its feature set matches your use case before committing to it.
Install
avro on PyPI
pip
pip install avrouv
uv add avropoetry
poetry add avroInstalling avro
Before you install
Low install friction with no runtime dependencies. The package is marked as aging (303 days since last release), but it is production-stable and supports current Python versions (3.9–3.13).
License in practice
Licensed under Apache License 2.0 (permissive). You may use, modify, and distribute this package freely in commercial and private projects, provided you include a copy of the license and any NOTICE files.
Quickstart
pip install avro
import avro.schema
import avro.io
schema_str = '{"type": "record", "name": "User", "fields": [{"name": "name", "type": "string"}]}'
schema = avro.schema.parse(schema_str)
record = {"name": "Alice"}
# Use avro.io.DatumWriter and BytesIO to serialize
Verify before relying
- Whether the package's aging status (303 days since release) reflects a stable, mature codebase or signals reduced maintenance velocity.
- Performance characteristics and serialization speed compared to other binary formats in typical workloads.
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 303 days since the last release |
| First released | |
| Downloads | 16,641,331/month — #1,145 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: avro-1.12.1-py2.py3-none-any.whl
Keywords: avro, serialization, rpc
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
avro-python3Serializes and deserializes data in Apache Avro…
permissive · top 5,000 on PyPI
thriftThrift is the Python bindings for Apache…
permissive · top 1,000 on PyPI
fastavrofastavro reads and writes Apache Avro files…
permissive · top 1,000 on PyPI
py-avro-schemaGenerates Apache Avro schemas from Python…
permissive · top 15,000 on PyPI
dataclasses-avroschemaGenerates Avro schemas from Python dataclasses,…
permissive · top 5,000 on PyPI
confluent_avroSerializes and deserializes Avro data according…
permissive · top 15,000 on PyPI
pydantic-avroConverts between pydantic class definitions and…
permissive · top 5,000 on PyPI
pandavroReads and writes Apache Avro files to and from…
permissive · top 15,000 on PyPI
azure-schemaregistry-avroserializerSerializes and deserializes Avro data using…
permissive · top 15,000 on PyPI
cbor2Encodes and decodes CBOR (Concise Binary Object…
permissive · top 1,000 on PyPI