ml-tooling/opyrator

🪄 Turns your machine learning code into microservices with web API, interactive GUI, and more.

What it solves

Opyrator simplifies the process of turning Python functions into production-ready microservices. It removes the manual effort required to build web APIs, create user interfaces, and handle deployment packaging for Python code, allowing developers to share and productize their logic quickly.

How it works

Opyrator uses Python type hints and Pydantic models to define the input and output schemas of a function. It then leverages FastAPI to automatically generate a REST API (OpenAPI standard) and Streamlit to generate an interactive web UI based on those schemas. Users can launch these services via a command-line interface (CLI) or export them as portable zip files and Docker images for deployment.

Who it’s for

It is designed for Python developers and ML engineers who want to quickly deploy their functions as accessible services without writing boilerplate code for APIs or front-end interfaces.

Highlights

  • Auto-generated API: Instantly creates an HTTP API based on FastAPI.
  • Auto-generated UI: Creates a web interface using Streamlit based on function schemas.
  • Portable Export: Services can be saved as self-contained executable zip files or Docker images.
  • Flexible Execution: Functions can be called via the web UI, HTTP API, or directly through the CLI.
  • Component Reuse: Supports reusing pre-defined components and combining existing Opyrators.

Related

  • Project
  • Project
  • Project
  • Project
  • Project