Iterator for data classes
Project description
iteratedc - A small python iterator for python 3 dataclasses
iteratedc
is a small library used to iterate over python 3 dataclasses. It will not only traverse the low level, but will create the a tree-search diving down collections of dataclasses as well. If on each level, a dataclass is present it will follow these child nodes one level down.
You can choose between four operation modes:
- BFS (Breadth first search)
- DFS (Depth first search)
- Pre-Order
- In-Order
- Post-Order
- Reverse Pre-Order
- Reverse Post-Order
The result will not be the current node but a NodeElement carrying the current node.
These NodeElement
s accept visitors according to the visitor pattern.
Licensing
This library is published under BSD-3-Clause license.
Versioning
This library follows semantic versioning 2.0. Any breaking change will produce a new major release. Versions below 1.0 are considered to have a unstable interface.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for iteratedc-0.6.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97badd05582c47d53803ec4472f6a1f9413194d47bfede822a4b56bc10bb778d |
|
MD5 | ae959406f542093410882fc7af9f976f |
|
BLAKE2b-256 | fa7dcaacc9324c8f9a3d5a7f4a4f3a5cbf79d8962ed575fb055dc9a24b32ee78 |