deciphon-intervals
It helps to model the two primary interval definitions in the programming realm: 0-start, half-open interval (aka Python interval), and 1-start, fully-closed interval (aka R interval).
Example
from deciphon_intervals import PyInterval, RInterval, Interval
x = [1, 2, 4, 8]
print(x[PyInterval(start=1, stop=3).slice])
print(x[RInterval(start=2, stop=3).slice])
# [2, 4]
# [2, 4]
interval: Interval = RInterval(start=2, stop=3)
print(interval.py)
print(interval.r)
# PyInterval(start=1, stop=3)
# RInterval(start=2, stop=3)
Metadata
Release files for deciphon-intervals 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| deciphon_intervals-1.0.0.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deciphon_intervals-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.3 kB
Release files / deciphon_intervals-1.0.0.tar.gz
| Download URL | deciphon_intervals-1.0.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0fcaafa46b2af4264a2fe7ed3574181f2b246f1a68ea0ce5060d52af8fabf2d
|
|
BLAKE2b-256 checksum How to use checksums |
dd1c4e071ef8de5054573a9298e7bda0e4304e1d945448ef4898f6846c82f898
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / deciphon_intervals-1.0.0-py3-none-any.whl
| Download URL | deciphon_intervals-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e70306d2fe39f056e297ad3420a667a53f72ab884492dc18819fba9234b23a0
|
|
BLAKE2b-256 checksum How to use checksums |
08297ae2d617df0b5cae010ccbe13f8871c826a437ecff5c1d1f678f9f3ea663
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|