Skip to content

Latest commit

 

History

History

docs

README.md

DazzleTreeLib Documentation

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.

Table of Contents

Core Documentation

  1. Getting Started - Installation and basic usage
  2. API Reference - Complete API documentation
  3. Architecture Overview - Understanding the library design

Caching System

  1. Caching Basics - 🆕 Beginner-friendly introduction to caching
  2. Caching Architecture - 🆕 Advanced caching details and configuration

Development Guides

  1. Adapter Development Guide - Creating custom adapters
  2. Sync/Async Compatibility - Maintaining dual API support
  3. Performance Guide - Optimization and benchmarking

Additional Resources

  1. Examples - Complete working examples
  2. Node Tracking Optimization - Memory optimization history

Quick Links

🆕 Caching Documentation

Development

Core Concepts

Tree Abstractions

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

Dual API Design

The library provides both synchronous and asynchronous APIs:

# Synchronous
from dazzletreelib.sync import traverse_tree

# Asynchronous (3x+ faster!)
from dazzletreelib.aio import traverse_tree_async

Extensibility

Create adapters for any tree structure:

  • Filesystems (local, network, cloud)
  • Databases (hierarchical, graph)
  • APIs (REST, GraphQL)
  • Data structures (JSON, XML, AST)

Getting Help

Contributing

See our Adapter Development Guide to learn how to contribute new adapters to the library.