Flask-ML
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)
| File | Size | Uploaded | |
|---|---|---|---|
| flask_ml-0.2.5.tar.gz | 800.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|