Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dataknobs_structures-1.0.2.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dataknobs_structures-1.0.2-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file dataknobs_structures-1.0.2.tar.gz.

File metadata

  • Download URL: dataknobs_structures-1.0.2.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"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

Hashes for dataknobs_structures-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d3606f4e02234ea0abf62a0544e9ed310b88c20c99994a8259d1463e3e7f8b71
MD5 0f0564e3ebd102c569cfa9e2173efe6e
BLAKE2b-256 7aecf174dd2e8f9d91d7c6e6cc5b94607804801121464675a48b127bbda70475

See more details on using hashes here.

File details

Details for the file dataknobs_structures-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: dataknobs_structures-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"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

Hashes for dataknobs_structures-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d9c0cc43ab79c78a2e21f5b09212fdaa66bbc55205b31dcee5e7c592965d0fa3
MD5 61538fd3ed0f0a9a555ff9dc1f2cd7d5
BLAKE2b-256 3514e42b02e4bcbd6d34f42f4f0d2ae612cdff49011c29a844cd3532053a302e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page