ollama/ollama-python
Official Python client library for Ollama, a platform for running large language models locally.

Velocity · 7d
+11
★ / day
Trend
→steady
star history
The Ollama Python library provides Python 3.8+ bindings to interact with Ollama’s LLM runtime. It exposes chat functionality with support for streaming responses, model management via pull operations, and a Client class for flexible API access. The library handles both local models (running on the Ollama runtime) and cloud model offloading, returning typed response objects for easy consumption.