Skip to content

pierrekarpov/RestfulDataScience

Repository files navigation

RestfulDataScience

A Flask project to do data science through REST API

Getting Started

Clone this project on your machine to have the code necessary to run this project locally.

Prerequisites

You will need Python, pip, and virtualenv to get this project started. Install Python and pip here: Python pip

Then use pip to install virtualenv

$ pip install virtualenv

Installing

To install the necessary packages, you can simply run

$ pip install -r requirements.txt

However, it is recommended to created an environment so that those imports are specific to this project Create your environment

$ virtualenv <YOUR_ENV_NAME>

Activate your environment

$ source <YOUR_ENV_NAME>/bin/activate

Install packages

$ (YOUR_ENV_NAME) pip install -r requirements.txt

To deactivate your environment

$ (YOUR_ENV_NAME) deactivate

To launch the Flask app, run

FLASK_APP=application.py flask run

Then head over to (http://localhost:5000/predict) to test different classifiers over the wine data provided by scikit-learn

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A Flask project to do data science through REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published