cloooooo — personal LLM client, OpenAI-compatible interface over local Ollama
Project description
clovis
OpenAI-compatible Python client over a local Ollama instance.
Install
pip install clovis
Usage
from clovis import cloooooo
client = cloooooo() # connects to localhost:11434 by default
# Chat
resp = client.chat.completions.create(
model="qwen3-72b",
messages=[{"role": "user", "content": "Bonjour !"}]
)
print(resp.choices[0].message.content)
# Streaming
for chunk in client.chat.completions.create(
messages=[{"role": "user", "content": "Écris un poème"}],
stream=True,
):
print(chunk.choices[0].delta.get("content", ""), end="", flush=True)
# Conversation with auto history
with client.conversation(system="Tu es un expert en finance.") as conv:
print(conv.chat("Explique le CAPM"))
print(conv.chat("Et ses limites ?")) # remembers context
# Start API server
cloooooo.serve(port=8000, api_key="sk-...")
CLI
clovis "Explique les trous noirs" # direct question
clovis repl # interactive conversation
clovis serve --port 8000 # start API server
Config
export CLOVIS_MODEL="qwen3-72b"
export CLOVIS_OLLAMA_URL="http://localhost:11434"
export CLOVIS_API_KEY="sk-..."
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clovis-0.1.0.tar.gz
(9.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clovis-0.1.0.tar.gz.
File metadata
- Download URL: clovis-0.1.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3b583e98eaf67108c56cd435308ffe85b035f9c6b21f2b4d0eef0da72275a0b
|
|
| MD5 |
c92c9d159b312e4fc637d560c0e56a4c
|
|
| BLAKE2b-256 |
07c82c983cd5f902cd69ab828c6534cc996f78ceaaa5ecb8e5cb14aa7dbe0519
|
File details
Details for the file clovis-0.1.0-py3-none-any.whl.
File metadata
- Download URL: clovis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
237102dc193e72757be71ddebafb4d5baa583e51fcfa879f3d03111578e79b23
|
|
| MD5 |
90f11e166b91bbf92bf160c0da572f91
|
|
| BLAKE2b-256 |
5ae43ba66b298248751be5dd5925518ca0e7a2da17c07d0a9d62cd953347ee54
|