ollama-call
A simple Python wrapper for Ollama API calls.
Installation
pip install ollama-call
Usage
from ollama_call import ollama_call
response = ollama_call(
user_prompt="Hello, how are you?",
format="json",
model="gemma3:12b"
)
print(response)
Features
- Simple function-based API
- Supports JSON output format
- Supports streaming (via
stream=True) - Custom temperature and timeout settings
Metadata
Release files for ollama-call 1.0.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_call-1.0.0.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ollama_call-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.8 kB
Release files / ollama_call-1.0.0.tar.gz
| Download URL | ollama_call-1.0.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdc3afd7b8a72f26fee2d96fc4ac70dd40c24bdabef66f97c62d61f3a5f24a17
|
|
BLAKE2b-256 checksum How to use checksums |
dc82f7d2ff61a49c80f470bc5cebc6f92321a4533170234bbbd282ffd1b30435
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / ollama_call-1.0.0-py3-none-any.whl
| Download URL | ollama_call-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
259f78eee5589657fc4e19b7a8b0fc29da734eec3ff09aff8aa50ac975137d82
|
|
BLAKE2b-256 checksum How to use checksums |
352c50884919582fe93b70be532d072529b96ba5fc9b1b3a6d32b65e4a487a85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|