/cookiecutter-fastapi-ml

🍪 Cookiecutter for creating a simple FastAPI back-end, opinionated and ML oriented

Primary LanguagePython

Cookiecutter-fastapi-ml

Cookiecutter for creating a simple FastAPI back-end, opinionated and ML oriented

Quickstart

  • Install the latest Cookiecutter if you haven't installed it yet (this requires Cookiecutter 1.4.0 or higher):
$ pip install -U cookiecutter
  • Generate a Python package project:
$ cookiecutter https://github.com/pistocop/cookiecutter-fastapi-ml.git

FastAPI template features

  • poetry as Python dependency management
  • loguru as logger manager
  • Docker image based on official guidelines
  • Environment variables loader using .env file and official guidelines
  • ML models informations loaded from .json file from both App and download process

Credits

TODO

  • add cookiecutter tests
    • Note: Tests based on pytest-cookies
    • test license generated
    • test readme generated