skillfed

avro

Avro is a serialization and RPC framework.

avro v1.12.1 16.6M downloads/30d#1,145 on PyPI
Permissive license Apache License 2.0 AGING released

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 avro

uv

uv add avro

poetry

poetry add avro

Installing 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

Development Status :: 5 - Production/StableLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Tags

data serialization formatavro schema serializationbinary data encodingrpc frameworkstructured data compressioncross-language serializationavro python library
serializationschema-drivenrpc

More Database packages