Package any ML model into a scalable, observable FastAPI service
Project description
Model Jacket
Model Jacket is a lightweight framework that wraps any ML model with a FastAPI server, Docker image, Prometheus metrics, and Kubernetes Helm chart—so you can go from model file ➜ production endpoint in minutes.
Quick Start
pip install -e .
# Train or load a model and save as TorchScript
python export_model.py # produces model.pt
jacket build --framework torch --model-path model.pt --tag v1
docker run -p 8000:8000 model-jacket:v1
curl -X POST http://localhost:8000/predict -H "Content-Type: application/json" -d '{"input_data": [[1,2,3]]}'
Features
- 🔌 Framework‑agnostic (Torch & ONNX out of the box)
- 🐳 One‑command containerization via
jacket build - ⚡ Low‑latency FastAPI server with async I/O
- 📈 Built‑in Prometheus metrics and
/healthzendpoint - ☸️ Production-ready Helm chart with HPA
- 🛡️ CI/CD GitHub Action for automatic build & deploy
Feel free to star ⭐, fork 🔱, and contribute! :rocket:
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 model_jacket-0.2.0.tar.gz.
File metadata
- Download URL: model_jacket-0.2.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f155546cb1f7290f1420a22e99948ea04ea92f4c7b9162fd502e427339c59757
|
|
| MD5 |
a920ec3e9c72d0c8a148babc4e99eb54
|
|
| BLAKE2b-256 |
c415bf2cb6f251a1f73089d8d8274985fa8c46124f09108d47f3b87d402f9481
|
File details
Details for the file model_jacket-0.2.0-py3-none-any.whl.
File metadata
- Download URL: model_jacket-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95c94ba8569340ab3cd6588427d0eb81f3b5fb9c30eeefb27717e818abd3e601
|
|
| MD5 |
f20d5bd54e6e98371cc044c03197845b
|
|
| BLAKE2b-256 |
0e4c04b47acc8a7947960fa36a877c2955af49da36a8b840661cc8088d80a302
|