Skip to content

kv_walk: docs, tests, tools, and recipes #2

Description

@thorwhalen

Tools ideas

add_path_get and path.KeyPath are useful to get a "flat read access" from nested stores, but it's just for getting data: It's not enough to get a full KvReader (needs iter, len, contains) or KvPersister (needs del and set). kv_walk is relevant there. One could imagine a dol.trans.store_decorator that takes the same arguments as kv_walk (or a "kv_walker" object), and decorates the store in such a way as to offer a store whose keys are the paths of the kv_walk.

Related to the "flat stores" is this issue on hypercubic keys and issue on subscripting abilities.

dol.filesys deals with file/folder traversal with max_levels and isdir/isfile only, and these are somewhat baked in the code. One could envision a future for dol.filesys that would offer the same functionality, but also more, expanding the tree traversal aspects to anything involving path, key and value.

Other

Can see applications of remap for inspiration of applications.

┆Issue is synchronized with this Asana task by Unito

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestpriority: mediumTackle after high-priority items

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions