Skip to main content

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
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.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dataknobs_structures-1.0.17.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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.17.tar.gz
Algorithm Hash digest
SHA256 468c4d7be425fd212149a94735dea36f1473188303f62c0ff2311f9e3e7f5884
MD5 da18493a3023f15855d5d8a02bd22dea
BLAKE2b-256 fd2733b9ddc8583b23a22316899652213636560ac14389b6ab1a50c6cfe696d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dataknobs_structures-1.0.17-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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.17-py3-none-any.whl
Algorithm Hash digest
SHA256 79838fb7a120ed78eec43f89021d6f4e147dfe49334942bd18f9de029a6bb0e6
MD5 c12345e7cb7f222bda70eb9553fe377b
BLAKE2b-256 cb50aa8c64d09834a6eb7885426050f9dee5724b3b34e475e4de3776079f5fa8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.17 This release

2 files

1.0.16

2 files

1.0.15

2 files

1.0.14

2 files

1.0.13

2 files

1.0.12

2 files

1.0.11

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page