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

Python Sorted Collections

Project Description

SortedCollections is an Apache2 licensed Python sorted collections library.

Features

  • 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.

Quickstart

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

http://www.apache.org/licenses/LICENSE-2.0

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

Release History

This version
History Node

0.5.3

History Node

0.4.2

History Node

0.4.1

History Node

0.3.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sortedcollections-0.5.3-py2.py3-none-any.whl (9.4 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Mar 28, 2017
sortedcollections-0.5.3.tar.gz (7.0 kB) Copy SHA256 Checksum SHA256 Source Mar 28, 2017

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting