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-1.0.0.tar.gz (6.2 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-1.0.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for case_insensitive_string_set-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ae40d799c7eb419997abb9ed346a295e53cce1a05e1502039f7bce07ab1a5f32
MD5 ace29173939c45ce7deab3011385a6e0
BLAKE2b-256 51e0bf3d38d5e6e44b6ad49266ca710c4f533cfb8845ddd8fabb4c22a0efbeb7

See more details on using hashes here.

Provenance

The following attestation bundles were made for case_insensitive_string_set-1.0.0.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-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for case_insensitive_string_set-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f702d3f223472959869c46bd68a62a18ea779a75217d8599468594e1569cd79f
MD5 4cee4d59acccbb00df5295372c133124
BLAKE2b-256 70a8ab9e51113a568ee69ba39c3f6d22ba0ecf22fc72ee8fd18191797c47d9c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for case_insensitive_string_set-1.0.0-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