Cached Searching

Node Searching with Cache.

Note

These functions require https://pypi.org/project/fastcache/, otherwise caching is not active.

anytree.cachedsearch.findall(node, filter_=None, stop=None, maxlevel=None, mincount=None, maxcount=None)[source]

Identical to search.findall but cached.

anytree.cachedsearch.findall_by_attr(node, value, name='name', maxlevel=None, mincount=None, maxcount=None)[source]

Identical to search.findall_by_attr but cached.

anytree.cachedsearch.find(node, filter_=None, stop=None, maxlevel=None)[source]

Identical to search.find but cached.

anytree.cachedsearch.find_by_attr(node, value, name='name', maxlevel=None)[source]

Identical to search.find_by_attr but cached.