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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81a953b8ef49335225f12fd24b4faa59834b6161f72947dedd1f9cc40fd24cbf
|
|
| MD5 |
b3a92508851e52c71e1cf4563ee19994
|
|
| BLAKE2b-256 |
21f2132d7b1423556078059a7e3b8c526307bd67a16cc6833153b2009a9e4bbc
|
Provenance
The following attestation bundles were made for aikernel_tools-0.1.2.tar.gz:
Publisher:
publish-pypi.yml on AIKernel-NET/AIKernel.Tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aikernel_tools-0.1.2.tar.gz -
Subject digest:
81a953b8ef49335225f12fd24b4faa59834b6161f72947dedd1f9cc40fd24cbf - Sigstore transparency entry: 1860572256
- Sigstore integration time:
-
Permalink:
AIKernel-NET/AIKernel.Tools@13231d5e79f442318271354702e5da76af1d9d4f -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/AIKernel-NET
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@13231d5e79f442318271354702e5da76af1d9d4f -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d64389c63cd18caaa98dfd433615096dd85c176e36a3412a5ba70c46366e684d
|
|
| MD5 |
64ad7e5f3ca746a5e15c83ce20c234b3
|
|
| BLAKE2b-256 |
f3f391f04d6910e745665e8cf1e82a4c9be10a60953f91f1814ec7e4996a05a5
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aikernel_tools-0.1.2-py3-none-any.whl -
Subject digest:
d64389c63cd18caaa98dfd433615096dd85c176e36a3412a5ba70c46366e684d - Sigstore transparency entry: 1860572344
- Sigstore integration time:
-
Permalink:
AIKernel-NET/AIKernel.Tools@13231d5e79f442318271354702e5da76af1d9d4f -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/AIKernel-NET
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@13231d5e79f442318271354702e5da76af1d9d4f -
Trigger Event:
push
-
Statement type: