Skip to main content

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

Release files for flask-ml 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flask-ml 0.2.5
File Size Uploaded
flask_ml-0.2.5.tar.gz 800.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flask-ml 0.2.5
File Interpreter ABI Platform
flask_ml-0.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 820.6 kB

Release files / flask_ml-0.2.5.tar.gz

Download URL flask_ml-0.2.5.tar.gz
Size 800.0 kB
Tags Source
SHA-256 checksum
How to use checksums
20169854c7bb70fe6f1b21f6065eab91374c98cc51a97a6f57147bd8eb165e78
BLAKE2b-256 checksum
How to use checksums
41d555f38788b44d9eba4f947235757a4d239f201fbb242e9d45eeb079754468
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.4

Release files / flask_ml-0.2.5-py3-none-any.whl

Download URL flask_ml-0.2.5-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8dcf090060d49ccc5d9085e6cbc85f47ecc6e589c88fcbe6ad3dd3dd738cc414
BLAKE2b-256 checksum
How to use checksums
9fa43f257e5a7c6cf6e045f1e9217297d00f3cecda8974c81668054c16caef82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page