Preparing for system design interviews?  Try bugzed.com →

Portion Library for Python Intervals

JSON →
library 2.6.1 ·python
verified Jun 30, 2026

The portion library (current version 2.6.1) provides a robust data structure and operations for intervals in Python. It supports various types of intervals (closed, open, finite, semi-infinite) with any comparable objects, including interval sets (disjunctions of atomic intervals). The library offers automatic simplification, comparison, transformation, intersection, union, complement, difference, containment, and discrete iteration, along with a dict-like structure (`IntervalDict`) to map intervals to data. It is actively maintained with regular releases.

total hits 15
actors 4 distinct systems
last hit 16d ago AhrefsBot
GPTBot
4
ByteDance
3
Script
1
Humans
4

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · VN · 🇩🇪 Germany