Fast Avro for Python
1.03 MB
built 2026-11-03 13:34:33 GMT
Description
Because the Apache Python avro package is written in pure Python, it is
relatively slow. In one test case, it takes about 14 seconds to iterate through
a file of 10,000 records. By comparison, the JAVA avro SDK reads the same file
in 1.9 seconds.
The fastavro library was written to offer performance comparable to the Java
library. With regular CPython, fastavro uses C extensions which allow it to
iterate the same 10,000 record file in 1.7 seconds. With PyPy, this drops to
1.5 seconds (to be fair, the JAVA benchmark is doing some extra JSON
encoding/decoding).
Supported Features
• File Writer
• File Reader (iterating via records or blocks)
• Schemaless Writer
• Schemaless Reader
• JSON Writer
• JSON Reader
• Codecs (Snappy, Deflate, Zstandard, Bzip2, LZ4, XZ)
• Schema resolution
• Aliases
• Logical Types
• Parsing schemas into the canonical form
• Schema fingerprinting
Missing Features
• Anything involving Avro’s RPC features
Dependencies
33 totalRequires25
- (python3dist(tomli) if python3-devel < 3.11)
- gcc
- latexmk
- make
- pyproject-rpm-macros
- python3-devel
- python3-devel
- python3-sphinx-latex
- python3dist(cramjam)
- python3dist(cython)
- python3dist(lz4)
- python3dist(numpy)
- python3dist(packaging)
- python3dist(pandas)
- python3dist(pip) >= 19
- python3dist(pytest)
- python3dist(setuptools)
- python3dist(sphinx)
- python3dist(sphinx-rtd-theme)
- python3dist(wheel)
- python3dist(zlib-ng)
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(DynamicBuildRequires) <= 4.15.0-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(RichDependencies) <= 4.12.0-1
Provides8
- python-fastavro-debuginfo = 1.12.2-4.fc45
- python-fastavro-debugsource = 1.12.2-4.fc45
- python-fastavro-doc = 1.12.2-4.fc45
- python3-fastavro = 1.12.2-4.fc45
- python3-fastavro+codecs = 1.12.2-4.fc45
- python3-fastavro+lz4 = 1.12.2-4.fc45
- python3-fastavro+snappy = 1.12.2-4.fc45
- python3-fastavro+zstandard = 1.12.2-4.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
2Name ![]() |
Size |
|---|---|
| fastavro-1.12.2.tar.gz | 1005.98 KB |
| python-fastavro.spec | 17.37 KB |
Files 1–2 of 2
Component of
buildroots that installed this RPMNo Buildroots
