Skip to main content

Algorithms for traversing/flattening/constructing nested list structures

Project description

flatnest

View API documentation

Provides generators to traverse nested list structures either depth-first or breadth-first.

Can extract structural information from a nested list structure into a string structure pattern which can then be used in conjunction with the flattened list to reconstruct the original nested list structure.

Provides conversion between a flat index and its corresponding sequence of nested indices (and vice versa).

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

flatnest-1.0.2.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

flatnest-1.0.2-py3-none-any.whl (5.9 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