SITAKA API
SITAKA API is an enterprise-ready machine learning product platform for moving from data to a deployable model service with one consistent developer experience.
It combines a Python package, CLI, FastAPI product API, AutoML workflow, MLflow tracking, model registry records, and deployment generators for FastAPI, Flask, Streamlit, and Django.
What SITAKA Solves
Most ML projects fail between experimentation and deployment. SITAKA gives teams a repeatable path:
flowchart LR
data["Data"] --> profile["Profile and Validate"]
profile --> train["AutoML Training"]
train --> registry["Model Registry"]
registry --> predict["Prediction API"]
registry --> deploy["Deployment Generator"]
train --> mlflow["MLflow Tracking"]
Use SITAKA when you want:
- A single workflow from dataset to deployable service.
- Interactive project setup through
sitaka init. - AutoML search over sklearn-style pipelines with Optuna.
- EDA reports and durable artifacts.
- MLflow experiment tracking.
- A portable model bundle with
model.joblibandmetadata.json. - A first-party FastAPI product API for projects, jobs, models, prediction, and deployments.
- Generated model services with health, readiness, metadata, schema, prediction, optional API key auth, Docker, and compose files.
- Examples for tabular, NLP, time-series baseline, and image-manifest workflows.
Current Capabilities
| Area | Status |
|---|---|
| Python package and CLI | Available |
| Interactive config generation | Available |
| CSV, Parquet, JSON, SQL, folder ingestion | Available |
| Tabular classification/regression | End-to-end |
| NLP classification/regression | Baseline sklearn text workflow |
| Time-series forecasting | Baseline regression-style workflow |
| Image classification | Manifest-based scaffold |
| MLflow tracking | Available |
| FastAPI product API | Available |
| SQLite project/job/model/deployment/audit store | Available |
| API key auth and RBAC-ready roles | Available |
| Generated FastAPI, Flask, Streamlit, Django apps | Available |
| Deep learning, streaming, feature store, DVC, drift automation | Roadmap |
Installation
Use Python 3.10 or newer.
After SITAKA is published to PyPI, users install it like any normal Python package:
pip install sitaka-api
sitaka server
Then open:
http://127.0.0.1:8000
http://127.0.0.1:8000/docs
If the repo must stay private while PyPI is pending, publish to GitLab Package Registry and install with:
pip install sitaka-api --index-url "https://<deploy-token-user>:<deploy-token>@gitlab.com/api/v4/projects/<project-id>/packages/pypi/simple" --extra-index-url "https://pypi.org/simple"
sitaka server
Then open http://127.0.0.1:8000/docs. See docs/gitlab-package-registry.md.
For local development from this repository:
python -m venv .venv
.venv\Scripts\activate
pip install -e ".[dev,deploy,parquet]"
Optional boosted model backends:
pip install -e ".[boosting]"
If the sitaka command is unavailable:
python -m sitaka_api --help
Five-Minute Demo
Run the included Iris classification example:
sitaka run --config examples/tabular_classification/sitaka.yaml
SITAKA will:
- Load
examples/tabular_classification/iris.csv. - Generate an EDA report.
- Train candidate models.
- Save the best model bundle.
- Log MLflow artifacts when enabled.
- Generate a deployable FastAPI service.
Expected outputs:
sitaka_artifacts/
reports/eda_report.md
metrics.json
models/best_model/model.joblib
models/best_model/metadata.json
sitaka_deployment/
model_bundle/
serve.py
requirements.txt
Dockerfile
docker-compose.yml
.env.example
Run a local prediction:
sitaka predict `
--bundle sitaka_artifacts/models/best_model `
--record sepal_length=5.1 `
--record sepal_width=3.5 `
--record petal_length=1.4 `
--record petal_width=0.2
Create Your Own Project
Create an interactive config:
sitaka init
For automation:
sitaka init --defaults
Minimal sitaka.yaml:
project_name: churn-demo
task: tabular_classification
artifacts_dir: sitaka_artifacts
data:
source: data/churn.csv
format: csv
target: churn
automl:
enabled_models:
- random_forest
- extra_trees
- gradient_boosting
- linear
n_trials: 25
mlflow:
enabled: true
experiment_name: sitaka-api
tracking_uri: file:./mlruns
deployment:
framework: fastapi
output_dir: sitaka_deployment
Run stage by stage:
sitaka profile --config sitaka.yaml
sitaka train --config sitaka.yaml
sitaka evaluate --config sitaka.yaml
sitaka deploy --config sitaka.yaml --framework fastapi
Or run everything:
sitaka run --config sitaka.yaml
Product API Mode
Start the enterprise product API:
sitaka server --host 127.0.0.1 --port 8000
Open either page:
http://127.0.0.1:8000
http://127.0.0.1:8000/docs
The root page returns a readable JSON welcome message with links to the API docs and health checks. If sitaka server is not found, reinstall the local editable package:
.venv\Scripts\activate
pip install -e ".[dev,deploy,parquet]"
python -m sitaka_api server
Core endpoints:
GET /v1/healthGET /v1/readyPOST /v1/projectsGET /v1/projects/{project_id}POST /v1/projects/{project_id}/profilePOST /v1/projects/{project_id}/trainGET /v1/jobs/{job_id}GET /v1/modelsGET /v1/models/{model_id}POST /v1/models/{model_id}/predictPOST /v1/models/{model_id}/deployments
Enable local API key auth:
$env:SITAKA_API_KEY = "change-me"
sitaka server
Then send:
X-API-Key: change-me
Remote Server Usage Without Local Install
Users do not need SITAKA installed on their local PC. You have two remote-first options.
Option 1: No Docker, Remote Python Virtualenv
This is the easiest path if Docker is not comfortable.
Push the repo to GitHub, then run this on a remote Linux/macOS server:
SITAKA_REPO_URL=https://github.com/<your-github-user-or-org>/<your-repo>.git sh -c "$(curl -fsSL https://raw.githubusercontent.com/<your-github-user-or-org>/<your-repo>/main/scripts/remote-install.sh)"
For a Windows PowerShell server:
$env:SITAKA_REPO_URL="https://github.com/<your-github-user-or-org>/<your-repo>.git"; irm https://raw.githubusercontent.com/<your-github-user-or-org>/<your-repo>/main/scripts/remote-install.ps1 | iex
Then open:
http://<server-ip>:8000
http://<server-ip>:8000/docs
This clones the repo, creates .venv, installs SITAKA, and starts the API server.
Option 2: Docker Or Podman
Docker is optional. Podman is a good open-source alternative on Linux.
After pushing this repo to GitHub, GitHub Actions publishes:
ghcr.io/<your-github-user-or-org>/<your-repo>:latest
Run on any remote server with Docker:
docker run -d --name sitaka-api -p 8000:8000 -v sitaka_workspace:/workspace ghcr.io/<your-github-user-or-org>/<your-repo>:latest
Then open:
http://<server-ip>:8000
http://<server-ip>:8000/docs
For a secure API key:
docker run -d --name sitaka-api -p 8000:8000 -e SITAKA_API_KEY=change-me -v sitaka_workspace:/workspace ghcr.io/<your-github-user-or-org>/<your-repo>:latest
See docs/remote-deployment.md for one-line bootstrap scripts, Docker Compose, data upload, and GitHub package visibility.
See docs/no-docker-deployment.md for the no-Docker remote server setup, Podman alternative, and Codespaces option.
Python SDK
from sitaka_api.config import SitakaConfig
from sitaka_api.sdk import SitakaClient
client = SitakaClient("http://127.0.0.1:8000")
config = SitakaConfig(
project_name="iris-demo",
task="tabular_classification",
data={
"source": "examples/tabular_classification/iris.csv",
"format": "csv",
"target": "species",
},
automl={"enabled_models": ["linear"], "n_trials": 1, "cv_folds": 2},
mlflow={"enabled": False},
)
project = client.create_project(config, project_id="iris-demo")
job = client.train_project(project["project_id"])
model_id = job["result"]["model_id"]
prediction = client.predict(model_id, [{
"sepal_length": 5.1,
"sepal_width": 3.5,
"petal_length": 1.4,
"petal_width": 0.2,
}])
Example Gallery
The examples/ folder contains copy-ready projects:
| Example | Task | Status |
|---|---|---|
tabular_classification |
Iris species classification | End-to-end |
tabular_regression |
Housing price prediction | End-to-end |
nlp_classification |
Review sentiment | Baseline |
nlp_regression |
Ticket priority score | Baseline |
time_series_forecasting |
Daily sales forecast | Baseline |
image_classification |
Image manifest classification | Scaffold |
Every trained bundle can be generated as any supported deployment framework:
sitaka deploy --config examples/tabular_classification/sitaka.yaml --framework fastapi
sitaka deploy --config examples/tabular_classification/sitaka.yaml --framework flask
sitaka deploy --config examples/tabular_classification/sitaka.yaml --framework streamlit
sitaka deploy --config examples/tabular_classification/sitaka.yaml --framework django
Generated Service Contract
Generated apps expose:
GET /healthGET /readyGET /metadataGET /schemaPOST /predictPOST /predict/batch
Prediction payload:
{
"records": [
{
"sepal_length": 5.1,
"sepal_width": 3.5,
"petal_length": 1.4,
"petal_width": 0.2
}
]
}
Documentation
docs/index.md: documentation map and reading path.docs/architecture.md: product architecture and module boundaries.docs/api.md: FastAPI product API reference.docs/configuration.md: completesitaka.yamlguide.docs/deployment.md: generated service deployment guide.docs/gitlab-package-registry.md: private GitLab package registry publishing and install.docs/operations.md: running SITAKA as a product API.docs/no-docker-deployment.md: no-Docker remote server install with one command.docs/pypi-publishing.md: publish package so users can runpip install sitaka-api.docs/remote-deployment.md: running SITAKA on a server without local Python install.docs/sdk.md: Python SDK usage.docs/security.md: auth, roles, and audit behavior.docs/roadmap.md: roadmap toward advanced MLOps and 2026 AI capabilities.
Development
pip install -e ".[dev,deploy,parquet]"
python -m pytest
python -m ruff check .
Current verification target:
- Unit tests for config, examples, workflow services, generated services, and platform API.
- API integration tests with FastAPI
TestClient. - Ruff linting.
Roadmap Highlights
Near-term priorities:
- Data quality reports and quality gates.
- Batch prediction command for CSV/Parquet inputs.
- Explainability artifacts for tabular models.
- Model promotion workflow: staging to production.
- Pipeline generators for Airflow and Dagster.
- Drift monitoring and retraining triggers.
- Plugin system for custom connectors, models, and deployers.
See docs/roadmap.md for the full roadmap.
Metadata
Release files for sitaka-api 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sitaka_api-0.1.0.tar.gz | 33.6 kB | Without provenance | Details for sitaka_api-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sitaka_api-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sitaka_api-0.1.0-py3-none-any.whl |
Total release size: 66.4 kB
Release files / sitaka_api-0.1.0.tar.gz
| Download URL | sitaka_api-0.1.0.tar.gz |
|---|---|
| Size | 33.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f7ead00515f1c51a53c2049562a53e1ce2c46f955dfe0b7de1b228e988444fd
|
|
BLAKE2b-256 checksum How to use checksums |
ebf08933bf8959f903e0d73f526cbc4aec303a43a4ebe368d1c0e6f8369ace3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / sitaka_api-0.1.0-py3-none-any.whl
| Download URL | sitaka_api-0.1.0-py3-none-any.whl |
|---|---|
| Size | 32.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7be37a45efce08d27b6831a56fbf0650e362278d19b463add6362cc689e06583
|
|
BLAKE2b-256 checksum How to use checksums |
cca79de4505c1ad4ffde84b98341c9cf02b3575aacda05bb6c2a6a114e9db803
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for sitaka-api 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.