opyrator

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

What is opyrator?

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

Overview of opyrator

What it is

Opyrator is a tool that turns Python functions into microservices with a web API, interactive GUI, and more. It builds on open standards such as OpenAPI, JSON Schema, and Python type hints, and is powered by FastAPI, Streamlit, and Pydantic. The project is in alpha version and suggested for experimental usage only.

Key features

  • Turns functions into production-ready services within seconds.
  • Auto-generated HTTP API based on FastAPI.
  • Auto-generated Web UI based on Streamlit.
  • Save and share as self-contained executable file or Docker image.
  • Reuse pre-defined components and combine with existing Opyrators.
  • Instantly deploy and scale for production usage.

Use cases

Opyrator can be used to productize and share Python code that can be wrapped into a single Python function. Examples provided in the repository include text generation, question answering, image super resolution, text preprocessing, language detection, audio separation, word vectors training, and named entity recognition.

Getting started

Requirements: Python 3.6+. Install with: bash pip install opyrator Create a Python file with an Opyrator-compatible function (input and output based on Pydantic models). Run the UI server: bash opyrator launch-ui my_opyrator:hello_world Run the HTTP API server: bash opyrator launch-api my_opyrator:hello_world See the repository README for more details.

License and pricing

The license is MIT. The project is open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/ml-toolingopyrator.svg)](https://yunodb.com/tools/ml-toolingopyrator?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/ml-toolingopyrator?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/ml-toolingopyrator.svg" alt="Featured on YunoDB" height="20"></a>