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.1.tar.gz (7.0 kB 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.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file smollama_py-0.0.1.tar.gz.

File metadata

  • Download URL: smollama_py-0.0.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • 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.1.tar.gz
Algorithm Hash digest
SHA256 19d63440a3a523d494da10b8903a396fd87d6207b42536996cbb1c6976fdad29
MD5 a3a151adfa916597f6e4bb6ec2895f20
BLAKE2b-256 fc9c5bdbc17de3ec9b6f8974071f04b590a05b1f7da215cda844a0938d12ef6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for smollama_py-0.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: smollama_py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f321d8cb4210921fcc9445e31435f6fb6c009bf33d978a4077f45a29dcd4a60c
MD5 051fa9f2ccb5693b0f4f47ff05f8d430
BLAKE2b-256 702002a0ab0f4f9b84dbb1d0aecaa15043161eb6bb95645d430a82474dba654e

See more details on using hashes here.

Provenance

The following attestation bundles were made for smollama_py-0.0.1-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