Skip to main content

Doing weird things with dicts.

Project description

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.

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

weirdict-0.3.0.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file weirdict-0.3.0.tar.gz.

File metadata

  • Download URL: weirdict-0.3.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for weirdict-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c24308b2fbdf61b0a9f4f9ebc70e1c62ee61fbc170320aa57c7873238296b4c9
MD5 662926bf41927c379ca37d60dde72f0d
BLAKE2b-256 2177a84c9793b12b572612ea34506e7b71d23fd11fa393e489a8c3ccaf475a60

See more details on using hashes here.

Supported by

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