{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/15"},{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/2"}],"enrichment":{"capability":"Provides Python classes for representing and manipulating intervals (ranges) of comparable objects with support for open, closed, and half-open bounds, and operations like intersection and containment checking.","skillfed_tags":["ranges","mathematics"],"use_cases":["Represent and validate time ranges or scheduling windows to check if a date falls within a booking or availability interval.","Define numeric ranges for data validation, filtering, or binning\u2014for example, categorizing sensor readings into interval buckets.","Build interval trees or perform range queries to test membership, overlap, or containment of comparable values.","Parse and manipulate human-readable interval notation from configuration files or user input using from_string.","Model mathematical or scientific computations involving bounded domains, such as function domains or parameter ranges."],"what_it_does":"intervals is a Python library for creating and working with mathematical intervals\u2014ranges defined by lower and upper bounds with configurable inclusion rules. It supports multiple interval types (IntInterval, FloatInterval, DateInterval, DateTimeInterval, etc.) and allows you to define open intervals (excluding endpoints), closed intervals (including both), or half-open variants. You can initialize intervals via factory methods like closed(), open_closed(), or from string representations like '[1, 5]' or '1 - 5'.\n\nThe library provides properties to query interval characteristics (length, radius, centre, whether it's degenerate or empty) and supports standard operations like containment checks and comparisons. Its single runtime dependency is infinity, a lightweight package for representing infinite bounds. The package is pure Python and installs with low friction, but has been abandoned since mid-2022, so it receives no maintenance or updates.","worth_installing":"Yes, if you need straightforward interval arithmetic and can accept an unmaintained package. The library is stable for its core use case and has no known vulnerabilities. However, do not adopt it for new projects requiring long-term support or compatibility with future Python versions\u2014the last commit was 2022-05-05 and no maintenance is expected. Suitable for legacy codebases or internal tools where you control the Python version."},"id":"intervals","links":{"html":"https://skillfed.io/packages/intervals","md":"https://skillfed.io/packages/intervals.md","pypi":"https://pypi.org/project/intervals/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2021-07-02","license_spdx":null,"license_treatment":"permissive","name":"intervals","python_support":"unspecified","summary":"Python tools for handling intervals (ranges of comparable objects)."},"popularity":{"monthly_downloads":245244,"position":8737,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.9.2"}
