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)
| 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 |