P
Analyzed 1 day ago
SortedContainers is an Apache2 Licensed containers library, written in pure-Python, and fast as C-extensions.
# Features
Pure-Python
Fully documented
Benchmark comparison (alternatives, runtimes, load-factors)
100% test coverage
Hours of stress testing
Performance matters (often faster
... [More]
than C implementations)
Compatible API (nearly identical to popular blist and rbtree modules)
Feature-rich (e.g. get the five largest keys in a sorted dict: d.iloc[-5:])
Pragmatic design (e.g. SortedSet is a Python set with a SortedList index)
Developed on Python 2.7
Tested on CPython 2.6, 2.7, 3.2, 3.3, 3.4 and PyPy 2.2+, PyPy3 2.3.1+ [Less]
6.58K
lines of code
2
current contributors
over 1 year
since last commit
1
users on Open Hub