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

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
cs.range-20160828.tar.gz 5.7 kB Details

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

Release history Release notifications | RSS feed

This release

20160828 This release

1 release file

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