Skip to main content

One-line deployment for trained tabular ML models

Project description

Deeploi — Deploy ML Models in Seconds 🚀

Deeploi Banner

PyPI version License: MIT

Turn your trained tabular ML model into a production-ready API with a single line of code. No DevOps. No boilerplate. No headaches.

Why Deeploi?

  • Instant API: Serve your scikit-learn-compatible, XGBoost, LightGBM, or CatBoost model in one command.
  • Zero Config: No YAML, no Docker, no cloud lock-in.
  • Local-First: Run on your laptop, server, or VM.
  • Built for ML work: Focus on the model, not the serving stack.

Install

pip install deeploi

Fastest Start

from sklearn.datasets import load_iris
from sklearn.ensemble import RandomForestClassifier
from deeploi import deploy

iris = load_iris(as_frame=True)
X, y = iris.data, iris.target
model = RandomForestClassifier(random_state=42).fit(X, y)

deploy(model)

Your model is now live at http://127.0.0.1:8000.

Most Important Ways to Access Deeploi

1. Open the dashboard

Open this in your browser:

http://127.0.0.1:8000/

The dashboard gives you a quick way to inspect metadata, test endpoints, and send prediction requests.

2. Call the prediction API directly

curl -X POST http://127.0.0.1:8000/predict \
  -H "Content-Type: application/json" \
  -d '{
    "records": [
      {
        "sepal length (cm)": 5.1,
        "sepal width (cm)": 3.5,
        "petal length (cm)": 1.4,
        "petal width (cm)": 0.2
      }
    ]
  }'

Core endpoints:

  • POST /predict
  • POST /predict_proba
  • POST /predict-csv (optional batch file upload)
  • GET /meta
  • GET /health

Optional CSV batch prediction example:

curl -X POST http://127.0.0.1:8000/predict-csv \
  -F "file=@examples/iris_batch.csv"

For ecosystem-specific installs:

pip install "deeploi[tabular]"
pip install "deeploi[all]"

3. Work with a reusable package object

from deeploi import package

pkg = package(model)
preds = pkg.predict(X.head())
pkg.serve(port=8000)

Use this when you want a Python object you can predict with, save, and serve explicitly.

4. Save and reload a model artifact

from deeploi import package, load

pkg = package(model)
pkg.save("artifacts/iris_rf")

loaded = load("artifacts/iris_rf")
loaded.serve(port=8000)

Use this when you want a portable artifact directory you can reload later.

Docker Artifact Generation

Use Docker generation when you want a saved artifact that is easy to move onto another machine or run in a container.

from deeploi import package

pkg = package(model)
pkg.save("artifacts/iris_rf", generate_docker=True)

Then build and run it:

cd artifacts/iris_rf
docker build -t iris-model .
docker run --rm -p 8000:8000 iris-model

Who is Deeploi for?

  • Data scientists who want to share a model quickly
  • ML engineers who need fast local serving for tabular models
  • Teams that want a lightweight path from notebook to API

Popular tabular frameworks now include sklearn-compatible estimators (including HistGradientBoosting, ExtraTrees, and CalibratedClassifierCV), XGBoost, LightGBM, CatBoost, NGBoost, LightGBM/CatBoost rankers, and imbalanced-learn meta-estimators.

Neural network support is intentionally deferred to a future release so v0.3.x stays focused on simple tabular ML workflows.

Learn More

See DOCS.md for:

  • advanced deploy, package, and load usage
  • environment-based authentication
  • Docker artifact generation
  • artifact layout
  • error handling and testing examples

License

MIT — see LICENSE.

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

deeploi-0.3.0.tar.gz (49.4 kB view details)

Uploaded Source

Built Distribution

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

deeploi-0.3.0-py3-none-any.whl (42.7 kB view details)

Uploaded Python 3

File details

Details for the file deeploi-0.3.0.tar.gz.

File metadata

  • Download URL: deeploi-0.3.0.tar.gz
  • Upload date:
  • Size: 49.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for deeploi-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ffb2b19a1c8aeb8f8e74ec948b91bd5b84b67cb4053e86f35c3f6450cc5cb9d6
MD5 53fe39672d93064f6a3e6472bb6502f4
BLAKE2b-256 b28a3873721573098be6031d87786633174bcb1332c65233d9e93a77328a2352

See more details on using hashes here.

File details

Details for the file deeploi-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: deeploi-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 42.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for deeploi-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcc78aa07efddee2c0b844d9ab514d3b83530838ec315c316f048e021d219f45
MD5 40814bd26696991b77517355dd36fa72
BLAKE2b-256 21991c73158938016d01aa353b5e4ab949901e066ac6b0dbcf0673bd06970ff6

See more details on using hashes here.

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