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_tag)          # qwen3:latest
for t in model.tags:
    print(t)                      # 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.3.0.tar.gz (40.8 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.3.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ollama_models-0.3.0.tar.gz
  • Upload date:
  • Size: 40.8 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.3.0.tar.gz
Algorithm Hash digest
SHA256 86a1e40f6a5698cc03254cab8143c1046429caad54e26d5fdcfc8d240b8067af
MD5 5db5181097fcb51ec15058405329564c
BLAKE2b-256 119510081fe20b645cb8778b805ae6bfd1cb5fbaa7cf7344ae87be6a33112cc9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ollama_models-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 051481bc4a4e3ed651889627fc4287feddc8ce4868de9d14b0ca6c3c74f49cc5
MD5 f27261c172e9240dab929937809102b3
BLAKE2b-256 9dd87efecaa415dbb1bccc973180ef8d7fb93841d4b386f4ff87cd6d7f529892

See more details on using hashes here.

Provenance

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