A python app to serve smOllama
Project description
smollama-py
A python app to serve smOllama. Not everyone has npx so created this wrapper over excellent smOllama web page.
smOllama is lightweight web browser chatbot interface for Ollama models. smollama-py is a python app to ease serving smOllama
Getting Started
Prerequisites
- A running Ollama instance with at least one model installed
- A modern web browser
Installation
Install this tool using pip:
pip install smollama-py
Usage
For help, run:
smollama-py --help
You can also use:
python -m smollama-py --help
usage: smollama-py [-h] [-m {chrome,electron,edge,msie}]
A python app to serve smOllama
optional arguments:
-h, --help show this help message and exit
-m {chrome,electron,edge,msie}, --mode {chrome,electron,edge,msie}
Usage
- Select your preferred Ollama model from the dropdown
- Type your message in the input field
- Press Enter or click the Send button
- View the response with rendered Markdown and LaTeX
Demo
Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
cd smollama-py
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
python -m pytest
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
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 smollama_py-0.0.2.tar.gz.
File metadata
- Download URL: smollama_py-0.0.2.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02f4aafa5a98bd0f497b4b70748ffd0fc2de331ae81890c86a9345abb6348579
|
|
| MD5 |
23b16d2ec3c289a5228ce534d6e323ee
|
|
| BLAKE2b-256 |
dff08b2033eb1f0f75be5fa65aa8742b72351621ef2c49c6155b943eb4532aa1
|
Provenance
The following attestation bundles were made for smollama_py-0.0.2.tar.gz:
Publisher:
publish.yml on sukhbinder/smollama-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
smollama_py-0.0.2.tar.gz -
Subject digest:
02f4aafa5a98bd0f497b4b70748ffd0fc2de331ae81890c86a9345abb6348579 - Sigstore transparency entry: 193214311
- Sigstore integration time:
-
Permalink:
sukhbinder/smollama-py@9bbe58950c07c8f5a340fabd5fcc1645c26ab2bb -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/sukhbinder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9bbe58950c07c8f5a340fabd5fcc1645c26ab2bb -
Trigger Event:
release
-
Statement type:
File details
Details for the file smollama_py-0.0.2-py3-none-any.whl.
File metadata
- Download URL: smollama_py-0.0.2-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34a7b4d4dfbe6ab4843876d66a625dbbb4c39b0de4c6c8b89a214df1b646c0bf
|
|
| MD5 |
9016f452a2dff9780b58c5b9a4705443
|
|
| BLAKE2b-256 |
e7b4055ac6cd5634cec86b9872724a58875f75a20a8ccf5d321e055a1bc6538c
|
Provenance
The following attestation bundles were made for smollama_py-0.0.2-py3-none-any.whl:
Publisher:
publish.yml on sukhbinder/smollama-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
smollama_py-0.0.2-py3-none-any.whl -
Subject digest:
34a7b4d4dfbe6ab4843876d66a625dbbb4c39b0de4c6c8b89a214df1b646c0bf - Sigstore transparency entry: 193214313
- Sigstore integration time:
-
Permalink:
sukhbinder/smollama-py@9bbe58950c07c8f5a340fabd5fcc1645c26ab2bb -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/sukhbinder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9bbe58950c07c8f5a340fabd5fcc1645c26ab2bb -
Trigger Event:
release
-
Statement type: