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 gaussdb 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 = "gaussdb"

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.


License

This project is a fork of psycopg, originally developed by the Psycopg Team.

  • Original work: Copyright © 2020 The Psycopg Team

  • Modifications: Copyright © 2025 Huawei Cloud Developer Team

  • License: GNU Lesser General Public License v3.0 (LGPL v3)

isort-gaussdb inherits the same license. All modifications are distributed under the LGPL v3.

See the full license text in the LICENSE.txt file.


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_gaussdb-0.0.6-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file isort_gaussdb-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: isort_gaussdb-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.9

File hashes

Hashes for isort_gaussdb-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e1f41641a572e4105b47117f4d8f3f4d2349a2c4625390db75c55af97094fbd8
MD5 38e4defa760aede8c01e32b89b660a23
BLAKE2b-256 555c409f60251ee81b70b59fd89b0d0ce9f25f0f169f4f4bc2d8e7cdee2cfdb0

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