Skip to content

arashmad/fastapi-poetry-boilerplate

Repository files navigation

FastAPI Poetry Boilerplate

A boilerplate project for fastapi python project supported by poetry.

Resources

Poetry Python codecov

Poetry helps you declare, manage and install dependencies of Python projects, ensuring you have the right stack everywhere.

Installation

# Install Poetry
pipx install poetry
# Download the source code
git clone https://github.com/arashmad/fastapi-poetry-boilerplate.git
# Install dependencies
cd fastAPI-poetry-boilerplate
poetry install
# Activate virtual environment
poetry shell
# Test the code and installation
make lint && make test

Custom Usage

You can also use the project as a template for your own project. To do that you can use this bash file.

git clone https://gist.github.com/fb1f58c88710594df3ecdc5b3387f03b.git
chmod +x fastapi_boilerplate_builder.sh

Once you run it, you will be prompted for the following questions:

  • Directory of the cloned repository
  • Directory of the generated instance
  • Slug name

It generates an instance of the project for you and test it to make sure it is working.

After create a new repository on github (with the same slug name an without readme file) follow commands in your terminal to push your intance to github.

To make sure your instance is working you can see the action tabs on github page.

Developed and Maintained By

Arash Madadi

Full Stack Developer & Geospatial Expert

Deutsches GeoForschungsZentrum GFZ

Sektion 1.4 (Fernerkundung und Geoinformatik)

About

A boilerplate for fastapi python project supported by poetry.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published