pushfoo / python-cawdrey

Several useful custom dictionaries for Python πŸ“–β€‚πŸ

Home Page:https://cawdrey.readthedocs.io/en/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cawdrey

Several useful custom dictionaries for Python πŸ“–β€‚πŸ

Docs Documentation Build Status Docs Check Status
Tests Linux Test Status Windows Test Status macOS Test Status Coverage
PyPI PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel
Anaconda Conda - Package Version Conda - Platform
Activity GitHub last commit Maintenance PyPI - Downloads
QA CodeFactor Grade Flake8 Status mypy status
Other License GitHub top language Requirements Status

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:

to this:

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.

Installation

Cawdrey can be installed from PyPI or Anaconda.

To install with pip:

To install with conda:

  • First add the required channels
  • Then install

And Finally:

Why "Cawdrey"?

About

Several useful custom dictionaries for Python πŸ“–β€‚πŸ

https://cawdrey.readthedocs.io/en/latest

License:GNU Lesser General Public License v3.0


Languages

Language:Python 99.0%Language:Just 0.5%Language:HTML 0.3%Language:CSS 0.2%