3. Api - isort (original) (raw)

Programmatic Python API Usage

In addition to the powerful command line interface, isort exposes a complete Python API.

To use the Python API, import isort and then call the desired function call:

Every function is fully type hinted and requires and returns only builtin Python objects.

Highlights include:

For a full definition of the API see the API reference documentation or try help(isort) from an interactive interpreter.