{"repo":"eightBEC/fastapi-ml-skeleton","free":true,"listed":false,"github":"https://github.com/eightBEC/fastapi-ml-skeleton","clone":"git clone https://github.com/eightBEC/fastapi-ml-skeleton.git","description":"FastAPI Skeleton App to serve machine learning models production-ready.","language":"Python","stars":604,"topics":["python","python3","fastapi","machine-learning","model-serving"],"license":"Apache-2.0","category":"machine-learning","readme_excerpt":"FastAPI Model Server Skeleton Serving machine learning models production-ready, fast, easy and secure powered by the great FastAPI by Sebastián Ramírez](https://github.com/tiangolo). This repository contains a skeleton app which can be used to speed-up your next machine learning project. The code is fully tested and provides a preconfigured tox to quickly expand this sample code. To experiment and get a feeling on how to use this skeleton, a sample regression model for house price prediction is included in this project. Follow the installation and setup instructions to run the sample model and serve it aso RESTful API. Requirements - Python 3.11+ - Poetry Installation Install the required packages in your local environment (ideally virtualenv, conda, etc.). Setup 1. Duplicate the .env.example file and rename it to .env 2. In the .env file configure the API KEY entry. The key is used for authenticating our API. A sample API key can be generated using Python REPL: Run It 1. Start your app with: 2. Go to http://localhost:8000/docs. 3. Click Authorize and enter the API key as created in the Setup step. 4. You can use the sample payload from the docs/sample payload.json file when trying out the house price prediction model using the API. Linting This skeleton code uses isort, mypy, flake, black, bandit for linting, formatting and static analysis. Run linting with: Run Tests Run your tests with: This runs tests and coverage for Python 3.11 and Flake8, Autopep8, Bandit. Changelog v.","default_branch":null,"files":null,"tree":[],"storefront":"/r/eightBEC","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/eightBEC/fastapi-ml-skeleton/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}