ISOx
A command-line tool that downloads Linux distribution ISOs, races mirrors to find the fastest source, and verifies the ISO against a checksum published by the distro's own host, never the mirror that served it (what that does and doesn't cover). No more hunting down hashes or skipping verification.
Select distro -> Compare mirror speeds -> Download .iso -> Verify checksum
(fastest mirror) (distro's own host)
Why
I distro-hop a lot across laptops, tablets, Pis, and spare hardware. Manually visiting each project's download page, picking a mirror, and copy-pasting checksums to verify against every time got tedious enough that I started skipping the verification step entirely. This poses an integrity risk (modified ISOs, corruption, etc.), so I built a tool that automates the whole pipeline and makes verification simple.
Furthermore, I simply love Linux. It's been my daily driver for a while now, and I want to see it continue to grow. I hope this tool makes getting started with Linux a little faster, easier, and safer for anyone who wants to use it.
Install
From PyPI:
pip install isox
isox arch
Or straight from a clone:
pip install .
isox arch
Usage
Once installed from PyPI, isox works as a bare command. From a clone, use python isox.py. The two are interchangeable; examples below use the clone form.
List every supported distro:
python isox.py --list
Save somewhere other than ./ISOx_Downloads:
python isox.py arch --output-dir /example/directory
Pick an older release instead of the newest:
python isox.py ubuntu-server --release 24.04
python isox.py proxmox --release 8
python isox.py mint --release 22 # newest 22.x
Verify an ISO you already have (from a browser, a torrent, a USB stick):
python isox.py fedora --release 44 --verify ~/Downloads/Fedora-Workstation-Live-44-1.7.x86_64.iso
python isox.py ubuntu --release 24.04 --verify ubuntu-24.04.5.1-desktop-amd64.iso
Download and verify a distro:
python isox.py arch
python isox.py debian
python isox.py kali
python isox.py alpine
python isox.py mint
python isox.py fedora
python isox.py fedora-server
python isox.py opensuse
python isox.py gentoo
python isox.py void
python isox.py garuda
python isox.py ubuntu
python isox.py ubuntu-server
python isox.py rocky
python isox.py alma
python isox.py cachyos
python isox.py mageia
python isox.py openmandriva
python isox.py proxmox
python isox.py zorin
python isox.py centos-stream
Downloaded ISOs are saved to the created folder ISOx_Downloads/. Output looks like:
https://fastly.mirror.pkgbuild.com/iso/latest/archlinux-x86_64.iso sampled at 3.33 MB/s
https://geo.mirror.pkgbuild.com/iso/latest/archlinux-x86_64.iso sampled at 1.98 MB/s
https://mirror.rackspace.com/archlinux/iso/latest/archlinux-x86_64.iso sampled at 0.08 MB/s
Downloading archlinux-x86_64.iso from https://fastly.mirror.pkgbuild.com/iso/latest ...
[##############################] 100.0% 3.41 MB/s
Checksum matches, file is good.
Features
- Config-driven distro support - supported distros are defined in
distros.json, meaning adding a new distro is a JSON entry, not a code change. - Three ISO-discovery strategies - covers distros that publish their ISOs in very different ways.
- Version-folder auto-discovery - for distros with no stable "latest" alias, the current version-numbered directory is discovered by scanning a parent directory and sorting versions (folder names).
- Release selection -
--releasepicks an older release, such as Ubuntu 24.04 or Proxmox 8. A partial version like22gets the newest release in that series. - Mirror speed checks - samples ~2MB from each candidate mirror via a ranged request to measure real throughput, then downloads from the fastest.
- Resumable downloads - interrupted transfers are written to a
.partfile and continued via an HTTPRangerequest on the next run. (.part files that are stale are also checked before resuming, and are scrapped if they're out of date) - Live progress bar - shows percentage and real-time throughput, and degrades to a plain byte counter if the server won't report a total size.
- Streamed downloads - files are downloaded in large chunks (
requestswithstream=True), so multi-GB ISOs don't hog RAM. - Failure quarantine - an ISO that fails verification is renamed, so it can't be mistaken for a verified file.
- Verify existing ISOs -
--verifychecks a file you already have against the distro's checksum, without downloading or renaming anything. - Path-traversal protection - filenames discovered from remote HTML listings are validated before ever being used in a URL or local file path.
How it works
This section covers what you need to configure and run ISOx.
Config format (distros.json)
Every distro entry needs mirrors, checksum_filename, and hash_algo at minimum. Everything else is optional and only needed if that distro deviates from the simplest cases.
If the included mirrors are not ideal for your location, you can easily update them. Just find a suitable mirror from the distro's official mirror list and replace the URL in distros.json. The tool will then handle the rest. Mirror, checksum and version-discovery URLs must be HTTPS.
{
"arch": {
"mirrors": ["https://fastly.mirror.pkgbuild.com/iso/latest/"],
"checksum_base": "https://geo.mirror.pkgbuild.com/iso/latest/",
"checksum_filename": "sha256sums.txt",
"hash_algo": "sha256",
"iso_filename": "archlinux-x86_64.iso"
},
"fedora": {
"mirrors": [
"https://dl.fedoraproject.org/pub/fedora/linux/releases/{version}/Workstation/x86_64/iso/",
"https://mirror.cs.princeton.edu/pub/mirrors/fedora/linux/releases/{version}/Workstation/x86_64/iso/",
"https://mirror.arizona.edu/fedora/linux/releases/{version}/Workstation/x86_64/iso/"
],
"version_directory" : true,
"version_discovery_url" : [
"https://dl.fedoraproject.org/pub/fedora/linux/releases/",
"https://mirror.arizona.edu/fedora/linux/releases/"
],
"checksum_base": "https://dl.fedoraproject.org/pub/fedora/linux/releases/{version}/Workstation/x86_64/iso/",
"checksum_filename" : "CHECKSUM",
"checksum_discovery_method" : "html_scan",
"checksum_format" : "bsd",
"discovery_method": "html_scan",
"hash_algo": "sha256",
"iso_filename_contains": ["Workstation", "x86_64"]
}
}
| Key | Purpose |
|---|---|
mirrors |
Required. Where the ISO may be downloaded from. Raced on every run. |
checksum_filename |
Required. Literal name, or a {iso_filename}.sha256 template. |
hash_algo |
Required. Anything hashlib supports. Validated before any download starts. |
checksum_base |
Host to fetch the checksum from, ideally the distro's own server. Also decides the ISO filename, so name and hash always agree. |
iso_filename |
For distros whose filename never changes. |
iso_filename_contains |
Substrings every candidate filename must contain. |
iso_filename_excludes |
Substrings that disqualify a filename. Use this when a distro publishes images your substrings can't tell apart, like Debian's -edu- and -mac- images. |
discovery_method |
checksum_scan (default) or html_scan. |
checksum_discovery_method |
html_scan when the checksum filename itself has to be scraped. |
checksum_format |
multi (default), bsd, or single. |
version_directory |
true when the current version has to be discovered first. |
version_discovery_url |
One URL or a list of them, tried in order. |
version_scheme |
ubuntu_lts to select only LTS releases. |
version_suffix |
Suffix to strip from version folder names before sorting, such as -stream for CentOS's 10-stream. |
rolling |
true for rolling-release distros. --release is refused with a clear message. |
release_filename_prefix |
For flat directories that keep every release side by side, such as proxmox-ve_. --release filters on the version after this prefix. Requires html_scan. |
Where distros.json is loaded from
Searched in this order, first hit wins:
$ISOX_DISTROS~/.config/isox/distros.json(%APPDATA%\isox\distros.jsonon Windows)- Beside
isox.py(usually when it's git cloned) share/isox/distros.jsonunder the install scheme's data directory, the user base, orsys.prefix
If you customize mirrors on a pip install, put your copy at (2), so it survives updates.
mkdir -p ~/.config/isox
isox --list # prints the config path currently in use
cp "$(isox --list | sed -n 's/^config: //p')" ~/.config/isox/distros.json
ISO filename discovery
"iso_filename"- for distros with one fixed, unchanging filename."iso_filename_contains"+ default discovery - scans a shared checksum file for a filename matching all the given substrings."iso_filename_contains"+"discovery_method": "html_scan"- scrapes the directory listing HTML for distros with no single shared checksum file.
Version-folder discovery
For distros with no stable "latest" URL alias, "version_directory": true scrapes the
parent directory first, sorts version folder names numerically, and splices the newest
into every {version} placeholder.
version_discovery_url takes a list as well as a single URL, tried in order.
version_scheme: "ubuntu_lts" narrows this to even-year .04 folders, so
python isox.py ubuntu resolves to the latest LTS rather than the latest interim.
Selecting a release
--release narrows discovery to a specified version. The listing is still scraped, and
only entries whose version starts with the requested numbers are kept. 22 matches
22.1 and 22.3 but not 220. The newest of those wins.
- Version folders (Ubuntu, Ubuntu Server, Fedora, Fedora Server, Rocky, Alma, Mint, Mageia, Zorin,
CentOS Stream) filter the folder names.
ubuntustill only accepts LTS releases. - Flat directories (Proxmox) filter filenames using
release_filename_prefix. - Rolling distros and distros whose mirrors only serve the current release refuse the flag before any network request.
A release must still be on the configured mirrors. Distros that move old releases to an
archive (Rocky & Fedora for example) can't serve them through --release.
Verifying an existing ISO
--verify FILE skips the download. It fetches the checksum file from
checksum_base and looks up the file by its own name, so a browser download named after its release works
the same as one ISOx saved.
- Version discovery still runs, so an ISO from an older release needs
--releaseas well. - A renamed file can't be looked up, it has to match the original downloaded name.
- The file is never renamed or moved, even if there's a mismatch.
- Distros without a
checksum_baserefuse the flag, since a mirror's own checksum can't vouch for a file.- The distro has to still publish a checksum for that exact file. Superseded point releases (an Ubuntu 24.04.3 ISO once 24.04.5 is out) may drop out of the checksum file and can no longer be verified.
Checksum parsing
Three published formats are normalized into the same {filename: hash} lookup:
multi(default) -<hash> <filename>, one per linebsd-SHA256 (filename) = <hash>single- the file contains only the hash
Mirror selection
Each mirror is sampled with a ranged GET pulling the first ~2MB of the actual ISO, and real throughput is measured over that sample. Fastest wins. Mirrors that time out or error are skipped.
Resumable downloads
Downloads are written to <filename>.part and only renamed to the final name once the
transfer completes, so a partial can't be mistaken for a finished file. On the next run
the .part size becomes the offset in a Range: bytes=N- request.
The tool will also handle size mismatches and stale part files.
Checksum verification
The checksum file is fetched new on every run, from checksum_base and compared with hmac.compare_digest. A hash mismatch
renames the ISO to <filename>.FAILED; a missing entry renames it to <filename>.UNVERIFIED.
--verify reports the same result but leaves the file as is.
What verification does and doesn't cover
Covered. Corruption in transit, truncated transfers, a bad disk, a botched resume, and a mirror serving a modified ISO. Modified ISOs are handled by grabbing the checksum from the main distro host.
Not covered. If the distro's own server is compromised, both the ISO and its checksum can be replaced together. Only signature verification (GPG) catches that.
GPG is not included as it would require maintaining trusted public keys (or fingerprints) for every supported distribution, along with key management and signature validation logic. That complexity conflicts with ISOx's goal of being a lightweight, easy to use, and config-driven Linux tool.
Requirements
- Python 3.10+
requestsbeautifulsoup4- used for HTML directory-listing discovery
Everything else (hashlib, hmac, json, argparse, os, sys, time, re, site, sysconfig) is part of the Python standard library.
Development
pip install -e '.[dev]'
pytest
black --check .
ruff check .
bandit isox.py
The suite is simulated (no network), except tests/test_live_mirrors.py, as it resolves
every distro in distros.json against real mirrors
and checks if the filename it lands on has a checksum, without downloading
any ISO. It's deselected by default and takes about a minute:
pytest -m live # all distros
pytest -m live -s # printing each resolved filename and hash
pytest -m live -k rocky
Contributing
Distro requests and additions are welcome. Most new distros are a
distros.json entry with no Python at all. See
CONTRIBUTING.md.
License
MIT License: see LICENSE for details. Feel free to use, modify, or build on this.
Metadata
Release files for isox 3.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| isox-3.6.0.tar.gz | 38.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| isox-3.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 57.7 kB
Release files / isox-3.6.0.tar.gz
| Download URL | isox-3.6.0.tar.gz |
|---|---|
| Size | 38.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
feccb4fbfc2a5757a522877e21a8751655853f2a7eb8180c4a04754c5055a769
|
|
BLAKE2b-256 checksum How to use checksums |
356552f5ed2e8ff92e9df870e4cb2d30feb9ff8777c118a711609026052be6e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logRelease files / isox-3.6.0-py3-none-any.whl
| Download URL | isox-3.6.0-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95eaab02802221d29b2d74376e3e67e54c20028480bbe5eb515685444e991a91
|
|
BLAKE2b-256 checksum How to use checksums |
6c15faeea499cc6698bc5e5142b74caf047d24188568765c11b92fce3ef0858d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency log