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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
432609a418d11224697e6a2cb4b117c64d287e62e95c53e4b879a7f0a9847e16
|
|
| MD5 |
5a8060acccc495d5efb58a67fece815b
|
|
| BLAKE2b-256 |
e2d2ce348896c837be68a42669e5630f6c4078b641685881031204d9fe4a72f6
|
Provenance
The following attestation bundles were made for ollama_models-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on devcomfort/ollama-models
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ollama_models-0.1.0.tar.gz -
Subject digest:
432609a418d11224697e6a2cb4b117c64d287e62e95c53e4b879a7f0a9847e16 - Sigstore transparency entry: 1226227612
- Sigstore integration time:
-
Permalink:
devcomfort/ollama-models@ed9f5fe999f1ba2958571d084224d97e1b8b32fd -
Branch / Tag:
refs/tags/py-v0.1.0 - Owner: https://github.com/devcomfort
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@ed9f5fe999f1ba2958571d084224d97e1b8b32fd -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5f3b1559f415eb6d1506a3749ab3f10bbdade451d1bcb6364751dc9a5866806
|
|
| MD5 |
5e090675c06946c3ba031722d39d2a34
|
|
| BLAKE2b-256 |
b895af95a3a7eeefd7229900a8e8021d9e3a364b8214ddfc72ec01c89c3bf47a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ollama_models-0.1.0-py3-none-any.whl -
Subject digest:
e5f3b1559f415eb6d1506a3749ab3f10bbdade451d1bcb6364751dc9a5866806 - Sigstore transparency entry: 1226227667
- Sigstore integration time:
-
Permalink:
devcomfort/ollama-models@ed9f5fe999f1ba2958571d084224d97e1b8b32fd -
Branch / Tag:
refs/tags/py-v0.1.0 - Owner: https://github.com/devcomfort
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@ed9f5fe999f1ba2958571d084224d97e1b8b32fd -
Trigger Event:
push
-
Statement type: