Skip to main content

Python wrapper for AIKernel.Tools v0.1.2 instrumentation contracts with bundled managed assemblies and pythonnet loading.

Project description

aikernel-tools

日本語

Python wrapper for the public instrumentation surface of AIKernel.Tools.

The package bundles the AIKernel.Tools managed assemblies and loads them through pythonnet. Python code receives a single API surface for replay facades, inspection facades, canonical chat-history formatting, and public capability contract descriptors without re-implementing the internal C# semantics.

The v0.1.2 package also exposes the generated managed API catalog through managed_api_catalog(), managed_api_summary(), managed_type_names(), and find_managed_type(full_name).

See Python Tools Wrapper for package scope, managed assembly bundle requirements, Linux CoreCLR loading, and validation guidance.

Install

pip install aikernel-tools

Usage

from aikernel_tools import (
    CanonicalFormatter,
    ChatHistoryRecord,
    InfoCommand,
    MdExporter,
    NowCommand,
    RomExporter,
    RomStorageCapability,
)

capability = RomStorageCapability("tools.rom")
contract = capability.to_contract()

formatter = CanonicalFormatter()
rom = formatter.serialize([
    ChatHistoryRecord("user", "hello", "2026-06-09T00:00:00+00:00")
])

markdown = MdExporter.to_markdown([
    ChatHistoryRecord("assistant", "world", "2026-06-09T00:00:01+00:00")
])
history_rom = RomExporter.to_rom(
    [ChatHistoryRecord("assistant", "world", "2026-06-09T00:00:01+00:00")],
    namespace="python",
    name="history",
)

ReplayEngine, Inspector, and CanonicalFormatter can also delegate to an explicit backend object that exposes the same method names. MdExporter, RomExporter, ChatHistoryScraper, and the inspector command facades such as NowCommand / InfoCommand mirror the public C# names so Python callers can address the same contract surface. This keeps Python as a contract boundary while the implementation stays in the configured tooling runtime.

The wheel bundles AIKernel.Tools.Instrumentation.dll, AIKernel.Tools.Capability.RomStorage.dll, inspector assemblies, AIKernel.NET contract assemblies, AIKernel.Core dependencies, and ChatHistoryProvider.dll.

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

aikernel_tools-0.1.2.tar.gz (948.9 kB view details)

Uploaded Source

Built Distribution

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

aikernel_tools-0.1.2-py3-none-any.whl (969.8 kB view details)

Uploaded Python 3

File details

Details for the file aikernel_tools-0.1.2.tar.gz.

File metadata

  • Download URL: aikernel_tools-0.1.2.tar.gz
  • Upload date:
  • Size: 948.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aikernel_tools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 81a953b8ef49335225f12fd24b4faa59834b6161f72947dedd1f9cc40fd24cbf
MD5 b3a92508851e52c71e1cf4563ee19994
BLAKE2b-256 21f2132d7b1423556078059a7e3b8c526307bd67a16cc6833153b2009a9e4bbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for aikernel_tools-0.1.2.tar.gz:

Publisher: publish-pypi.yml on AIKernel-NET/AIKernel.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 aikernel_tools-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: aikernel_tools-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 969.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aikernel_tools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d64389c63cd18caaa98dfd433615096dd85c176e36a3412a5ba70c46366e684d
MD5 64ad7e5f3ca746a5e15c83ce20c234b3
BLAKE2b-256 f3f391f04d6910e745665e8cf1e82a4c9be10a60953f91f1814ec7e4996a05a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for aikernel_tools-0.1.2-py3-none-any.whl:

Publisher: publish-pypi.yml on AIKernel-NET/AIKernel.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