Skip to main content

frozenintset

FrozenIntSet is an immutable, memory-efficient set of integers. It fully conforms to collections.abc.Set[int] and stores values as a sorted list of non-overlapping ranges.

from frozenintset import FrozenIntSet

s = FrozenIntSet({-5, -4, -3, -2, 4, 9, 10, 20, 21, 22})

Why frozenintset?

✅ Immutable and hashable (usable as dict keys or cache keys)

✅ Efficient for both dense and sparse integer sets

✅ Fast membership testing, iteration, slicing, and set operations

✅ Supports arbitrary-size integers (no 64-bit limit)

Alternatives

intset
A highly optimized, trie-backed implementation.
⚠️ Limited to 64-bit unsigned integers only.
rangeset
Supports open and unbounded ranges and arbitrary types. More general, but frozenintset is faster for plain integers.

Metadata

Release files for frozenintset 0.1.3

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

Source distribution (sdist)

Source distribution for frozenintset 0.1.3
File Size Uploaded Provenance Actions
frozenintset-0.1.3.tar.gz 31.0 kB With provenance Details for frozenintset-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for frozenintset 0.1.3
File Interpreter ABI Platform Actions
frozenintset-0.1.3-py3-none-any.whl Python 3 none any Details for frozenintset-0.1.3-py3-none-any.whl

Total release size: 37.1 kB

Release files / frozenintset-0.1.3.tar.gz

Download URL frozenintset-0.1.3.tar.gz
Size 31.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6a73870e0187b6ad5dc00aec35312893a60389f36964a850caffc5e83dfb7f27
BLAKE2b-256 checksum
How to use checksums
90a9df9498b613bda7990c674ee51d819b94d9d369f128bab7dfc233fc57150d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 30, 2025.

Transparency log

Release files / frozenintset-0.1.3-py3-none-any.whl

Download URL frozenintset-0.1.3-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6e4015d7e600ce7ece8492383d07d0c6ee134eae0960f0019df786d9085d14e
BLAKE2b-256 checksum
How to use checksums
51ce80a8f64c2f1593475e30de06b550b087339c1936a8cdd4dc0d4d837b95e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 30, 2025.

Transparency log

Security for frozenintset 0.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for frozenintset-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 30, 2025.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files Full provenance

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