Comparison
igwn-segments vs intervals vs intervaltree vs portion
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Representations of semi-open intervals
Actively maintained. Last release 3 weeks ago. A safe choice.
pip install igwn-segmentsPython tools for handling intervals (ranges of comparable objects).
Likely abandoned. No release or commit for years (last release over 5 years ago).
pip install intervalsEditable 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 intervaltreePython data structure and operations for intervals
Maintained. Last release 2 months ago, commits in 5 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install portionIn short
- intervals looks abandoned: avoid it for new projects.
- intervaltree is the most used: 5.7M downloads a month, 2.6× more than portion.
- igwn-segments is better maintained: Pythie’s Index 74 against 31.
- portion is growing fastest: downloads +15% over the last month.
- igwn-segments is the newcomer: first released Dec 2024.
Side by side
| Metric | igwn-segments | intervals | intervaltree | portion |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 74 | 16 |