An interval set utility library.
Project description
intervalpy
An interval set utility library.
Installation
With poetry:
poetry add intervalpy
Or with pip:
pip3 install intervalpy
Usage
Have a look at the documentation.
Basic usage:
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
intervalpy-0.1.0.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for intervalpy-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54ec7756483b13beea3a2f87d6e3bc280d218108f8721249c3f638537ed6c358 |
|
MD5 | 67dc746ecb1913bb7fdd73255917c856 |
|
BLAKE2b-256 | 5589061b5b00c39808feb788b5e4ac189f95d57c949560b53e85992461537fec |