erse

Docs

Everything the terse command does, and how to read archives from Python.

Quick start

terse login you@example.com                       # once; packing needs an account
terse pack ticks.parquet                          # writes ticks.parquet.terse
terse verify ticks.parquet.terse --source ticks.parquet
terse unpack ticks.parquet.terse ticks_restored.parquet
cmp ticks.parquet ticks_restored.parquet && echo identical

Packing reads the source and never changes it. The archive is written only after every part of it has been decoded again and matched. If anything goes wrong you get a one-line message saying what and how to fix it.

Commands

terse pack SRC [OUT]
Pack a file or a folder. OUT defaults to SRC.terse. Needs an account and a connection (see working offline).
  • --level fast|default|max: max is smallest; fast packs and reads faster and is a little larger on some layouts.
  • --reproducible: leave the time, machine and source path out of the archive header, so the same input gives the same archive file every time.
  • --members LIST: when packing a folder, a file listing the paths to include.
  • --mode csv|jsonl|log|binary: force how a text file is treated, if detection guesses wrong.
  • --tables LIST: SQLite only, a comma list of tables.
terse unpack ARCHIVE OUT
Restore the original. --table NAME writes one table to CSV or Parquet; --filter key=value restores only matching rows, for example symbol=RELIANCE or day=2026-11-06.
terse verify ARCHIVE [--source ORIGINAL]
Decode everything and check every digest. With --source, also compare with the original file. Offline, free.
terse info ARCHIVE [--json]
Format version, level, original and packed sizes, and whether the archive is signed.
terse ls ARCHIVE [--json]
For a folder archive: every file with its size, time and packed size.
terse extract ARCHIVE PATH [OUT]
For a folder archive: restore one file, decoding only what that file needs.
terse mount ARCHIVE FOLDER, terse unmount FOLDER
Show an archive as an ordinary folder. See mounting.
terse login EMAIL, terse logout
Sign in with a six-digit code sent by email; sign this device out.
terse account [--json] [--buy pack_s|pack_m|pack_l|ultra]
What you have left and what you have used; --buy opens a checkout page tied to your account.
terse sign FILE.unsigned
Finish a pack whose licence check could not reach the server.
terse licence install|show|remove FILE
Offline licences for enterprise customers.
terse privacy
Print exactly what Terse sends over the network, and when.
terse --version
Program and archive format versions.

Reading from Python

Read an archive straight into Arrow, pandas, Polars or numpy, with no temporary files and no CSV step. Only the parts you ask for are decoded.

import terse

t  = terse.read_arrow("ticks.parquet.terse")                      # pyarrow.Table, exact values
df = terse.read_pandas("ticks.parquet.terse",
                       columns=["exchange_timestamp", "symbol", "ltp"],
                       where={"symbol": "RELIANCE", "ltp": (2500.0, None)})
pl = terse.read_polars("bars.csv.terse", where={"symbol": ["TCS", "INFY"]})
arr = terse.read_numpy("bars.csv.terse", t0="2026-11-06 09:15", t1="2026-11-06 10:00")

for batch in terse.scan("orderbook.csv.terse", batch_size=1_000_000):   # streamed, low memory
    ...
  • columns=[...] picks columns; where={column: value | [values] | (low, high)} filters rows; day=, t0= and t1= skip whole parts of the archive.
  • scan streams record batches, so a 10 GB archive never has to fit in memory.
  • read_pandas and read_polars need pandas or Polars installed; you get a clear message if they are missing.

Mounting a folder

Mounting shows an archive as a normal folder of the original files, decoded as programs read them. AmiBroker, MetaTrader, Excel, your own scripts and backtests see ordinary CSV or Parquet files and need no changes.

terse mount history.terse ~/market        # files appear under ~/market
python backtest.py ~/market/2026-11/     # reads them like any files
terse unmount ~/market
Mounting by system
SystemStateNeeds
macOSworks on this project's Mac with no driver or admin rights (in testing)nothing extra; no driver, no admin rights
Linuxin testingthe fuse3 package, present on most desktop systems
Windowsnot tested yetan NTFS drive; Explorer shows cloud-style icons on the files

A mounted folder is read-only. Every byte served is checked against the archive's digests, so a damaged archive gives a read error, never wrong data.

Working offline

  • Reading, unpacking, verifying, info, ls, extract and mounting never use the network. They work on a machine that has never been online and on archives from any account.
  • Packing needs a connection at the start (to reserve the bytes) and at the end (to sign the archive). Nothing about your data is sent: see security and privacy.
  • If the connection drops at the end, Terse keeps the finished archive as OUT.unsigned. Run terse sign OUT.unsigned when you are back online. Nothing is charged until it is signed, and an unsigned archive cannot be read yet.
  • Machines that must stay offline can pack with an enterprise offline licence (terse licence install FILE).

Verifying

Three ways to be sure, from quickest to strongest:

terse verify data.csv.terse                           # decode everything, check every digest and the signature
terse verify data.csv.terse --source data.csv         # and compare with the original
terse unpack data.csv.terse back.csv && shasum -a 256 data.csv back.csv

Terse never returns altered data silently. A corrupt, truncated or tampered archive stops with an error. An archive written by a newer Terse than yours says so and asks you to update, rather than guessing.

Account and licence

An account is an email address. terse login sends a six-digit code; after that the program keeps a session token in your settings folder. Up to 5 devices can be signed in at once. terse account shows what is left. Buying: see pricing.