A simple framework to deploy AI models locally with one command, no containers needed
Project description
tursi-ai
A simple, lightweight framework to deploy AI models locally with a single command—no Docker, no external services required.
Overview
tursi-ai lets you run AI models (like text classification) on your machine with minimal setup. Our unique selling proposition: "AI deployment, one command, no containers needed." The base install is ~150-200MB, with an additional ~250MB for the default model on first run. Perfect for developers who want simplicity without complexity.
Features
- One-command deployment: Start a model server with a single script.
- No containers: Runs directly in your Python environment.
- Lightweight: Minimal dependencies, small footprint.
- Extensible: Built for easy customization and growth.
Getting Started
Prerequisites
- Python 3.8+ (tested with 3.12)
- A virtual environment (recommended)
Installation
-
Clone or download this project (for now, until PyPI packaging):
git clone <path-to-your-local-repo> # Or copy the folder manually cd tursi-ai
-
Set up a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
This installs everything needed for both
tursi-engineandtursi-test.
Usage
-
Deploy a model: Run the engine to start a Flask server with the default model (
distilbert-base-uncased-finetuned-sst-2-english):python tursi-engine/tursi-engine.pyOutput:
Loading model... Model loaded! Deploying at http://localhost:5000/predict -
Test the deployed model: Use the included
tursi-testscript to send a prompt to the server. In a separate terminal (with the virtual environment activated):python tursi-test/tursi-test.py --prompt "I love AI"
Expected output:
{ "label": "POSITIVE", "score": 0.999... }
Alternatively, test with
curl:curl -X POST -H "Content-Type: application/json" -d '{"text":"I love AI"}' http://localhost:5000/predict
Project Structure
tursi-ai/
├── .github/ # GitHub Actions (e.g., linting)
├── examples/ # Sample configs (future use)
├── tursi-engine/ # Core deployment script
├── tursi-test/ # Testing utility
├── LICENSE # MIT License
├── README.md # This file
├── requirements.txt # Dependencies
└── .gitignore # Git ignore rules
Roadmap
- Add CLI support (e.g.,
tursi-engine up --model <model-name>). - Package as a PyPI module (
pip install tursi). - Support more model types beyond text classification.
Contributing
This is an open-source project under the MIT License. Feel free to fork, tweak, or submit ideas! For now, the repo is local—stay tuned for a public release.
License
MIT License—see LICENSE for details.
Acknowledgments
Built with ❤️ using:
- Transformers by Hugging Face
- Flask
- PyTorch
Built by BlueTursi.
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 tursi-0.1.0.tar.gz.
File metadata
- Download URL: tursi-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac55ab13bebedad15fd7a7d25d3188c4e463681ed5009cd79dab88dda25347f3
|
|
| MD5 |
bca0a2d6d167adcd21deb1d2ab3d6e03
|
|
| BLAKE2b-256 |
81260c27eba2df52fda953f83d385e0fd5200151d8ac8754628b89d0c8f0c8bb
|
File details
Details for the file tursi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tursi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6755f70c81a011f10c4435e5935e39cdf5f7246ce1c83dc9d9717bf967ff8932
|
|
| MD5 |
1b28f14a3ad265694349cd26739f777e
|
|
| BLAKE2b-256 |
3606002231f8b6d6c3cda3780a7b501a5dab9643c67da72af536b8c0b2a7dd4c
|