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-2.1.0.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-2.1.0-cp312-abi3-win_arm64.whl (6.7 MB view details)

Uploaded CPython 3.12+Windows ARM64

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

Uploaded CPython 3.12+Windows x86-64

cyt_indexer_sdk-2.1.0-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-2.1.0-cp312-abi3-manylinux_2_28_aarch64.whl (7.4 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12+macOS 11.0+ ARM64

cyt_indexer_sdk-2.1.0-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-2.1.0.tar.gz.

File metadata

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

File hashes

Hashes for cyt_indexer_sdk-2.1.0.tar.gz
Algorithm Hash digest
SHA256 777b2b0e727eae189b45e808cc4c187b6040389cc68187a5b90a33c97056c7b9
MD5 2f2efb74b451a9ca790eae105f39da74
BLAKE2b-256 5b6e1cbb6248947d034ae4f4d03f07d55af16104da7517ffc78e4cb54ebc84ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyt_indexer_sdk-2.1.0.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-2.1.0-cp312-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for cyt_indexer_sdk-2.1.0-cp312-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 cba4257ac17346393fecbcdbbdb90ec8196452109b70cb35f2b28225b4189876
MD5 da6eba8ea8edbbb7f4ce1e5933f9fd25
BLAKE2b-256 6ccd9f89dc4da24082740adde8d2e8669532adb986ce41df054ec3b8db5fbf30

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyt_indexer_sdk-2.1.0-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-2.1.0-cp312-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for cyt_indexer_sdk-2.1.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8c4113993daa04f6d2ab35cfa60eb996da7748c310068a0f45ab56f0e60749f2
MD5 dd8d748b230d2ac8ea94996894d9f09c
BLAKE2b-256 d90bbaa444151ad5d2b3746d08829576d3ab8a16c30d1acf506e08146cde277b

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyt_indexer_sdk-2.1.0-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-2.1.0-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cyt_indexer_sdk-2.1.0-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0c7df55d83ab0978c6e7b1961ae661e35ab3d355a5b395fb1f5c5cf7f5442901
MD5 db7de3d84fb4cbc690107c1eee89604e
BLAKE2b-256 90c2630ac2d07e59575a21e6d405347f66d310f9a3e761cf2316922377b5424b

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyt_indexer_sdk-2.1.0-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-2.1.0-cp312-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cyt_indexer_sdk-2.1.0-cp312-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f16bac9065c274cd1a712e365b365e3860768b67eef8293a3e74b78accbba157
MD5 7012ff25b01e7e2598beaa020fcdfdfd
BLAKE2b-256 32dba1092e9a8dba3b7f73998a2d371a30828d991d9d63a211ddf4a28e600156

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyt_indexer_sdk-2.1.0-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-2.1.0-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cyt_indexer_sdk-2.1.0-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 043ec952140cc96c5f343a34c42c25521413da3fe4a702611cc3b9f2bc502d6f
MD5 d19c392acbacbcd1cc61f6c6d1aadbe6
BLAKE2b-256 6744c3e2510af2eeaa932a46b0074185041f79d00ae34f3204398ad4b5736bb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyt_indexer_sdk-2.1.0-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-2.1.0-cp312-abi3-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for cyt_indexer_sdk-2.1.0-cp312-abi3-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 d9e2de0f248fc16c87567215237b29f8d5d143e838cd418b49cdc50bad0f0b63
MD5 013c68ca3142a4122273c2e01ce59b9b
BLAKE2b-256 516e1b91a6e6e6f7d04a74ad6be574e5a235ded8092e814b6057260693b4963a

See more details on using hashes here.

Provenance

The following attestation bundles were made for cyt_indexer_sdk-2.1.0-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