Reap the rows that matter from files too big to open.
RowReaper compares Excel and CSV files of any size and hands you only the rows you asked for: what is missing, what changed, what matches. It runs on your own computer, and your files never leave it.
Version 1.1.0 · 46 MB · Windows 10 and 11, 64-bit · free and open source
-- Products in the catalog that the supplier's feed does not have
SELECT catalog.ean, catalog.name, catalog.brand
FROM catalog
LEFT JOIN feed ON catalog.ean = feed.barcode
WHERE feed.barcode IS NULL
| ean | name | brand |
|---|---|---|
| 5200000000011 | Brontis Lamp 111 | Brontis |
| 5200000000028 | Elmar Drive 128 | Elmar |
| 5200000000045 | Calyx Hose 145 | Calyx |
You pick this with buttons. The app writes the query.
-- Same product, different price in the two files
SELECT catalog.ean, catalog.name, catalog.price, feed.supplier_price
FROM catalog
JOIN feed ON catalog.ean = feed.barcode
WHERE catalog.price != feed.supplier_price
| ean | name | price | supplier_price |
|---|---|---|---|
| 5200000000038 | Ionis Lamp 138 | 20.98 | 18.96 |
| 5200000000072 | Calyx Stapler 172 | 31.54 | 33.10 |
| 5200000000123 | Dorvik Drive 223 | 50.41 | 47.90 |
Every query can be edited by hand before it runs.
from streaming_sql_engine import Engine
engine = Engine()
engine.register_file("catalog", "catalog.csv")
engine.register_file("feed", "feed.csv")
rows = engine.query("""
SELECT catalog.ean, catalog.name
FROM catalog
LEFT JOIN feed ON catalog.ean = feed.barcode
WHERE feed.barcode IS NULL
""")
for row in rows:
print(row)
The app shows this script for whatever you asked: "Do it in Python".
Three ways to run it
One engine underneath. Take the app if you want buttons, the library if you write Python.
RowReaper for Windows
One installer, 46 MB. It installs for your own Windows account, so it never asks for administrator rights, and it needs neither Python nor Rust.
The installer is not code-signed yet. If Windows shows "Windows protected your PC", choose More info, then Run anyway.
Streaming SQL Engine for Python
The library RowReaper is built on. Python 3.8 or newer, on Windows, macOS and Linux.
pip install streaming-sql-engineThe Rust speed-up for CSV files is built from a checkout: pip install maturin, then cd native && maturin develop --release. Without it the same queries run in Python and return the same rows.
The same three steps in your browser
A local web app that comes with the library. It opens in your browser but runs on your machine; nothing is uploaded.
pip install "streaming-sql-engine[app]"sse-appWhy RowReaper
Excel stops at about a million rows. A database wants you to import first. RowReaper reads the files where they are and keeps only what you asked for.
- Any size
- Files are read as a stream, never loaded whole. Two files of 100 million rows each, 12 GB together, were compared in under 1 GB of memory.
- Private
- Everything runs on your computer. No account, no upload, no server. Your files are only read, never changed.
- No SQL needed
- Choose how the files belong together and which rows you want with buttons. The app writes the query and shows it, so you can edit it if you like.
- More than two files
- Compare a catalog with a supplier feed, a warehouse list and a webshop export in one question.
- Fast, on every core
- The engine is written in Rust. The app proposes how many cores to use and lets you choose, so your computer stays usable while it works.
- Free and open
- MIT license. The app, the engine and this page are in one public repository.
Three steps, start to finish
No project to set up and nothing to import.
Add your files
Excel sheets and CSV files, side by side. RowReaper shows the columns and a few rows of each. No files at hand? It makes sample files of any size, from a thousand rows to a billion.
Say what you want to find
Match the files on a shared column, pick the main file, and choose: rows found in every file, every row with what matches, or rows missing from the others. Add conditions with one click.
Watch the rows arrive
Results show up while the run is still going, with speed and memory measured live. Save everything as a CSV file, or take the same question as a Python script.
Measured, not promised
Timed in the installed app on one 8-core Windows machine. Your numbers will differ with your disk and processor.
| Cores used | Time |
|---|---|
| 8 cores | 40 s |
| 4 cores | 56 s |
| 2 cores | 89 s |
| 1 core | 156 s |
Memory stayed under 1 GB in every run.
| Measure | Result |
|---|---|
| Time, 7 cores | 0.6 s |
| Memory for the run | about 40 MB |
If a file cannot be read by the Rust engine, the app falls back to a built-in one and says which engine ran.
How it is built
One engine, written once in Rust, serves both the Python library and the Windows app.
- The engine is Rust
- Reading the files, filtering and joining happen in Rust, on as many cores as you allow. It lives in the library's
native/folder. - The library is Python
- Streaming SQL Engine parses the SQL, plans the joins and hands file queries to the Rust engine. Anything else Python can iterate over runs on its own streaming operators.
- The app is C#
- RowReaper is a .NET 10 desktop app (WPF), laid out by domain-driven design: the domain model, the use cases, the adapters and the screens are separate projects.
- A C interface joins them
- The Rust engine exposes a plain C interface (
native/src/capi.rs). The app calls it directly, which is why the installed app needs no Python.
Underneath: Streaming SQL Engine
An open-source Python library that joins data from anywhere in one SQL query, row by row, without a server or an import step.
- Any source. PostgreSQL, MySQL, MongoDB, REST APIs, files: anything Python can iterate over becomes a table.
- Streaming. Rows flow through the joins one at a time, so memory stays flat as the data grows.
- Rust where it counts. CSV files are read, filtered and joined in Rust on every core.
from streaming_sql_engine import Engine
engine = Engine()
# Any Python function that yields rows is a table
engine.register("users", postgres_users)
engine.register("orders", mysql_orders)
query = """
SELECT users.name, users.email, orders.total
FROM users
JOIN orders ON users.id = orders.user_id
WHERE orders.total > 100
"""
for row in engine.query(query):
print(row)
Two databases, one query, no import.