Skip to main content

intervalpy

Tests

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

Metadata

Release files for intervalpy 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for intervalpy 0.1.0
File Size Uploaded
intervalpy-0.1.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for intervalpy 0.1.0
File Interpreter ABI Platform
intervalpy-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.2 kB

Release files / intervalpy-0.1.0.tar.gz

Download URL intervalpy-0.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
476725a50dae5b24c7ed4b284dff212e32f37a4bdfc60891e5747da576d6268f
BLAKE2b-256 checksum
How to use checksums
cccbeb636053e1e07d563953985a79ca49be4daf1be9e095edcfe671d442b5f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/2.7.16 Darwin/19.6.0

Release files / intervalpy-0.1.0-py3-none-any.whl

Download URL intervalpy-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54ec7756483b13beea3a2f87d6e3bc280d218108f8721249c3f638537ed6c358
BLAKE2b-256 checksum
How to use checksums
5589061b5b00c39808feb788b5e4ac189f95d57c949560b53e85992461537fec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/2.7.16 Darwin/19.6.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page