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)
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
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
File details
Details for the file sortedcollections-0.5.3.tar.gz
.
File metadata
- Download URL: sortedcollections-0.5.3.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d56d6708e36aec959b08e64c3e5a0e01df518d6e6693d0f5b5c89529288edde6 |
|
MD5 | 24cee977cdb25e7851f9e35a05a13560 |
|
BLAKE2b-256 | c4c3a3883c9d5ef499e61bf0f7c5561ee13447d00a58392dcd81354ab04d4cf1 |
File details
Details for the file sortedcollections-0.5.3-py2.py3-none-any.whl
.
File metadata
- Download URL: sortedcollections-0.5.3-py2.py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11ca1e47112c8f25efcc83bbbfd4c59ed8c5addd26c4771e8b7ae6bb3573bfd2 |
|
MD5 | 18f2ffe6b15c0c1d4379a19f0627e6e1 |
|
BLAKE2b-256 | 90291b3d36f386153dc8e361f8062423cded080703c932564ec401c017d04043 |