Metadata-Version: 2.5
Name: dataknobs-structures
Version: 1.0.17
Summary: Data structures for AI knowledge bases
Author-email: Spence Koehler <KoehlerSB747@gmail.com>
Requires-Python: >=3.12
Requires-Dist: dataknobs-common>=3.1.0
Requires-Dist: graphviz>=0.20.3
Requires-Dist: pandas>=2.2.3
Requires-Dist: pyparsing>=3.0.0
Description-Content-Type: text/markdown

# dataknobs-structures

Data structures for AI knowledge bases.

## Installation

```bash
pip install dataknobs-structures
```

## Features

- **ConditionalDict**: Dictionary with conditional value retrieval
- **Document**: Document representation with metadata
- **RecordStore**: Efficient record storage and retrieval
- **Tree**: Tree data structure with various traversal methods

## Usage

```python
from dataknobs_structures import Tree
from dataknobs_structures import Text, TextMetaData

# Create a tree structure
tree = Tree()
tree.add_node("root", "Root Node")
tree.add_node("child1", "Child 1", parent="root")

# Create a document
doc = Text(
    "Sample document content",
    TextMetaData(text_id="doc_001", author="John Doe", date="2024-01-01"),
)
```

## License

See LICENSE file in the root repository.