A simple Python wrapper for Ollama API
Project description
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
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
ollama_call-1.0.0.tar.gz
(2.8 kB
view details)
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_call-1.0.0.tar.gz.
File metadata
- Download URL: ollama_call-1.0.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdc3afd7b8a72f26fee2d96fc4ac70dd40c24bdabef66f97c62d61f3a5f24a17
|
|
| MD5 |
337d169463cbe859b06c47ded2b41231
|
|
| BLAKE2b-256 |
dc82f7d2ff61a49c80f470bc5cebc6f92321a4533170234bbbd282ffd1b30435
|
File details
Details for the file ollama_call-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ollama_call-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
259f78eee5589657fc4e19b7a8b0fc29da734eec3ff09aff8aa50ac975137d82
|
|
| MD5 |
3023a6a2cdf09cc724f10e6043b1dd60
|
|
| BLAKE2b-256 |
352c50884919582fe93b70be532d072529b96ba5fc9b1b3a6d32b65e4a487a85
|