Registry / devops / poetry-plugin-sort

poetry-plugin-sort

JSON →
library0.3.0pypypiunverified

A Poetry plugin that automatically sorts dependencies alphabetically in pyproject.toml. Version 0.3.0 requires Python >=3.8, <4.0. Released under MIT license. Active development, infrequent releases.

pip install poetry-plugin-sort
INSTALL
IMPORT
SIG · POETRY-PLUGIN-SORT
P
poetry-plugin-sort
devopspythonv0.3.0
Install
8.4s avg
Import
Disk
90MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 86.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 8.4s · import 0.000s · 85MB
90MB installed
● package 90MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PoetrySortPlugin
from poetry_plugin_sort import PoetrySortPlugin
from poetry_plugin_sort.plugin import PoetrySortPlugin

Install the plugin globally for Poetry, then run 'poetry sort' to alphabetically sort the dependencies in pyproject.toml.

pip install poetry-plugin-sort poetry self add poetry-plugin-sort poetry sort
Debug
Known issues
gotchaAfter updating the plugin, you must run 'poetry self show plugins' to verify the plugin is active. If not listed, re-add with 'poetry self add poetry-plugin-sort'.
fix
Re-run 'poetry self add poetry-plugin-sort' after upgrading Poetry or the plugin.
affects: all
gotchaThe 'poetry sort' command only sorts dependencies in the [tool.poetry.dependencies] and [tool.poetry.dev-dependencies] sections, not other groups like [tool.poetry.group.*.dependencies].
fix
Manually sort other dependency groups or use a tool like 'toml-sort'.
affects: all
gotchaIf you installed the plugin via 'pip install' without using 'poetry self add', the plugin won't be recognized by Poetry. The correct installation method is 'poetry self add poetry-plugin-sort' (requires Poetry 1.2+).
fix
Run 'poetry self add poetry-plugin-sort' to properly register the plugin.
affects: all
Upgrade
Version history
0.3.0latest on PyPI · released Jan 6, 2025
Audit
Dependencies
poetryrequiredThis is a Poetry plugin; requires Poetry to be installed and the plugin to be added to Poetry's plugins.
Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
poetry-plugin-sort — pip install poetry-plugin-sort · libregistry