/api_in_python

Expose python machine learning project as REST API

Primary LanguagePythonMIT LicenseMIT


application API made with Python made with flask made with FastAPI

🚀 Simple Python API for ML project

  • This meta project consists of simple script which can be used to create machine learning API in python which includes separate template for creating preprocessing, training and prediction API along with logging and basic error handling facility.
  • The preprocessing, training, prediction module consists of dummy code which you can fill as per your wish.
  • The APIs are created in 2 different ways:
    • Bare flask API
    • Swagger based API

⭐ Simple api using flask

  • Kindly look into the simple_api/ directory here.

⭐ Swagger based api using FastAPI:

Swagger helps for API documentation which is quite helpful and a good practice.

  • Kindly look into the swagger_api/ directory here.

⭐ Override FastAPI/Uvicorn logger using Loguru

⭐ Implement FastAPI with Redis (message queue approach)


🔜 TODO