zope.sequencesort
Sequence Sorting
What it is and what it does
zope.sequencesort is a utility library for sorting sequences using multiple sort keys with fine-grained control over comparison behavior. It provides locale-aware string comparisons and per-key direction control, allowing you to sort complex data structures by multiple criteria in a single operation.
The package is part of the Zope ecosystem and is used primarily in web frameworks and applications that need sophisticated sorting logic. It has no external runtime dependencies beyond setuptools and installs as a pure Python wheel, making it lightweight to add to existing projects. The codebase is stable and actively maintained for current Python versions (3.9–3.13).
Use it for:
- Sort database query results by multiple columns with mixed ascending/descending directions.
- Order multilingual content by locale-specific string comparison rules.
- Build custom sorting logic for web application result sets with per-field sort preferences.
- Handle edge cases like None values or broken objects in sequence comparisons.
- Implement catalog-style sorting in Zope-based content management systems.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Sorts sequences by multiple keys with support for locale-based comparisons and per-key sort directions.
Yes, if you need multi-key sorting with locale support in a Zope context or similar framework. The package is stable, has no known vulnerabilities, and installs with minimal friction. However, if you're building new code outside the Zope ecosystem, Python's built-in sorted() with custom key functions may be simpler. Verify ZPL-2.1 license compatibility first.
Install
zope-sequencesort on PyPI
pip
pip install zope-sequencesortuv
uv add zope-sequencesortpoetry
poetry add zope-sequencesortInstalling zope.sequencesort
Before you install
Low friction to install; pure Python wheel with only setuptools as a runtime dependency. Last release was 336 days ago; maintenance status is aging but the package is marked Production/Stable and supports current Python versions (3.9–3.13).
License in practice
Licensed under Zope Public License (ZPL-2.1), which is OSI-approved. License treatment is marked unclear in the fact sheet; verify compatibility with your project's licensing requirements before use.
Quickstart
pip install zope.sequencesort
from zope.sequencesort import sort
data = [{'name': 'Alice'}, {'name': 'Bob'}]
sorted_data = sort(data, (('name', None, False),))
Requires Python 3.9 or later.
Verify before relying
- Exact API surface and available sort functions beyond the basic sort capability.
- Whether locale-based comparisons require the locale module to be pre-imported or are always available.
- Performance characteristics on large sequences or deeply nested sort keys.
- Concrete usage examples showing locale comparison and per-key direction control.
Package facts
| License | ZPL-2.1 (unclear) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — setuptools |
| Maintenance | aging — 336 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 127,863/month — #11,727 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: zope_sequencesort-6.0-py3-none-any.whl
Keywords: zope3, sequence, sort
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
zope.i18nProvides internationalization and localization…
unclear · top 15,000 on PyPI
natsortnatsort provides natural sorting for strings…
permissive · top 1,000 on PyPI
MultiMappingMultiMapping provides special mapping objects…
unclear · top 15,000 on PyPI
zope.configurationZope.configuration provides an extensible…
unclear · top 5,000 on PyPI
zope.datetimeParses and formats date/time strings in common…
unclear · top 15,000 on PyPI
zope.deferredimportDefers module imports until they are actually…
unclear · top 15,000 on PyPI
zope.exceptionsProvides general-purpose exception classes and…
unclear · top 15,000 on PyPI
zope.deprecationProvides a decorator and utilities to mark…
unclear · top 5,000 on PyPI
zExceptionszExceptions provides a collection of exception…
unclear · top 15,000 on PyPI
pyucaImplements the Unicode Collation Algorithm to…
permissive · top 15,000 on PyPI