Skip to main content

case insensitive dict for modern python

Project description

dictim

Case-insensitive dict keys. Like a dict, but keys are case-insensitive.

  • Supports unicode
  • Supports pydantic (handy for JSON serialization)

Name comes from dict, case-insensitive, mapping.

Usage

pip install dictim

Example

from dictim import dictim

favorites = dictim({"Hamm": "bass", "Skolnick": "guitar", "Björk": "vocal", "MOTÖRHEAD": "band"})

# access values with case insensitivity, including unicode
print(favorites["hamm"])  # bass
print(favorites["skolnick"])  # guitar
print(favorites["björk"])  # vocal
print(favorites["Motörhead"])  # band

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

dictim-0.2.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file dictim-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: dictim-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for dictim-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4c508f3fb3872ac2b372001fa4c3ca2f3cde6f5de6f70c122110f2fdde6ba666
MD5 4519178325c73982b247acc788bd290c
BLAKE2b-256 d57fbe4def45ca044020b9d1de60b97b8bb23048e410b40ddeebef7c3ce8ea5d

See more details on using hashes here.

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