Fast, lightweight FastAPI wrapper for exposing Ollama server to local network
Project description
BlakPort
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.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
MIT License - see LICENSE file for details.
Made with ❤️ in London
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adfb23e5c926b9d6d41b028c054e49c74ff4c3e494f1f68934ff670590a0bb6d
|
|
| MD5 |
97d2d6e81e5ef12d1737727a27617b92
|
|
| BLAKE2b-256 |
1f5dde10e8266b395ac4daf459b54eb45cea2bebf37496494efc7bb6d17bd7e2
|
Provenance
The following attestation bundles were made for blakport-1.0.0.tar.gz:
Publisher:
python-publish.yml on oguzhancoskun/blakport
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
blakport-1.0.0.tar.gz -
Subject digest:
adfb23e5c926b9d6d41b028c054e49c74ff4c3e494f1f68934ff670590a0bb6d - Sigstore transparency entry: 701524836
- Sigstore integration time:
-
Permalink:
oguzhancoskun/blakport@7d7afdde93fe1e20ed1368534eb5098da2e33bea -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/oguzhancoskun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7d7afdde93fe1e20ed1368534eb5098da2e33bea -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
babda15e791daa65e10e8d0c5a8274b5aa4bc9decdb6d6ddde7c61992872499c
|
|
| MD5 |
d71fcc3cd1202b32ddf5416a398b56bb
|
|
| BLAKE2b-256 |
be79d36888c9af4c4aa8368751dd76a040f88aeb6c60ce7358b981f8dcfa5ff8
|
Provenance
The following attestation bundles were made for blakport-1.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on oguzhancoskun/blakport
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
blakport-1.0.0-py3-none-any.whl -
Subject digest:
babda15e791daa65e10e8d0c5a8274b5aa4bc9decdb6d6ddde7c61992872499c - Sigstore transparency entry: 701524841
- Sigstore integration time:
-
Permalink:
oguzhancoskun/blakport@7d7afdde93fe1e20ed1368534eb5098da2e33bea -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/oguzhancoskun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7d7afdde93fe1e20ed1368534eb5098da2e33bea -
Trigger Event:
release
-
Statement type: