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 20160828

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 20160828
File Size Uploaded Provenance Actions
cs.range-20160828.tar.gz 5.7 kB Without provenance Details for cs.range-20160828.tar.gz

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

Download URL cs.range-20160828.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
976cca0ed881765eee3026989468de407a7be30ed6f4d89f795e078bb9242589
BLAKE2b-256 checksum
How to use checksums
5e82ab90e5307a18f6eed7baaa056bcf6547569332581251c2730422f7f318e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for cs.range 20160828

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