Skip to main content

Bielik โ€” local Ollama chat client (CLI + web)

Project description

๐Ÿฆ… bielik

PyPI Python License Build

Author: Tom Sapletta
License: Apache-2.0


๐Ÿ“Œ Features

  • CLI bielik โ€” interactive chat shell with Ollama (REST โ†’ fallback ollama lib).
  • Web server (FastAPI on port 8888):
    • POST /chat โ€” send chat messages
    • WS /ws โ€” websocket chat

โš™๏ธ Installation

pip install bielik

Optional dependency (official Ollama lib):

pip install "bielik[ollama]"

๐Ÿš€ Usage

CLI

bielik

Wpisz wiadomoล›ci, zakoล„cz :exit.

Web API

uvicorn bielik.server:app --port 8888
  • POST /chat:
{"messages": [{"role":"user","content":"Hello!"}]}
  • WebSocket /ws

๐Ÿ”ง Environment Variables

  • OLLAMA_HOST โ€” default: http://localhost:11434
  • BIELIK_MODEL โ€” default: bielik

๐Ÿ“ Development

git clone https://github.com/tomsapletta/bielik.git
cd bielik
python -m venv .venv
source .venv/bin/activate
pip install -e .[ollama]

๐Ÿ“‚ Struktura

bielik/
โ”œโ”€โ”€ bielik/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ cli.py
โ”‚   โ””โ”€โ”€ server.py
โ”œโ”€โ”€ tests/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ test_cli.py
โ”‚   โ””โ”€โ”€ test_server.py
โ”œโ”€โ”€ pyproject.toml
โ”œโ”€โ”€ setup.cfg
โ”œโ”€โ”€ MANIFEST.in
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ Makefile
โ””โ”€โ”€ .github/workflows/python-publish.yml

๐Ÿ“œ License

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bielik-0.1.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bielik-0.1.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file bielik-0.1.0.tar.gz.

File metadata

  • Download URL: bielik-0.1.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for bielik-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f4c55f8f092af9649881ff52c8edd449500bc6e07476134412780ec109aadf60
MD5 b9f920a46dd95bd3bb21ee82fe72d515
BLAKE2b-256 45818efc57313780f5c942d1dffc2395d4eb81084900cfd8697b9ed39c1c1ae0

See more details on using hashes here.

File details

Details for the file bielik-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bielik-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for bielik-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 483f0a4be36095a7c2be7a0acf4202f7f22acf6d1cbd468759ac0b85686cfdf9
MD5 88d1f6818eb25b98805422d8834b98e5
BLAKE2b-256 7b9d61403e1e125aa4ec8cbb82e359aabca44e71dda9954a2ee21b1bb8cdb48f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page