Skip to content

patnr/struct-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Tools for dicts and other data containers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages