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.7.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.7-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for dataknobs_structures-1.0.7.tar.gz
Algorithm Hash digest
SHA256 afa53f758e992d64b6244398eb3164c60ae5577ef43e0606e4da73fa92bee1b6
MD5 96a40ac67b441754e50a78360b0664d1
BLAKE2b-256 dc3171c2777438b43f5cf8a0f2cefb1f4c7cdafce70257c134c1594d4b7427d8

See more details on using hashes here.

File details

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

File metadata

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

Hashes for dataknobs_structures-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5a8fe57d900f43c43c7f1d5c39ee4fd5f61eb64e9e0c663e6be182ddf1a4b674
MD5 d1d6d191a8b7fa01016fe2a18cc110cf
BLAKE2b-256 950189f57a742c3e6c58786aeda51bf5c193e85822e655e5544314c68589be4c

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