Generate the files list as html of layers for one docker or ollama image
Project description
doget
Browse and download Ollama model layers from the command line.
doget fetches a model manifest from registry.ollama.ai and either:
- serves an HTML page locally with a table of layer download links, proxying all requests to the registry so links work directly in a browser or download tool, or
- exports a self-contained HTML file with direct absolute registry URLs for offline use.
Installation
Requires Python 3.12+.
Run without installing (recommended):
uvx doget llama3
Install globally:
pip install doget
# or
uv tool install doget
Usage
doget [serve] <model> [--port PORT] [--host HOST]
doget export <model> [--output FILE]
serve is the default — doget llama3 and doget serve llama3 are equivalent.
Commands
| Command | Description |
|---|---|
serve |
Start a local HTTP server (default) |
export |
Write a standalone .html file |
Options
| Option | Command | Default | Description |
|---|---|---|---|
--port PORT |
serve | 8080 (or $PORT) |
TCP port to listen on |
--host HOST |
serve | 0.0.0.0 |
Interface to bind to |
--output FILE, -o FILE |
export | <model>-<tag>.html |
Output filename |
Examples
# Serve layer links for the default (latest) tag
uvx doget llama3
# Specific tag
uvx doget llama3:8b
# Custom port, localhost only
uvx doget llama3 --port 9000 --host 127.0.0.1
# Export a standalone HTML file
uvx doget export llama3:8b # → llama3-8b.html
uvx doget export llama3 -o index.html
Then open http://localhost:8080/ in a browser, or download layers with any tool:
# Download the manifest
curl http://localhost:8080/manifest -O
# Stream a layer directly (doget proxies the request to the registry)
wget http://localhost:8080/v2/library/llama3/blobs/sha256-<digest>
How it works
- On startup,
dogetfetches the model manifest fromregistry.ollama.ai. - serve: hosts an HTML page at
/with a numbered table of layers (index, size, name/download link). A/manifestendpoint serves the raw JSON. Every other path is proxied verbatim to the upstream registry. - export: renders the same HTML with full absolute URLs and embeds the manifest as a
data:URI, producing a fully self-contained file.
Development
git clone <repo>
cd doget
uv sync
uv run doget llama3
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file doget-0.1.0.tar.gz.
File metadata
- Download URL: doget-0.1.0.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
238b69b7b3b7e38336c257f60c20977fb14d0592f14d40b3051dce97337afe41
|
|
| MD5 |
6a720ca89b0a3f5e5b65771bced3f295
|
|
| BLAKE2b-256 |
aa2c8ae2517e35ef2e58bb9340ca0cd185ecc4227646f5b48cefac875b0918f2
|
Provenance
The following attestation bundles were made for doget-0.1.0.tar.gz:
Publisher:
python-publish.yml on chaoqing/doget
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
doget-0.1.0.tar.gz -
Subject digest:
238b69b7b3b7e38336c257f60c20977fb14d0592f14d40b3051dce97337afe41 - Sigstore transparency entry: 1017277375
- Sigstore integration time:
-
Permalink:
chaoqing/doget@2c1fd15570244e7c660b515a8016fc6a454e3d6b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/chaoqing
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2c1fd15570244e7c660b515a8016fc6a454e3d6b -
Trigger Event:
release
-
Statement type:
File details
Details for the file doget-0.1.0-py3-none-any.whl.
File metadata
- Download URL: doget-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e7bdf5cd6e59e6df54aad6a01d887a5e6ea823fed5224f1a90a4ce2a5a20477
|
|
| MD5 |
d53109995b680db6e145f892d8c6ef10
|
|
| BLAKE2b-256 |
093fa86a506aac666c93ed978463fd7fb64932bd18a11f3333e665e0df87f562
|
Provenance
The following attestation bundles were made for doget-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on chaoqing/doget
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
doget-0.1.0-py3-none-any.whl -
Subject digest:
0e7bdf5cd6e59e6df54aad6a01d887a5e6ea823fed5224f1a90a4ce2a5a20477 - Sigstore transparency entry: 1017277431
- Sigstore integration time:
-
Permalink:
chaoqing/doget@2c1fd15570244e7c660b515a8016fc6a454e3d6b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/chaoqing
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2c1fd15570244e7c660b515a8016fc6a454e3d6b -
Trigger Event:
release
-
Statement type: