# rayking99/cqd architecture

> Architecture diagram of the GitHub repository rayking99/cqd, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rayking99/cqd
- Repository: https://github.com/rayking99/cqd

## Overview

##### Main Components

a) Core Components:
- Input Handler (Object Receiver)
- Attribute Analyzer
- Output Renderer

b) Supporting Components:
- Type System Integration
- Object Introspection Module

**┌─────────────────┐**
- cqd() / cqd2() │ (Public API Functions)
- ┘

**┌─────────────────┐    ┌─────────────────┐**
- Object          │ -> │ Attribute       │
- Introspection   │    │ Classification  │
- ┘    └─────────────────┘

- v                      v
**┌─────────────────┐    ┌─────────────────┐**
- (for cqd2)      │    │ Logic           │
- ┘    └─────────────────┘

**┌─────────────────┐**
- Output Renderer │
- ┘

##### Key Relationships to Highlight

**┌─────────────── Attribute Classification ──────────────┐**
- • Dunder Methods     → Blue                          │
- • Protected (_)      → Yellow                        │
- • Public            → Green                          │
- ┘

##### Implementation Details to Note

- Relationship between cqd() and cqd2() functions
- Where type information is processed (specifically for cqd2)

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Entry
        API["Public API Functions<br/>(cqd/cqd2)"]:::entry
    end

    subgraph Core
        OI["Object<br/>Introspection"]:::core
        AC["Attribute<br/>Classification"]:::core
        TA["Type Analysis<br/>(for cqd2)"]:::support
        CL["Color Coding<br/>Logic"]:::core
    end

    subgraph Output
        CR["Colored Console<br/>Output Renderer"]:::output
    end

    subgraph "Attribute Classification Rules"
        ACR["• Dunder Methods → Blue<br/>• Protected (_) → Yellow<br/>• Public → Green"]:::rules
    end

    %% Relationships
    API --> OI
    OI --> AC
    AC --> CL
    TA --> CL
    OI --> TA
    CL --> CR

    %% Click Events
    click API "https://github.com/rayking99/cqd/blob/master/src/cqd/__init__.py"
    click OI "https://github.com/rayking99/cqd/blob/master/src/cqd/core.py"
    click AC "https://github.com/rayking99/cqd/blob/master/src/cqd/core.py"
    click TA "https://github.com/rayking99/cqd/blob/master/src/cqd/core.py"
    click CL "https://github.com/rayking99/cqd/blob/master/src/cqd/core.py"

    %% Legend
    subgraph Legend
        L1["Core Component"]:::core
        L2["Supporting Component"]:::support
        L3["Entry/Output Component"]:::entry
        L4["Rules/Documentation"]:::rules
    end

    %% Styles
    classDef core fill:#3498db,stroke:#2980b9,color:white
    classDef support fill:#f1c40f,stroke:#f39c12,color:black
    classDef entry fill:#2ecc71,stroke:#27ae60,color:white
    classDef output fill:#2ecc71,stroke:#27ae60,color:white
    classDef rules fill:#ecf0f1,stroke:#bdc3c7,color:black
```
