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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file struct-tools-0.2.7.tar.gz.

File metadata

  • Download URL: struct-tools-0.2.7.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/19.6.0

File hashes

Hashes for struct-tools-0.2.7.tar.gz
Algorithm Hash digest
SHA256 018fc07716d35a128f818f07020fbb58ce65abc0d6e5f704c5dc44caeb61f4e0
MD5 64406adbee23bdaf3c7f5b2d01a9d038
BLAKE2b-256 c928705eadb36e8d5536de6f1a60297ca7bf959fc14e36407bedd501383f3a2c

See more details on using hashes here.

File details

Details for the file struct_tools-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: struct_tools-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/19.6.0

File hashes

Hashes for struct_tools-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 65924703f91f0a14ebfc864270eb7612615adeda4112c87e7c82ccbea1b5dac5
MD5 41708e72d5a3db06e033523dfeaa1e2e
BLAKE2b-256 3b3e6fe4ec5e48a5906d179549cbf044f17b8c515f5a2176a9f50c820c0e5d3d

See more details on using hashes here.

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