Skip to main content

A python app to serve smOllama

Project description

smollama-py

PyPI Changelog Tests License

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

  1. Select your preferred Ollama model from the dropdown
  2. Type your message in the input field
  3. Press Enter or click the Send button
  4. View the response with rendered Markdown and LaTeX

Demo

smollama-py

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


Download files

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

Source Distribution

smollama_py-0.0.2.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

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

smollama_py-0.0.2-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

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

Hashes for smollama_py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 02f4aafa5a98bd0f497b4b70748ffd0fc2de331ae81890c86a9345abb6348579
MD5 23b16d2ec3c289a5228ce534d6e323ee
BLAKE2b-256 dff08b2033eb1f0f75be5fa65aa8742b72351621ef2c49c6155b943eb4532aa1

See more details on using hashes here.

Provenance

The following attestation bundles were made for smollama_py-0.0.2.tar.gz:

Publisher: publish.yml on sukhbinder/smollama-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for smollama_py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 34a7b4d4dfbe6ab4843876d66a625dbbb4c39b0de4c6c8b89a214df1b646c0bf
MD5 9016f452a2dff9780b58c5b9a4705443
BLAKE2b-256 e7b4055ac6cd5634cec86b9872724a58875f75a20a8ccf5d321e055a1bc6538c

See more details on using hashes here.

Provenance

The following attestation bundles were made for smollama_py-0.0.2-py3-none-any.whl:

Publisher: publish.yml on sukhbinder/smollama-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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