semvec/pypi-packages huggingface dataset:
interval-util 0.1.0
An interval set utility library.
License: MIT
Requires Python: >=3.5,<4
Keywords: interval,set

# interval-util
An interval set utility library.

# Installation

With [poetry](https://python-poetry.org):

```bash
poetry add interval-util
```

Or with pip:

```
pip3 install interval-util
```

# Usage

Have a look at the [documentation](https://diatche.github.io/interval-util-py/).

Basic usage:

```python
from interval_util import Interval

digits = Interval(0, 10, end_open=True)
ten_and_up = digits.get_gt()
positive_numbers = digits.get_gte()
assert ten_and_up.is_subset_of(positive_numbers)

assert positive_numbers.intersection(Interval.lt(10)) == digits
```