Skip to main content

A Flask extension for running machine learning code

Project description

Flask-ML

codecov

Flask-ML helps users easily deploy their ML models as a web service. Flask-ML Server, similar to Flask, allows the user to specify web services using the decorator pattern. But Flask-ML allows users to specify the input schema being expected by the ML function and provides helper classes to form response objects for the outputs produced by the ML function. Furthermore, users can specify schemas for their inputs and outputs in order to expose their model via the frontend provided by RescueBox-Desktop.

Installation

To install Flask-ML

pip install flask-ml

Usage examples

Server

Refer simple_server.py, more_server_examples.py, and simple_cli.py

Client

Refer client_example.py

Development

Install both production and dev dependencies

pip install -e ".[dev]"

To re-generate the model classes, run

make generate-models

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

flask_ml-0.2.5.tar.gz (800.0 kB view hashes)

Uploaded Source

Built Distribution

flask_ml-0.2.5-py3-none-any.whl (20.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page