isort 2.6.2 版本改进了设置自定义缩进的方式, Improves the configuration mechanism for setting custom indent modes, 修复了引号的输出。
isort 可自动对 Python 的 import 语句进行排序和分段。可将大量的 import 结构转成非常适合阅读的排版。提供一个命令行工具、Python 库和 Kate 插件。
使用方法:
from isort import SortImports
SortImports("pythonfile.py")
isort 的详细介绍:请点这里
isort 的下载地址:请点这里
