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.

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.4.2.tar.gz (111.5 kB view details)

Uploaded Source

Built Distribution

sortedcollections-0.4.2-py2.py3-none-any.whl (9.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for sortedcollections-0.4.2.tar.gz
Algorithm Hash digest
SHA256 8aefd6cf0bb0a89888f192859c3dbf997b906b33cd4ce175d568fb972cfdb489
MD5 3e398c052a903daa2fce386997e72b4d
BLAKE2b-256 73bcdd4453078f8677c5969e328f6d51511798f4eab689f32c9f09723015edca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sortedcollections-0.4.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f183eb8dc6badc159fdfafc3fcb7001e1756144d1b9df3cadeea3b3bb4f3fb26
MD5 0a068ffb8d0f44d2e5bb77f85603013c
BLAKE2b-256 6e0f7403dabd7650995a268f928e3261eb31a2d2a1d9f62d3342507206b6790d

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