Machyon in 104 seconds
Machyon downloads 3,000 image links: how it paces itself, respects each server, checks what comes back and accounts for every row.
-
0:00
One link, then thousands
One image link is easy. A list of 3,000 is a question about every one of them.
The zero-lost contract → -
0:11
From a list to image jobs
Machyon reads the list (a text file, CSV, JSON, a DataFrame) and turns every row into a download job.
Input sources → -
0:17
Adaptive concurrency
It adds connections while throughput keeps improving and steps back when it stops paying off.
Adaptive concurrency → -
0:27
Respect each host
An HTTP 429 pauses new requests to the server that sent it, for as long as it asks. Other servers keep going.
Rate limits (HTTP 429) → -
0:35
Verify what came back
A 200 OK that is really a web page is recorded as not_image, not saved as a picture.
Image validation → -
0:41
Write complete files
Bytes go to a temporary file that is renamed into place only when complete, so stopping never leaves half an image.
A file that exists is complete → -
0:51
Stop, resume, account for every row
In machyon ui: stop a run partway and resume it. Only the missing files are fetched, and every failure has a reason.
Resuming → -
1:14
Every one answered
The recap, then Opa arrives and completes the wordmark: Every image. Mach speed. Zero lost.
Meet Opa →
What you're seeing¶
The app is real. The window in the second half is machyon ui 1.2.0, installed from PyPI and recorded during
a real run (run_2026-11-13_224454_f048). Where the recording is sped up, the label under the window says so.
The numbers are that run's. 3,000 rows: 756 downloaded, 2,227 already on disk and skipped on resume, and
17 failed, each with its reason: 10 http_404 and 7 not_image. The 17 failure lights
in the opening field sit on the run's real failed rows.
The source was a local test server, serving licence-clear images, so the run could be repeated and shown.
Real websites give different numbers. The page that came back instead of an image in Verify what came back is
that server's real reply: 200 OK, text/html.
The animated scenes are illustrations. The lanes in Adaptive concurrency show how the limiter adapts; the real limits differ from run to run. What each scene describes is what the code does, and the chapter links go to the details.
Transcript¶
0:00 One link, then thousands. Every image starts as a link. One is easy. Three thousand is a different question.
0:11 From a list to image jobs. You start with a list. Every row becomes a job.
0:17 Adaptive concurrency. How fast? Machyon measures. It adds connections while speed improves, and steps back when it doesn't.
0:27 Respect each host. Sometimes, a server asks you to slow down. The others keep going.
0:35 Verify what came back. The server says everything's fine. Machyon checks anyway.
0:41 Write complete files. A file gets its name only when it's complete. So stopping is safe.
0:51 Stop, resume, account for every row. Start a run. Stop it partway. Resume, and it only fetches what's missing. Every row is accounted for. Even failures come with a reason.
1:14 Every one answered. One link, then three thousand. Every one answered.
1:20 to the end: Opa's arrival, with music and no narration. He flies in and completes the wordmark, and the tagline appears: Every image. Mach speed. Zero lost.
Where to next¶
Try it¶
pip install machyon, then the Quickstart, or machyon ui for the
app in your browser.
See the limiter think¶
The Interactive Lab replays a real run window by window.
Meet Opa¶
The mascot from the film's ending, and the 25-second film about where Opa came from.