User Guide:
Couldn’t be much simpler:
pip install pyfortiapi
Of course, if you’d rather install from source, you can find it here