Thaks for the great code example. the command to start example 2 API is > poetry run python api Hope this help someone