Skip to main content

Docs

Documentation Status

Tests

Travis Build Status Requirements Status Coverage CodeFactor Grade

PyPI

PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel

Anaconda

Conda - Package Version Conda - Platform

Other

License GitHub top language GitHub commits since tagged version GitHub last commit Maintenance

A collection of useful custom dictionaries for Python.

Contents

  • frozendict: An immutable dictionary that cannot be changed after creation.

  • FrozenOrderedDict: An immutable OrderedDict where the order of keys is preserved, but that cannot be changed after creation.

  • AlphaDict: A FrozenOrderedDict where the keys are stored in alphabetical order.

  • bdict: A dictionary where key, value pairs are stored both ways round.


This package also provides two base classes for creating your own custom dictionaries:

  • FrozenBase: An Abstract Base Class for Frozen dictionaries.

  • MutableBase: An Abstract Base Class for mutable dictionaries.


Other Dictionary Packages

If you’re looking to unflatten a dictionary, such as to go from this:

{'foo.bar': 'val'}

to this:

{'foo': {'bar': 'val'}}

check out unflatten, flattery or morph to accomplish that.

indexed provides an OrederedDict where the values can be accessed by their index as well as by their keys.

There’s also python-benedict, which provides a custom dictionary with keylist/keypath support, I/O shortcuts (Base64, CSV, JSON, TOML, XML, YAML, pickle, query-string) and many utilities.

And Finally:

Why Cawdrey?

Download files

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

Source Distribution

cawdrey-0.1.4.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

cawdrey-0.1.4-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file cawdrey-0.1.4.tar.gz.

File metadata

  • Download URL: cawdrey-0.1.4.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

File hashes

Hashes for cawdrey-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5a96126a75051125f9c2391241c384fc2301abffeb6cb93c20025093c0d03dba
MD5 b6524cb08150d1d269f45559c2f8db5c
BLAKE2b-256 874b48bc9ac64956a1829191120a7fb0805198c7aaba5ff9efd24b38e02b748d

See more details on using hashes here.

File details

Details for the file cawdrey-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: cawdrey-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

File hashes

Hashes for cawdrey-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 323b1c0e0ccc8316471a4e3a1168d4f091c420a212eac46223126824bff78bdf
MD5 cf697a940ccdc0fa8854a69e69794af1
BLAKE2b-256 2b2e6a50cd2dcfcbcaafccf3c2e30d3cbe5278cf3559dbfd7dcd52bc2c321104

See more details on using hashes here.

Release history Release notifications | RSS feed

0.5.1

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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