ollama-python
Ollama Python library
About this project
Ollama Python Library The Ollama Python library provides the easiest way to integrate Python 3.8+ projects with Ollama. Prerequisites — Ollama should be installed and running — Pull a model to use with the library: ollama pull e.g. ollama pull gemma3 — See Ollama.com for more information on the models available. Install Usage See types.py for more information on the response types. Streaming responses Response streaming can be enabled by setting stream=True. Cloud Models Run larger models by offloading to Ollama’s cloud while keeping your local workflow. — Supported models: deepseek-v3.1:671b-cloud, gpt-oss:20b-cloud, gpt-oss:120b-cloud, kimi-k2:1t-cloud,…
Technologies
Project health
GitHub
Reviews
Built by
Maintain ollama/ollama-python? Claiming verifies admin access through your GitHub account and gives you control of this listing.