Skip to main content

Sorted Collections is an Apache2 licensed Python sorted collections library.

Features

  • Pure-Python

  • Depends on the Sorted Containers module.

  • ValueSortedDict - Dictionary with (key, value) item pairs sorted by value.

  • ItemSortedDict - Dictionary with key-function support for item pairs.

  • NearestDict - Dictionary with nearest-key lookup.

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

  • Developed on Python 3.9

  • Tested on CPython 3.6, 3.7, 3.8, and 3.9

https://github.com/grantjenks/python-sortedcollections/workflows/integration/badge.svg https://github.com/grantjenks/python-sortedcollections/workflows/release/badge.svg

Quickstart

Installing Sorted Collections 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)  # doctest: +SKIP

Recipes

Reference and Indices

Sorted Collections License

Copyright 2015-2021 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 files for sortedcollections 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sortedcollections 2.1.0
File Size Uploaded
sortedcollections-2.1.0.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sortedcollections 2.1.0
File Interpreter ABI Platform
sortedcollections-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.8 kB

Release files / sortedcollections-2.1.0.tar.gz

Download URL sortedcollections-2.1.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d8e9609d6c580a16a1224a3dc8965789e03ebc4c3e5ffd05ada54a2fed5dcacd
BLAKE2b-256 checksum
How to use checksums
01006d749cc1f88e7f95f5442a8abb195fa607094deba9e0475affbfb7fa8c04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / sortedcollections-2.1.0-py3-none-any.whl

Download URL sortedcollections-2.1.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b07abbc73472cc459da9dd6e2607d73d1f3b9309a32dd9a57fa2c6fa882f4c6c
BLAKE2b-256 checksum
How to use checksums
6e39c993a7d0c9dbf3aeca5008bdd00e4436ad9b7170527cef0a14634b47001f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.1

2 release files

1.2.3

2 release files

1.2.1

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.0.1

2 release files

0.6.1

2 release files

0.5.3

2 release files

0.4.2

2 release files

0.4.1

1 release file

0.3.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page