Python Sorted Collections
Project description
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
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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sortedcollections-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b07abbc73472cc459da9dd6e2607d73d1f3b9309a32dd9a57fa2c6fa882f4c6c |
|
MD5 | 67d544882327b01f76471ad60cf59da7 |
|
BLAKE2b-256 | 6e39c993a7d0c9dbf3aeca5008bdd00e4436ad9b7170527cef0a14634b47001f |