ollama-python is an open-source Python SDK that wraps the Ollama CLI, allowing seamless interaction with local large language models (LLMs) managed by Ollama. Developers use it to load models, send prompts, manage sessions, and stream responses directly from Python code. It simplifies integration of Ollama-based models into applications, supporting synchronous and streaming modes. This tool is ideal for those building AI-driven apps with local model deployment.
Features
- Load and run Ollama models from Python
- Support for prompt formatting and streaming output
- List and manage installed LLMs
- Session handling and conversation memory
- Handles CLI errors and output parsing
- Lightweight dependency wrapping existing CLI
Categories
LibrariesLicense
MIT LicenseFollow Ollama Python
Other Useful Business Software
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Ollama Python!