Skip to main content

Fast, lightweight FastAPI wrapper for exposing Ollama server to local network

Project description

BlakPort

Fast, lightweight FastAPI wrapper for exposing Ollama server to your local network

Python 3.8+ License: MIT FastAPI

Overview

BlakPort is a lightweight API gateway that exposes your local Ollama server to devices on your local network. It provides a simple REST API wrapper around Ollama, making it easy to access your LLM models from any device on your LAN.

Installation

From PyPI

pip install blakport

From Source

git clone https://github.com/yourusername/blakport.git
cd blakport
pip install -e .

CLI Commands

blakport start

Start the BlakPort server.

blakport start                    # Foreground (auto-moves to background)
blakport start --background       # Background immediately
blakport start --host 192.168.1.100 --port 11435  # Override Ollama config

blakport stop

Stop the running server.

blakport stop

blakport status

Show server status.

blakport status

blakport log

View server logs.

blakport log              # Last 50 lines
blakport log --lines 100  # Last 100 lines
blakport log --follow     # Follow logs (tail -f)

blakport init / blakport configure

Initialize or update configuration.

blakport init                          # Interactive setup
blakport init --host 127.0.0.1 --port 11434
blakport configure --host 192.168.1.100

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License - see LICENSE file for details.


Made with ❤️ in London

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

blakport-1.0.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

blakport-1.0.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file blakport-1.0.0.tar.gz.

File metadata

  • Download URL: blakport-1.0.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for blakport-1.0.0.tar.gz
Algorithm Hash digest
SHA256 adfb23e5c926b9d6d41b028c054e49c74ff4c3e494f1f68934ff670590a0bb6d
MD5 97d2d6e81e5ef12d1737727a27617b92
BLAKE2b-256 1f5dde10e8266b395ac4daf459b54eb45cea2bebf37496494efc7bb6d17bd7e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for blakport-1.0.0.tar.gz:

Publisher: python-publish.yml on oguzhancoskun/blakport

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

File details

Details for the file blakport-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: blakport-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for blakport-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 babda15e791daa65e10e8d0c5a8274b5aa4bc9decdb6d6ddde7c61992872499c
MD5 d71fcc3cd1202b32ddf5416a398b56bb
BLAKE2b-256 be79d36888c9af4c4aa8368751dd76a040f88aeb6c60ce7358b981f8dcfa5ff8

See more details on using hashes here.

Provenance

The following attestation bundles were made for blakport-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on oguzhancoskun/blakport

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