isort is a Python utility/library to sort imports alphabetically, and automatically separated into sections and by type. It provides a command-line utility, Python library and plugins for various editors to quickly sort all your imports. It requires Python 3.6+ to run but supports formatting Python 2 code too. Several plugins have been written that enable to use isort from within a variety of text-editors. You can find a full list of them on the isort wiki. Additionally, I will enthusiastically accept pull requests that include plugins for other text editors and add documentation for them as I am notified. As of isort 3.1.0 support for balanced multi-line imports has been added. With this enabled isort will dynamically change the import length to the one that produces the most balanced grid, while staying below the maximum import length defined.

Features

  • Sort imports alphabetically
  • Automatically separate sorts into sections and by type
  • It provides a command line utility
  • Python library and plugins for various editors to quickly sort all your imports
  • Requires Python 3.6+ to run but supports formatting Python 2 code too
  • Several plugins have been written that enable to use isort from within a variety of text-editors

Project Samples

Project Activity

See All Activity >

Categories

Data Formats

License

MIT License

Follow isort

isort Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of isort!

Additional Project Details

Programming Language

Python

Related Categories

Python Data Formats Software

Registered

2022-02-09