Skip to main content

isort plug-in to sort imports by module length first

Project description

This is an isort plugin implementing the style used in the Psycopg 3 project to sort:

  • imports in length order

  • import lists in natural order

The effect is the same of specifying --length-sort but only for the module names. For example:

from ccc import aaaa, bbb, cc
from bbbb import ddd, ee
from aaaaa import fff, gg

Example configuration:

[tool.isort]
profile = "black"
length_sort = true
multi_line_output = 9
sort_order = "psycopg"

Note: because this is the first day I use isort at all, there is a chance that this plug-in is totally useless and the same can be done using isort features.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isort_psycopg-0.0.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file isort_psycopg-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: isort_psycopg-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for isort_psycopg-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb6184ba0a7d7775b3918d0d123f216f9d6afe46cf02d54bfbfff0eddb67b878
MD5 29a7d169bdc016d79c41ca9c6b2db676
BLAKE2b-256 546ec1adfaca131dade4575763754a0a4c792018810f8d612b0aca13cf4af5b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page