Comparison
intervaltree vs ncls vs quicksectx vs sorted-nearest
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Editable interval tree data structure for Python 2 and 3
Low maintenance activity. Last release 11 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install intervaltreeA fast interval tree-like implementation in C, wrapped for the Python ecosystem.
Maintained. Last release 5 weeks ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install nclsQuicksect is a fast python / cython implementation of interval search.
Low maintenance activity. Last release 15 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install quicksectxFind nearest intervals.
Maintained. Last release 5 weeks ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install sorted-nearestIn short
- intervaltree is the most used: 5.7M downloads a month, 66× more than ncls.
- sorted-nearest is better maintained: Pythie’s Index 49 against 31.
- ncls is growing fastest: downloads +16% over the last month.
Side by side
| Metric | intervaltree | ncls | quicksectx | sorted-nearest |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 31 | 48 |