Desktop App Productivity ★ 6,965 stars on GitHub

isort

An automated utility that organizes and sorts your Python code imports alphabetically and cleanly separates them by type.

Guide and Overview

What it does in plain English

Keeping Python code files clean and organized can be a tedious chore when done by hand. This handy tool automates the entire process by arranging your code imports alphabetically and dividing them into logical sections. It saves hours of manual sorting so developers can focus entirely on writing great features.

Who it’s for

  • Python software developers keeping large codebases clean and consistent.
  • Quality assurance engineers ensuring team code meets strict styling guidelines.
  • Open-source maintainers reviewing and formatting external code contributions.

Key features

  • Automatically sorts Python imports alphabetically and separates them by type.
  • Integrates directly into command-line workflows or popular text editors.
  • Checks files for proper formatting before committing changes to your project.
  • Customizes multi-line wrapping and grouping rules to fit your preferred style.
  • Compatible with modern Python releases while supporting older syntax formats.

How to install (Download)

You can install this tool directly using the standard Python package manager in your terminal:

pip install isort

Alternatively, browse pre-compiled binaries and official installers from the GitHub Releases Page.

Pros and Cons

  • Pros: Completely automates tedious code cleanup; highly customizable formatting options; integrates smoothly into existing workflows.
  • Cons: Requires a basic understanding of command-line tools or terminal navigation to set up initially.

Optional commercial services unrelated to the open-source developer. Clicking an #ad link helps fund HubHum at no extra cost to you.

  • ★ Top Recommended — Systeme.io: Free-forever all-in-one platform to build landing pages, newsletters, and automated workflows with zero monthly fees — Activate Systeme.io → (#ad)
  • AdGuard: Block intrusive ads, tracking scripts, and phishing domains system-wide across all browsers and desktop apps — AdGuard (#ad)
  • InterServer: Launch and host self-hosted web apps 24/7 on managed Linux cloud VPS servers starting at $3/month — InterServer (#ad)

Official Source & Credits: Official Source / Credits

Affiliate transparency (#ad): Some links on this page are affiliate links. If you choose to activate a service through them, we may earn a commission at no extra cost to you.

Your Saved Favorites

Your favorite apps are saved right here in this browser.


Sign in with one click to link your GitHub profile and sync favorites.