Skip to main content

weirdict

This package offers a base implementation as well as several examples of “normalized dicts”.

A normalized dict is a python dictionary subclass whose keys are normalized through a particular function prior to insertion/modification/deletion.

Examples

The example classes provided include:

  • A dict whose normalization function can be passed in the constructor (and changed on-the-fly),

  • A case-insensitive dict,

  • a dict whose keys are truncated to a given length,

  • a dict whose keys are computed modulo N, where N is a given int.

Release files for weirdict 0.3.0

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

Source distribution (sdist)

Source distribution for weirdict 0.3.0
File Size Uploaded
weirdict-0.3.0.tar.gz 3.4 kB Details

Release files / weirdict-0.3.0.tar.gz

Download URL weirdict-0.3.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c24308b2fbdf61b0a9f4f9ebc70e1c62ee61fbc170320aa57c7873238296b4c9
BLAKE2b-256 checksum
How to use checksums
2177a84c9793b12b572612ea34506e7b71d23fd11fa393e489a8c3ccaf475a60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

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