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.2.0.tar.gz (11.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.2.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ollama_models-0.2.0.tar.gz
  • Upload date:
  • Size: 11.5 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.2.0.tar.gz
Algorithm Hash digest
SHA256 39bd385e25e69f98a79900ac37b0505c6a16b908d3fbd0341bf166cd8f81c6f2
MD5 ad1f7bb737276022a5f730101970ed16
BLAKE2b-256 4f5fb6cbd3a3ef6180a20a79f29ae8364e180a02dde849166e69c753feac6d49

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ollama_models-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bda66922999539712a397d1eb56e045c8c034157eaf8bbf86d43d6a6ec68a29b
MD5 64a24bf02bb82e1e5e706fc062850e73
BLAKE2b-256 0275115c9b0787be1ba01693659d67a41ae4feddaeb3f16707fe0bc07dc81849

See more details on using hashes here.

Provenance

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