What however may not be as unified in response is how to actually arrange the imports.
Thankfully a best practise exists. Here we go.
First things first, here you should import any standard library import. That is packages that ship with your language of choice.
from math import sqrt from os.path import abspath
Right below you should import any third party libraries you use. This include any libraries that ship with your framework.
This is where you put in any code that you are reusing from within the app.
That is as a general heuristic import first items nearer to the core language.
How do you import in your own application? Talk to us in the comment section below.