Skip to main content

Python SDK for cyt-indexer — tool schema decomposition and catalog indexing

Project description

cyt-indexer-sdk

Python bindings for the cyt-indexer Rust library.

Platforms supported: Linux/Windows11/macOS CPU Architectures: x86/ARM

Development

cd sdk/python
uv sync
uv run maturin develop --release

Usage

from cyt_indexer import (
    PolicyContext,
    apply_tool_kind,
    build_catalog_from_tools,
    coordinate_bm25_prune,
    load_catalog,
    removed_chunks,
    retrieve_tools,
    scoring_policy_context,
)

full = load_catalog(".catalog")
surviving = ...  # survivors.json
removed = removed_chunks(full, surviving)

ctx = PolicyContext("prune_optional", "prune_all")
apply_tool_kind(ctx, "mcp")
scoring = scoring_policy_context(ctx)

result = coordinate_bm25_prune([], full, full, index, "query", scoring, ctx)

ensure_skills_registry accepts filesystem paths or inline hook/client payloads:

ensure_skills_registry(
    [{"path": "/virtual/skill.md", "content": "---\nname: x\n---\nBody", "content_sha256": "..."}],
    catalog_root,
    pageindex_config,
    pipeline,
    index_params_hash,
)

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

cyt_indexer_sdk-1.2.2.tar.gz (2.1 MB view details)

Uploaded Source

Built Distributions

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

cyt_indexer_sdk-1.2.2-cp312-abi3-win_arm64.whl (6.7 MB view details)

Uploaded CPython 3.12+Windows ARM64

cyt_indexer_sdk-1.2.2-cp312-abi3-win_amd64.whl (6.8 MB view details)

Uploaded CPython 3.12+Windows x86-64

cyt_indexer_sdk-1.2.2-cp312-abi3-manylinux_2_28_x86_64.whl (7.4 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ x86-64

cyt_indexer_sdk-1.2.2-cp312-abi3-manylinux_2_28_aarch64.whl (7.4 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ ARM64

cyt_indexer_sdk-1.2.2-cp312-abi3-macosx_11_0_arm64.whl (6.8 MB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

cyt_indexer_sdk-1.2.2-cp312-abi3-macosx_10_13_universal2.whl (13.8 MB view details)

Uploaded CPython 3.12+macOS 10.13+ universal2 (ARM64, x86-64)

File details

Details for the file cyt_indexer_sdk-1.2.2.tar.gz.

File metadata

  • Download URL: cyt_indexer_sdk-1.2.2.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cyt_indexer_sdk-1.2.2.tar.gz
Algorithm Hash digest
SHA256 9c1811631c7204e461200956e730fd5b6043bd5008aa71cd745ac6f9ef8a09d4
MD5 4e0cb59589cf33558d51c1aa0e1e1741
BLAKE2b-256 6d34186ecc1c45bb71b9f0679fb9add86a8e07d4b85caed79488f8bee5b24d1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyt_indexer_sdk-1.2.2.tar.gz:

Publisher: publish-pypi-sdk.yml on qdrddr/clear-your-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyt_indexer_sdk-1.2.2-cp312-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for cyt_indexer_sdk-1.2.2-cp312-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 dd4e52926b0f38e44c143d8f313f4afa17ccce92918f41aab9d94bf180419933
MD5 01ecae5316ea4f6d36544b1385aec62f
BLAKE2b-256 6b320989a0cde53728880998cb363aa4599ee499d64a3c80cf0fb89ae1a0c17e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyt_indexer_sdk-1.2.2-cp312-abi3-win_arm64.whl:

Publisher: publish-pypi-sdk.yml on qdrddr/clear-your-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyt_indexer_sdk-1.2.2-cp312-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for cyt_indexer_sdk-1.2.2-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 cda9cded58c1ba11a487be1a6fe1d86b131d644ed58d6c0d150086aa3d692312
MD5 d183af50e4fa51ceb04f86b6d3a4a037
BLAKE2b-256 199b0d0264d9560f844a842a9dac23613ca90ce63dd3871f0c50da3435d8f1e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyt_indexer_sdk-1.2.2-cp312-abi3-win_amd64.whl:

Publisher: publish-pypi-sdk.yml on qdrddr/clear-your-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyt_indexer_sdk-1.2.2-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cyt_indexer_sdk-1.2.2-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d0da57870b833b1910f04b3ff6f60de5fd6adecca667e9a0763344a96e1bda5c
MD5 099feabdbc1b378070e59ab04bdbbc05
BLAKE2b-256 5f9de8283906ec5d622ce28c2410f9b5623e6abed7eb0c329746d75908d79e0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyt_indexer_sdk-1.2.2-cp312-abi3-manylinux_2_28_x86_64.whl:

Publisher: publish-pypi-sdk.yml on qdrddr/clear-your-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyt_indexer_sdk-1.2.2-cp312-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cyt_indexer_sdk-1.2.2-cp312-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4558477bfe7f0bee871b62b6479379aedbfdc63cbdcddf52121ba913f0e7150f
MD5 8a0714e87e781233f7ab0a3a248ad347
BLAKE2b-256 94b64afc44323afe37631db0792908a817d82cac8a172a1ed162bb210e911286

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyt_indexer_sdk-1.2.2-cp312-abi3-manylinux_2_28_aarch64.whl:

Publisher: publish-pypi-sdk.yml on qdrddr/clear-your-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyt_indexer_sdk-1.2.2-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cyt_indexer_sdk-1.2.2-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b1078ef80ed873c56e0d3124e79344fde142e796be26deaa61e772a49aed49c
MD5 969a2df6f448e1a603b097b19218f154
BLAKE2b-256 2fac7ae724c061381e6a01c571d51c5e2f8977bc58fcdbe4afd9d7af108b79d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyt_indexer_sdk-1.2.2-cp312-abi3-macosx_11_0_arm64.whl:

Publisher: publish-pypi-sdk.yml on qdrddr/clear-your-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cyt_indexer_sdk-1.2.2-cp312-abi3-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for cyt_indexer_sdk-1.2.2-cp312-abi3-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 b418c0f05f44bcb70eb056620bfb125dc4aef0f89c3bf27d1c4b2e89c513ed7c
MD5 0e99a3798c9164765b5b8151f0cbe02b
BLAKE2b-256 a0e39d066dfc99453a77b2f23140d3cacdba3a6f7c05a7ce9adcef98cbfd2e8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyt_indexer_sdk-1.2.2-cp312-abi3-macosx_10_13_universal2.whl:

Publisher: publish-pypi-sdk.yml on qdrddr/clear-your-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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