Modrinth Downloader
Modrinth Downloader is a Python lib for downloading Minecraft add-ons, such as mods and datapacks, from Modrinth.
For each Modrinth project, it downloads the newest version that supports the given Minecraft version (and mod loader, for mods). Files that already exist with a matching checksum are skipped, and every download is verified against the checksum published by Modrinth.
Installation
pip3 install modrinth-dl
Usage
Download mods for a Fabric server:
from modrinth_dl import Downloader
downloader = Downloader(delay_in_seconds=2)
changed = downloader.download_mods(
["lithium", "ferrite-core"], "fabric", "1.21.4", "/opt/fabricmc/mods"
)
Download datapacks into a world:
changed = downloader.download_datapacks(
["terralith"], "1.21.4", "/opt/fabricmc/world/datapacks"
)
Both return True when at least one file was downloaded, and False when every file was already present. A single project can also be downloaded with download_mod and download_datapack.
When a project has no version compatible with the given Minecraft version (or loader), or no suitable file, or a download fails its checksum check, a modrinth_dl.ModrinthDlError is raised.
Configuration
These are the Downloader constructor arguments:
| Argument | Type | Description | Default |
|---|---|---|---|
client |
modrinth_api_wrapper.Client |
Modrinth API client | A new Client() |
delay_in_seconds |
int | Seconds to wait after each project when downloading a list of projects, to go easy on Modrinth's API | 0 |
Colophon
Build reports:
Metadata
Release files for modrinth-dl 1.0.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 | Provenance | Actions |
|---|---|---|---|---|
| modrinth_dl-1.0.0.tar.gz | 7.1 kB | Without provenance | Details for modrinth_dl-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| modrinth_dl-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for modrinth_dl-1.0.0-py3-none-any.whl |
Total release size: 15.9 kB
Release files / modrinth_dl-1.0.0.tar.gz
| Download URL | modrinth_dl-1.0.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f964b13d6c00a25930388a51b42f13378321cd5fbd570f7bc24820c058294ce
|
|
BLAKE2b-256 checksum How to use checksums |
c65a4d7439d6665bcf8640a6754179d9d3ea2c2ae896e61ef7c5644bd1414274
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.14.10
|
Release files / modrinth_dl-1.0.0-py3-none-any.whl
| Download URL | modrinth_dl-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c119b60db066fd507ed1b75df38cbfc91557701f7c04e04b200f5fb94b665b6e
|
|
BLAKE2b-256 checksum How to use checksums |
acdda93a6bb68b895c4c0e69473d6191dbe707fc4b3651490d898ab869b006f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.14.10
|
Security for modrinth-dl 1.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.