Every image. Mach speed. Zero lost.¶
Machyon is a fast async image downloader for Python. Hand it a list of URLs and it tunes its own speed, retries what can recover, keeps only real images, and tells you exactly what it couldn't get.
No Python setup? Open Machyon in Google Colab: paste links or upload a CSV, get a ZIP back.
In the Amazon ML Challenge? Here's the one cell to paste.
Python 3.11 or newer, four dependencies.
Prefer the terminal? machyon urls.csv -o images/ does the same job.
What "zero lost" means¶
Every row in your list ends in exactly one of three states: written as a complete, validated image; skipped
because a complete file is already on disk; or recorded in failed_downloads.jsonl with a reason. Nothing
disappears in between, including when you press Ctrl+C or the disk fills up. Machyon can't download an image the
server no longer has, but it will never leave you guessing which ones those are. Read the full contract, with its
boundaries.
Tunes its own speed¶
Concurrency ramps up while throughput improves and backs off within a second or two when a server pushes back. Adaptive concurrency
Polite to servers¶
Honours Retry-After: after a 429, nothing new goes to that host until the wait is over, and other hosts keep going. Duplicate URLs are fetched once.
Retries and rate limits
Real images only¶
Every body is checked by its magic bytes, so an HTML error page is never saved as photo.jpg.
Image validation
Resume by re-running¶
Finished files are skipped in seconds; large files continue mid-file with HTTP range requests. Resuming
Any list of URLs¶
CSV, TSV, TXT, JSON, JSONL, Parquet, pandas or polars DataFrames, or a plain Python iterable. Input sources
Script, terminal or browser¶
One call from a script or notebook, await inside your async app, the machyon command, or machyon ui in your
browser.
Choosing an interface
How a row travels¶
Measured, not promised¶
On a clean, fast network the network itself is the limit and the tools come closer; at 350 ms latency they tie. All five scenarios, the method, and how to reproduce them.