Skip to content

DimitriZC/python-samples-fastapi-restful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧪 RESTful API with Python 3 and FastAPI

Status

Python CI Quality Gate Status Codacy Badge codecov CodeFactor codebeat badge

About

Proof of Concept for a RESTful API made with Python 3 and FastAPI.

Structure

Simplified, conceptual project structure and main application flow

Figure: Simplified, conceptual project structure and main application flow. Not all dependencies are shown.

Install

pip install -r requirements.txt pip install -r requirements-lint.txt pip install -r requirements-test.txt

Start

uvicorn main:app --reload --port 9000

Docs

http://localhost:9000/docs

API Documentation

Docker

This project includes a multi-stage Dockerfile for local development and production builds.

Build the image

docker build -t python-samples-fastapi-restful .

Run the container

docker run -p 9000:9000 python-samples-fastapi-restful:latest

Credits

The solution has been coded using Visual Studio Code with the official Python extension.

Terms

All trademarks, registered trademarks, service marks, product names, company names, or logos mentioned on this repository are the property of their respective owners. All usage of such terms herein is for identification purposes only and constitutes neither an endorsement nor a recommendation of those items. Furthermore, the use of such terms is intended to be for educational and informational purposes only.

About

🧪 Proof of Concept for a RESTful API made with Python 3 and FastAPI

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.7%
  • Dockerfile 8.7%
  • Shell 2.5%
  • JavaScript 1.1%