A Range is an object resembling a set but optimised for contiguous ranges of int members.
Function overlap(span1, span2)
Return a list [start,end] denoting the overlap of two spans.
Example:
>>> overlap([1,9], [5,13])
[5, 9]
Class Range
A collection of ints that collates adjacent ints.
The interface is as for a set with additional methods:
spans(): return an iterable ofSpans, with.startincluded in eachSpanand.endjust beyond
Additionally, the update/remove/etc methods have a secondary
calling signature: (start,end), which is the same as passing
in Range(start,end) but much more efficient.
Class Span
MRO: Span, builtins.tuple
A namedtuple with .start and .end attributes.
Function spans(items)
Return an iterable of Spans for all contiguous sequences in
items.
Example:
>>> list(spans([1,2,3,7,8,11,5]))
[1:4, 7:9, 11:12, 5:6]
Metadata
Release files for cs.range 20190102
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 |
|---|---|---|---|---|
| cs.range-20190102.tar.gz | 5.9 kB | Without provenance | Details for cs.range-20190102.tar.gz |
Release files / cs.range-20190102.tar.gz
| Download URL | cs.range-20190102.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c72cd7f78aa889a758f8a50984300d5760dca54485561ebb78be0f818aba10d3
|
|
BLAKE2b-256 checksum How to use checksums |
53d7dd71c9ca82a154ac013691276ac0066982854594df01d8fd87c89afca5cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.6
|
Security for cs.range 20190102
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.