Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 960 Bytes

File metadata and controls

31 lines (24 loc) · 960 Bytes

struct-tools

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

  • AlignedDict: align-printed dicts
  • DotDict: attribute (dot) style access
  • NicePrint: provides __repr__ (for subclassing) via AlignedDict
  • Deep (nested) attribute access.
  • Transposing dict-of-dicts, list-of-lists, and mixed.
  • Dict intersection, complement.
  • Dict Cartesian product.

TODO

  • Improve (at least the docs of) disparate management of printopts
  • 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