Data structures for AI knowledge bases
Project description
dataknobs-structures
Data structures for AI knowledge bases.
Installation
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
from dataknobs_structures import Tree, Document
# Create a tree structure
tree = Tree()
tree.add_node("root", "Root Node")
tree.add_node("child1", "Child 1", parent="root")
# Create a document
doc = Document(
content="Sample document content",
metadata={"author": "John Doe", "date": "2024-01-01"}
)
License
See LICENSE file in the root repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dataknobs_structures-1.0.5.tar.gz.
File metadata
- Download URL: dataknobs_structures-1.0.5.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a3f8faaa8fbb237d2228d24186d10a6f4449844f8e019070e70bfd0975fecff
|
|
| MD5 |
18d9a860b99127711eb4f7bfaee21c39
|
|
| BLAKE2b-256 |
28f4fb1c8a788e0acdc39b137d437b08defb45098cbb9ad28873596df46c862e
|
File details
Details for the file dataknobs_structures-1.0.5-py3-none-any.whl.
File metadata
- Download URL: dataknobs_structures-1.0.5-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13e2885bf2f84dc92b0d4cfd38cc8d13af85a0d7287b05c8094d3d9127db8fe0
|
|
| MD5 |
fae9fd440007ee810c0b68a48e80727a
|
|
| BLAKE2b-256 |
1bcce477a2cdbdd6621e828e65438377b2b67f2168db4777d02a58820180b094
|