Skip to main content

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

  1. On startup, doget fetches the model manifest from registry.ollama.ai.
  2. serve: hosts an HTML page at / with a numbered table of layers (index, size, name/download link). A /manifest endpoint serves the raw JSON. Every other path is proxied verbatim to the upstream registry.
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

doget-0.1.0.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

doget-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

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

Hashes for doget-0.1.0.tar.gz
Algorithm Hash digest
SHA256 238b69b7b3b7e38336c257f60c20977fb14d0592f14d40b3051dce97337afe41
MD5 6a720ca89b0a3f5e5b65771bced3f295
BLAKE2b-256 aa2c8ae2517e35ef2e58bb9340ca0cd185ecc4227646f5b48cefac875b0918f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for doget-0.1.0.tar.gz:

Publisher: python-publish.yml on chaoqing/doget

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for doget-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e7bdf5cd6e59e6df54aad6a01d887a5e6ea823fed5224f1a90a4ce2a5a20477
MD5 d53109995b680db6e145f892d8c6ef10
BLAKE2b-256 093fa86a506aac666c93ed978463fd7fb64932bd18a11f3333e665e0df87f562

See more details on using hashes here.

Provenance

The following attestation bundles were made for doget-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on chaoqing/doget

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page