Metadata-Version: 2.4
Name: ollama_manager
Version: 0.1.2
Summary: Manage Ollama models from your commandline!
Author: Yankee Maharjan
Project-URL: Repository, https://github.com/yankeexe/ollama-manager
Keywords: ollama,ollama cli,ollama python,ollama manager
Classifier: Programming Language :: Python :: 3.11
Classifier: Intended Audience :: Developers
Classifier: Development Status :: 3 - Alpha
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: beautifulsoup4==4.13.4
Requires-Dist: click==8.2.0
Requires-Dist: httpx==0.27.2
Requires-Dist: ollama==0.4.8
Requires-Dist: requests==2.32.3
Requires-Dist: simple-term-menu==1.6.4
Requires-Dist: textual==3.2.0
Provides-Extra: dev
Requires-Dist: ruff==0.7.4; extra == "dev"
Provides-Extra: ui
Requires-Dist: streamlit==1.45.1; extra == "ui"

# 🦙 Ollama Manager

![Python Version](https://img.shields.io/badge/Python-3.11-brightgreen?style=flat-square)
![Downloads](https://static.pepy.tech/badge/ollama-manager)


CLI app to manage Ollama models.

<a href="https://youtu.be/1y2TohQdNbo">
<img src="https://i.imgur.com/iA0LB0e.gif" width="800">
</a>

## ⚡️ Features

- List and Download Remote models from [🦙 Ollama library](https://ollama.dev/models) or [🤗 Hugging Face](https://huggingface.co/models?sort=trending&search=gguf)
- Delete existing Ollama models
- Launch models in Streamlit UI
- Fuzzy Search


## 🚀 Installation

```sh
pip install ollama-manager

# OR

pipx install ollama-manager
```

For development: installs app in editable mode

```sh
make setup
```

## ✨ Usage

### Pull Remote Model

```sh
olm pull
```

Pull Hugging Face models:

```sh
olm pull -hf

# With query:

olm pull -hf -q llama3.2

# With limit:

olm pull -hf -q llama3.2 -l 10
```

### Delete Local Model/s

Delete a single model

```sh
olm rm
```

Delete multiple models

```sh
olm rm -m
```

Delete model without confirmation prompt:

```sh
olm rm -y
```

### Run selected model

Run the selected model on Ollama terminal UI:

```sh
olm run
```

---

**Run models in a Streamlit UI:**

<details>
<summary>Ollama Manager UI</summary>
<img src="https://i.imgur.com/UqQLjXx.gif" width="800" />
</details>

You need to install optional dependencies for this:

```sh
pip install ollama-manager[ui]
```

then use the following command to select the model:

```sh
# For Text Models
olm run -ui text

# For Vision Models

olm run -ui vision
```

## Getting Help

```sh
olm --help

olm <sub-command> --help
```
