shimeji-dl
An asynchronous downloader that turns remote Shimeji sources into packages ready for Shimeji-ee, VShimeji, and compatible alternatives.
Features
- Pluggable adapters and optional manifests.
- XML and adaptive asset discovery.
- Sprite-atlas, image, and audio handling.
- Native layout and persistent local reuse.
- Concurrent downloads and compact reporting.
Install / run with uv
From a checkout:
uv run shimeji-dl https://shimejis.xyz/directory/undertale-shimeji-pack
Once published as a package:
uvx shimeji-dl https://shimejis.xyz/directory/undertale-shimeji-pack
A character URL or slug is also accepted:
uv run shimeji-dl https://shimejis.xyz/directory/shimeji/undertale-nightmare-sans-by-niuniu-nuko
uv run shimeji-dl undertale-nightmare-sans-by-niuniu-nuko
By default, output is written using the native layout shared by Shimeji-ee, VShimeji, and compatible alternatives:
shimeji-downloads/
└── img/
└── <character>/
├── shime*.png
├── sound/
│ └── ...
├── conf/
│ ├── actions.xml
│ ├── behaviors.xml
│ └── info.xml
└── metadata.json
info.xml and sound/ are created only when those resources are available or referenced.
Point --output at the installation root of Shimeji-ee, VShimeji, or a compatible alternative to install downloaded image sets directly under its img/ directory.
If the supplied output directory is itself named img, it is used directly instead of creating img/img.
Existing downloads
Existing valid configuration files, images, and referenced sounds are reused by default.
Re-running the same command therefore does not download files that are already present and valid.
Use --overwrite to explicitly refresh and replace existing valid files:
uv run shimeji-dl https://shimejis.xyz/directory/undertale-shimeji-pack --overwrite
An internal retry never overwrites successful files from the preceding attempt.
It retries only failed characters and reuses everything that was already downloaded successfully.
Retry and confirmations
When one or more characters fail, an interactive terminal offers to retry only those failed characters once.
Use --retry to perform that retry automatically:
uv run shimeji-dl https://shimejis.xyz/directory/undertale-shimeji-pack --retry
--yes / -y answers yes to all confirmation prompts, including the retry prompt and potentially expensive target validations:
uv run shimeji-dl https://shimejis.xyz --yes
Downloading the entire shimejis.xyz directory requires confirmation unless --yes is supplied.
Architecture
The project deliberately separates reusable mechanics from source-specific behavior:
src/shimeji_dl/
├── core/ # Generic HTTP, models, engine, storage and adaptive probing
├── formats/ # Shimeji configuration formats
│ └── shimeji_xml.py # lxml-backed XML implementation
├── sources/ # Remote source adapters
│ └── shimejis_xyz/ # shimejis.xyz extraction and URL layout
├── ui/ # Presentation implementations
│ └── rich.py # Rich progress/reporting and confirmations
├── cli.py # Typer CLI composition root
└── version.py # Reads installed metadata; pyproject.toml is the SSOT
The generic downloader only talks to protocols (SourceAdapter, optional ManifestSourceAdapter, ConfigFormat, and Reporter).
Adding another site does not require modifying the probing engine or download core. A source can optionally expose an authoritative manifest and sprite atlas without making that capability mandatory for other adapters.
Discovery and fallback strategy
- Use a Source Manifest When Available
Theshimejis.xyzadapter reads/api/shimeji/<slug>/configuration, including the exact XML, sprite map, spritesheet URL, and public metadata. - Materialize the Sprite Atlas
The generic engine safely crops manifest regions into the individual PNG files expected by Shimeji-ee, VShimeji, and compatible alternatives. - Fetch Configuration Fallbacks
Fetchactions.xml,behaviors.xml, and optionalinfo.xmlfrom traditional source URLs when no manifest supplies them. - Parse XML
Parse configuration withlxmland discover referenced images, preview/splash images, and sounds. - Download Remaining References
Download XML-referenced resources not supplied by the atlas, placing sounds under the character'ssound/directory. - Classify Source Omissions
A manifest-backed source distinguishes assets absent from its public package from retryable transfer failures. - Keep Probing Available
The original adaptive numeric strategy remains the generic fallback for sources without an authoritative manifest or whenever manifest retrieval fails.
Explicit--probe deepalso probes beyond an authoritative manifest. - Gallop, Bisect, and Explore Quiescence
The fallback prober expands successful ranges, narrows the frontier, and searches sparse tails without a fixed index ceiling. - Avoid Sound Guessing
Download sounds only when configuration references them; audio filenames are never numerically probed. - Preserve Strict Semantics
Source omissions still make a package incomplete under--strict, but they are not retried indefinitely.
--probe auto is the default.
--probe deep widens sparse-tail exploration.
--probe off disables numeric probing entirely.
Dependencies
Each runtime dependency replaces a concrete piece of infrastructure rather than duplicating it locally:
httpx- Async HTTP transport and connection pooling.tenacity- Retry policy and exponential backoff.lxml- HTML/XML parsing and XPath.Pillow- Safe extraction of individual PNG files from source-provided sprite atlases.rich- Concurrent terminal progress, wrapping output and interactive confirmations.typer- CLI declaration, validation, help and option parsing.
Useful options
| Option | Description |
|---|---|
-o, --output PATH |
Set the Shimeji installation or download root. |
-j, --jobs INTEGER |
Set concurrent character downloads, defaulting to 5. |
--connections INTEGER |
Set concurrent HTTP connections, defaulting to 20. |
--timeout FLOAT |
Set the HTTP timeout in seconds, defaulting to 20. |
--retries INTEGER |
Set HTTP retry attempts, defaulting to 3. |
--probe auto|off|deep |
Select the adaptive asset discovery mode. |
--overwrite |
Replace existing valid files. |
--retry |
Retry failed characters automatically. |
-y, --yes |
Accept confirmation prompts automatically. |
--strict |
Fail when a character or referenced asset is incomplete. |
--metadata / --no-metadata |
Enable or disable metadata.json. |
--archive |
Create a ZIP archive after downloading. |
-v, --verbose |
Show detailed discovery and URL diagnostics. |
-q, --quiet |
Suppress progress output. |
--version |
Print the installed version. |
License
MIT License. See LICENSE.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
LLM Notice
Large language models, including Codex and Claude Code, were used in the development of this project.
Release files for shimeji-dl 0.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 | |
|---|---|---|---|
| shimeji_dl-0.6.0.tar.gz | 31.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shimeji_dl-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 58.8 kB
Release files / shimeji_dl-0.6.0.tar.gz
| Download URL | shimeji_dl-0.6.0.tar.gz |
|---|---|
| Size | 31.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e478e6cd9cd4fc2abea1f8c34d336ee225508c983f1a269d5dcd7d4a80c040d
|
|
BLAKE2b-256 checksum How to use checksums |
a06657c2736aebfa9c14db2ec21e58e48798cc18f815eeb493014b95e8324dba
|
| 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 Sep 19, 2026.
Transparency logRelease files / shimeji_dl-0.6.0-py3-none-any.whl
| Download URL | shimeji_dl-0.6.0-py3-none-any.whl |
|---|---|
| Size | 27.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5b1b1af55e6ae050500638b95c6dcb9dc1bd2d1f9a80fa47e4b052ee6364ced
|
|
BLAKE2b-256 checksum How to use checksums |
9e1bd84ac9cf3011635f17b50e5600f831595468a75261facbdf67fefacc2dd0
|
| 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 Sep 19, 2026.
Transparency log