Skip to main content

Tools for working with dicts (and lists)

Project description

struct-tools

Tools for working with data containers/structures, i.e. lists, dicts, classes.

  • Attribute-access and align-printed dicts.
  • Print functionality also provided as class to be subclassed.
  • Deep (nested) attribute access.
  • Transposing dict-of-dicts, list-of-lists, and mixed.
  • Dict intersection, complement.
  • Cartesian product.

TODO

  • Put DotDict and AlignedDict each in their own module

See alternatives:

Answer SO.com questions: https://www.google.com/search?q=python+aligned+dict&oq=python+aligned+dict

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

struct-tools-0.2.7.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

struct_tools-0.2.7-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

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