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())
Metadata
Release files for ollama-models 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ollama_models-0.3.0.tar.gz | 40.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ollama_models-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.9 kB
Release files / ollama_models-0.3.0.tar.gz
| Download URL | ollama_models-0.3.0.tar.gz |
|---|---|
| Size | 40.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86a1e40f6a5698cc03254cab8143c1046429caad54e26d5fdcfc8d240b8067af
|
|
BLAKE2b-256 checksum How to use checksums |
119510081fe20b645cb8778b805ae6bfd1cb5fbaa7cf7344ae87be6a33112cc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 28, 2026.
Transparency logRelease files / ollama_models-0.3.0-py3-none-any.whl
| Download URL | ollama_models-0.3.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
051481bc4a4e3ed651889627fc4287feddc8ce4868de9d14b0ca6c3c74f49cc5
|
|
BLAKE2b-256 checksum How to use checksums |
9dd87efecaa415dbb1bccc973180ef8d7fb93841d4b386f4ff87cd6d7f529892
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 28, 2026.
Transparency log