{"library":"portion","type":"library","category":null,"description":"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.","language":"python","status":"active","version":"2.6.1","tags":["interval","data-structure","time-series","ranges","discrete-math"],"install":[{"cmd":"pip install portion","imports":["from portion import Interval","from portion import IntervalDict","from portion import api"]}],"homepage":null,"github":"https://github.com/AlexandreDecan/portion","docs":null,"changelog":null,"pypi":"https://pypi.org/project/portion/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.6,"avg_import_s":0.13,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/portion/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Tue Jun 30","last_verified":"Tue Jun 30","next_check":"Thu Jul 30","install_tag":null}}