Welcome to the DazzleTreeLib documentation! This guide will help you understand how to use the library, extend it with custom adapters, and maintain compatibility between sync and async implementations.
- Getting Started - Installation and basic usage
- API Reference - Complete API documentation
- Architecture Overview - Understanding the library design
- Caching Basics - 🆕 Beginner-friendly introduction to caching
- Caching Architecture - 🆕 Advanced caching details and configuration
- Adapter Development Guide - Creating custom adapters
- Sync/Async Compatibility - Maintaining dual API support
- Performance Guide - Optimization and benchmarking
- Examples - Complete working examples
- Node Tracking Optimization - Memory optimization history
- New to Caching? - Start here for concepts and examples
- Configure Caching - Settings and options
- Caching Examples - Real-world usage
- Performance Tuning - Optimize cache performance
DazzleTreeLib provides universal abstractions for tree operations:
- TreeNode: Represents any node in a tree structure
- TreeAdapter: Defines how to navigate a specific tree type
- Traverser: Implements traversal algorithms (BFS, DFS, etc.)
- DataCollector: Extracts data from nodes during traversal
The library provides both synchronous and asynchronous APIs:
# Synchronous
from dazzletreelib.sync import traverse_tree
# Asynchronous (3x+ faster!)
from dazzletreelib.aio import traverse_tree_asyncCreate adapters for any tree structure:
- Filesystems (local, network, cloud)
- Databases (hierarchical, graph)
- APIs (REST, GraphQL)
- Data structures (JSON, XML, AST)
See our Adapter Development Guide to learn how to contribute new adapters to the library.