Skip to content

whathecker/py-template-poetry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python api example project

Steps to run the api locally

1. Pre-requisites

Virtualenv
Python:         3.8.10
Implementation: CPython
Path:           /home/koelkast/.cache/pypoetry/virtualenvs/python-api-example-R7RR5aY2-py3.8
Valid:          True

System
Platform: linux
OS:       posix
Python:   /usr
  • Add the virtualenv path to your IDE's Python intepreter path

2. Install dependencies

  poetry install

3. Launch the app (from root folder of project)

  uvicorn src.main:app --reload
  Call the API running locally on: http://127.0.0.1:8000

Code formatting

Save brainpower and let the Black does the work.

Before commiting the code, run the following command:

  black ./src

The source code will be re-formatted by Black's sensible default config

About

Python template project with poetry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages