← all repositories

ollama/ollama-python

Official Python client library for Ollama, a platform for running large language models locally.

10.1k stars Python Language Models
ollama-python
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.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.