Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python API Project Template

Build Workflow

This project bootstraps a template to create toy Python API.

Requirements

  • Docker
  • Python > 3.10
  • Poetry as dependency management tool. If you need to change some library version from pyproject.toml, run poetry lock.

Then run poetry env info -p to make sure the environment setup was done properly.

Development

  1. For every change in the pyproject.toml run poetry.lock
  2. Run poetry install to install the dependencies to a new environment
  3. Run source $(poetry env info --path)/bin/activate to activate the poetry environment (Tested on MacOS)

Makefile Commands

  • make format_code: rewrites source code using black and isort to keep it in the standard format
  • make lint: checks the source code for syntax violations
  • make test: Run unit tests
  • make run: FastAPI will be up at http://localhost:8000/

Documentation

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages