15from fastapi.responses import JSONResponse, FileResponse, RedirectResponse
16from mc_server_interaction.exceptions import ServerRunningException, WorldExistsException
17from mc_server_interaction.manager import ServerManager
18from starlette.middleware.cors import CORSMiddleware 19
20from mc_server_manager_api.models import *
21
Imports for the same package are scattered and not grouped together. It is recommended to keep the imports from the same package together. It makes the code easier to read.
Not preferred:
import os
import sys
from os import listdir
import time
from os.path import isfile, join
Preferred:
import os
from os import listdir
from os.path import isfile, join
import sys
import time