Blog

Working notes on reading data files in Python without PyArrow, pandas or NumPy. Measurements, not estimates.

Catch schema drift with rugo diff

A renamed column, an ID that turned into text, a new field: every one still produces a valid file. rugo diff compares two schemas in one command, exits 1 on any change, and a 15-line gate turns it into a breaking-change check for pull requests.

Bye-bye vendor lock-in: a data stack made of open files and 13.5 MB of open-source Python

Lock-in lives in your file format and your engine, not the logo on the invoice. Keep data in Parquet, Avro and JSON Lines, read it with an open-source library that takes 5.4% of a Lambda package, and every vendor becomes optional.

Understanding Avro: the file format built for moving data

One launch record takes 234 bytes as JSON and 96 as Avro, with no field names in sight. What's inside an Avro file: the schema, the byte encoding, blocks and sync markers, codecs, and how a schema can change without breaking old data.

Avro vs Parquet vs JSON Lines: one dataset, three very different files

The same 4,630 rows take 1.09 MB as JSON Lines, 113 KB as Avro and 93 KB as Parquet. Size is the least interesting difference: what matters is how much of each file a reader can skip.

Performant Python pipelines without the Rust

Before you scope that Rust rewrite: we raced Python against Apache Arrow's Rust Avro reader, and Python won three of four on one thread. On its defaults rugo was 2.3–4.5× faster than anything Rust managed.

When rugo makes your Lambda cheaper, and when it doesn't

What rugo, PyArrow, DuckDB and Polars cost per million Lambda calls. rugo costs 15–35% less than PyArrow at every cold-start rate and, at 1024 MB, beats DuckDB and Polars once about one call in ten is cold.

Reading Parquet in AWS Lambda without PyArrow

PyArrow takes 69% of Lambda's 250 MB package limit and no longer fits a direct upload. rugo takes 5.4%, and starts 1.5–2.2× faster than PyArrow, DuckDB or Polars.

Analysing 1 GB of JSONL logs in Python: grep vs pandas vs rugo

Rolling response-time stats over a gigabyte of traffic logs, three ways. pandas needed 2,500 MB of RAM; rugo added about 5 MB of native overhead. All three returned the same 899,041 rows.