Skip to main content

Python Sorted Collections

Project description

https://api.travis-ci.org/grantjenks/sortedcollections.svg

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)

Recipes

Reference and Indices

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.

Project details


Download files

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

Source Distribution

sortedcollections-0.6.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

sortedcollections-0.6.1-py2.py3-none-any.whl (9.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sortedcollections-0.6.1.tar.gz.

File metadata

File hashes

Hashes for sortedcollections-0.6.1.tar.gz
Algorithm Hash digest
SHA256 5da97f7739c0053d3e4a3a3650471f1d6c2cea4efc29ff3f5d0dd989d8150404
MD5 ef56cd531b47773d8ddd1a0dd0cf1b0d
BLAKE2b-256 a729cd957d7350080712ba4c7fccbdd0742376597e80599c7e9d339da63e8532

See more details on using hashes here.

File details

Details for the file sortedcollections-0.6.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sortedcollections-0.6.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2db740467bbd611b2179bb5b201b8ab6b03190b9996670779f0d1831e9aa7e46
MD5 2f6f46e8a5a549ae949dd7d47ef05f84
BLAKE2b-256 b54bf39866bf9fb38860b5fa414660e2fd5b7e6d5cb6704f3bac2cdd2cd8f8ca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page