Create a new project with Poetry

We will start by creating a new project with Poetry. We will call our project pi-api.

poetry new --src pi-api

This will create a new project called pi-api with the following structure:

├── pi-api
   ├── src
   │   └── pi_api
   │       └── __init__.py
   ├── tests
   │   ├── __init__.py
   ├── pyproject.toml
   └── README.md

Poetry's new command

You can read more about Poetry's new command here.

Initiate a git repository:

git init

Finally add .gitignore file to the root of the project:

touch .gitignore