License: Your choice of MIT or Apache License 2.0
Rationale
Python Sets are nice to work with, but very inefficient if you need a large set with mostly-consecutive integers. The RangeSet class provides efficient handling and storage for these sets.
Non-integers?
RangeSet works with any class whose instances are
comparable
step-able, i.e. you can add 1 to them / subtract 1 from them.
discrete, i.e. there is no value between n and n+1.
RangeSet doesn’t add or subtract any other values, nor does it try to subtract two instances from each other.
The requirement to subtract 1 is an optimization that could be removed if necessary.
Metadata
Release files for range-set 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| range_set-0.3.3.tar.gz | 23.9 kB | Without provenance | Details for range_set-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| range_set-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for range_set-0.3.3-py3-none-any.whl |
Total release size: 34.0 kB
Release files / range_set-0.3.3.tar.gz
| Download URL | range_set-0.3.3.tar.gz |
|---|---|
| Size | 23.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d8cb72c2abfd7aab6ac00730020a204d633d29f1ed7ea32d52531108e52bcfd
|
|
BLAKE2b-256 checksum How to use checksums |
640a73670a9e60946a5295ea3137eb09f745d1bdfb9f3683b64968e6251563bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / range_set-0.3.3-py3-none-any.whl
| Download URL | range_set-0.3.3-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7eebfd08740dc6c2ff5d88a68d10ef130a809054f4d3cc10a0d696d63e03c755
|
|
BLAKE2b-256 checksum How to use checksums |
a4bf43e2860057d58a7de94fd6e161cde2f627edb4cfc126a5d4500c6a62bfdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Security for range-set 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.