cloooooo — personal LLM client, prompt/context/thinking 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.2.0.tar.gz
(8.3 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.2.0.tar.gz.
File metadata
- Download URL: clovis-0.2.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ea4b143377b27995ad07f2939fa3f40e5910358393c84d7885fdbc7285045be
|
|
| MD5 |
2475e68846f365f460b2c51f9eba4df2
|
|
| BLAKE2b-256 |
e00929379d6fab599e9f70eb4a6d7148599c3421e57be3bf5063b4edef905cd7
|
File details
Details for the file clovis-0.2.0-py3-none-any.whl.
File metadata
- Download URL: clovis-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.7 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 |
a8affc4817b66554529404185abd0369f80d7a21e64546e523ca220a79648451
|
|
| MD5 |
2cacd7a9e017a3308ba090c637122321
|
|
| BLAKE2b-256 |
347bb6fb1930055f192befb5ba534ebb0e55404f787060bf57d87dcbd261d6c4
|