Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python Sorted Collections

Project Description

SortedCollections is an Apache2 licensed Python sorted collections library.


  • Pure-Python
  • Depends on the SortedContainers module.
  • ValueSortedDict - Dictionary with (key, value) item pairs sorted by value.
  • ItemSortedDict - Dictionary with key-function support for item pairs.
  • OrderedDict - Ordered dictionary with numeric indexing support.
  • OrderedSet - Ordered set with numeric indexing support.
  • IndexableDict - Dictionary with numeric indexing support.
  • IndexableSet - Set with numeric indexing support.
  • SegmentList - List with fast random access insertion and deletion.
  • 100% code coverage testing.
  • Tested on CPython 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, and 3.6.
  • Tested on PyPy and PyPy3.


Installing SortedCollections is simple with pip:

$ pip install sortedcollections

You can access documentation in the interpreter with Python’s built-in help function:

>>> from sortedcollections import ValueSortedDict
>>> help(ValueSortedDict)

SortedCollections License

Copyright 2015-2016 Grant Jenks

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Release History

This version
History Node


History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(9.4 kB) Copy SHA256 Hash SHA256
Wheel py2.py3 Mar 28, 2017
(7.0 kB) Copy SHA256 Hash SHA256
Source None Mar 28, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting