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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

intervalpy-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file intervalpy-0.1.0.tar.gz.

File metadata

  • Download URL: intervalpy-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/2.7.16 Darwin/19.6.0

File hashes

Hashes for intervalpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 476725a50dae5b24c7ed4b284dff212e32f37a4bdfc60891e5747da576d6268f
MD5 1f7b5b8b8a629561a77ea50906cfdab5
BLAKE2b-256 cccbeb636053e1e07d563953985a79ca49be4daf1be9e095edcfe671d442b5f1

See more details on using hashes here.

File details

Details for the file intervalpy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: intervalpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/2.7.16 Darwin/19.6.0

File hashes

Hashes for intervalpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54ec7756483b13beea3a2f87d6e3bc280d218108f8721249c3f638537ed6c358
MD5 67dc746ecb1913bb7fdd73255917c856
BLAKE2b-256 5589061b5b00c39808feb788b5e4ac189f95d57c949560b53e85992461537fec

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page