Skip to main content

Compact integer ranges with a set-like API

A Range is used to represent integer ranges, such a file offset spans.

Much of the set API is presented to modify and test Ranges, looking somewhat like sets of intergers but extended slightly to accept ranges as well as individual integers so that one may say “R.add(start, end)” and so forth.

Also provided:

  • Span, a simple start:end range.

  • overlap: return the overlap of two Spans

  • spans: return an iterable of Spans for all contiguous sequences in the ordered integers supplied

Metadata

Release files for cs.range 20150116

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

Source distribution (sdist)

Source distribution for cs.range 20150116
File Size Uploaded Provenance Actions
cs.range-20150116.tar.gz 5.2 kB Without provenance Details for cs.range-20150116.tar.gz

Release files / cs.range-20150116.tar.gz

Download URL cs.range-20150116.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5dbcb3b587a6f793ee59c1bbe35b0331e67e62d6991c4e0d9838773330ba63d9
BLAKE2b-256 checksum
How to use checksums
e0a5081332ed0f9839ecba92ff0935409f4b6a2586d077a013af1acaf2f7a8df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for cs.range 20150116

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.

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