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.1.tar.gz (10.6 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.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ollama_models-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6b8e6b0e7856ce6868886e1bd605a2ad6997a0cc037f9f8fe4008ab82630a031
MD5 495ff1f08353641de33342e5f8f76bbd
BLAKE2b-256 2ef5d4042ff0858bce982b6aec8f6e8930ab218d237e3e7208cc1f2acfcfc736

See more details on using hashes here.

Provenance

The following attestation bundles were made for ollama_models-0.1.1.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.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for ollama_models-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7136806c99890ffcac5b8344343e815631c8ed03fb56302ab479b18e44d56c1e
MD5 57b51200035b314508290e50ad67be20
BLAKE2b-256 40eb8341b978dddddbde1db09efb730f3427a8dd9fb8eebcf009e1811f11bb0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for ollama_models-0.1.1-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