Skip to main content

Python client for the ollama-models API — search and list Ollama model weights

Project description

ollama-models (Python)

Python client for searching and listing models from the Ollama registry.

Installation

pip install ollama-models

Usage

from ollama_models import OllamaModelsClient

# No base URL needed — defaults to the official hosted instance
client = OllamaModelsClient()

# Pass a base URL only if you self-host the API
# client = OllamaModelsClient("https://your-own-instance.workers.dev")

# Search models
result = client.search("qwen3", page=1)
for page in result.pages:
    print(page.http_url)

# Get all tags for a model
model = client.get_model("qwen3")
print(model.default_model_id)   # qwen3:latest
for w in model.model_list:
    print(w.id)                 # qwen3:latest, qwen3:4b, ...

# Async usage
import asyncio

async def main():
    result = await client.search_async("qwen3")
    model  = await client.get_model_async("qwen3")

asyncio.run(main())

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

ollama_models-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

ollama_models-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file ollama_models-0.1.0.tar.gz.

File metadata

  • Download URL: ollama_models-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ollama_models-0.1.0.tar.gz
Algorithm Hash digest
SHA256 432609a418d11224697e6a2cb4b117c64d287e62e95c53e4b879a7f0a9847e16
MD5 5a8060acccc495d5efb58a67fece815b
BLAKE2b-256 e2d2ce348896c837be68a42669e5630f6c4078b641685881031204d9fe4a72f6

See more details on using hashes here.

Provenance

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

Publisher: publish-pypi.yml on devcomfort/ollama-models

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

File details

Details for the file ollama_models-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ollama_models-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ollama_models-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5f3b1559f415eb6d1506a3749ab3f10bbdade451d1bcb6364751dc9a5866806
MD5 5e090675c06946c3ba031722d39d2a34
BLAKE2b-256 b895af95a3a7eeefd7229900a8e8021d9e3a364b8214ddfc72ec01c89c3bf47a

See more details on using hashes here.

Provenance

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

Publisher: publish-pypi.yml on devcomfort/ollama-models

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