Skip to main content

A set class for case-insensitive strings.

Project description

Case-insensitive string set

A Python package providing a set class for case-insensitive strings.

Useful for doing things like foo in bar where bar is a set of strings and you want the check to be case-insensitive, but also preserve the original casing of the strings in the set when iterating over it.

Examples

>>> c = CaseInsensitiveStringSet()
>>> c.add("a")
>>> 'a' in c
True
>>> 'A' in c
True
>>> 'b' in c
False
>>> list(c)
['a']
>>> c.add("A")
>>> list(c)
['a']

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

case_insensitive_string_set-0.0.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

case_insensitive_string_set-0.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file case_insensitive_string_set-0.0.1.tar.gz.

File metadata

File hashes

Hashes for case_insensitive_string_set-0.0.1.tar.gz
Algorithm Hash digest
SHA256 33877e47b5a0c797c6467d6b5d6aa0e5e5c265b9f8c69af2b679ea342901735c
MD5 7b0dd4f638832baff161b23a4b9aa4a2
BLAKE2b-256 4a7eb19d2c7ac018ef8e5771216823edd99dc9e140e76c6458b860b3d6679dac

See more details on using hashes here.

Provenance

The following attestation bundles were made for case_insensitive_string_set-0.0.1.tar.gz:

Publisher: publish.yml on AutoActuary/case_insensitive_string_set

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file case_insensitive_string_set-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for case_insensitive_string_set-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4aba103c251b438d4ec314cf0315a9ca9ca94438200c78d6683abe549e1c0914
MD5 866b3dc44965e8be3e8cd6eb24d5cafa
BLAKE2b-256 b555983af7bdb121793022f8bfd246aec88657275d3cd0729ce083f8ab2bd459

See more details on using hashes here.

Provenance

The following attestation bundles were made for case_insensitive_string_set-0.0.1-py3-none-any.whl:

Publisher: publish.yml on AutoActuary/case_insensitive_string_set

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page