kobil-aitrust (Python)
Python mirror of the @uveysservetoglu/kobil-aitrust TypeScript meta-package — wraps the SDK
and Audit packages into a single developer-facing API via AITrust().
Behavioral 1:1 port of the TypeScript package in ../src. The TypeScript
source is the reference specification.
Dependency note
AITrust() constructs a KobilAI from kobil_agent_sdk (the agent-sdk port).
That dependency is resolved lazily through kobil_aitrust.trust._make_kobil_ai
so the package imports without agent-sdk installed and so tests can inject a
fake — mirroring the TS vi.mock('@uveysservetoglu/kobil-agent-sdk'). Audit is resolved
the same way via _import_audit_cls.
Install (dev)
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
Test
pytest
Usage
import asyncio
from kobil_aitrust import AITrust, AITrustConfig
ai = AITrust(AITrustConfig(platform_url="https://trust.kobil.com", client_id="my-agent"))
@ai.tool # or: secured = ai.tool(fn, ToolOptions(name="get_weather", scopes=["weather:read"]))
async def get_weather(city, ctx):
return "sunny"
Metadata
Release files for kobil-aitrust 3.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kobil_aitrust-3.0.1.tar.gz | 36.8 kB | Without provenance | Details for kobil_aitrust-3.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kobil_aitrust-3.0.1-py3-none-any.whl | Python 3 | none | any | Details for kobil_aitrust-3.0.1-py3-none-any.whl |
Total release size: 79.4 kB
Release files / kobil_aitrust-3.0.1.tar.gz
| Download URL | kobil_aitrust-3.0.1.tar.gz |
|---|---|
| Size | 36.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d88095659e5cac833d9dc1a244ed37dbace8986a5f95cb6f19fdc8e1e0739fa
|
|
BLAKE2b-256 checksum How to use checksums |
efb53efee5a982375f5ce8e43cedd7b974fa25917d095cbc05e69018f7482333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Release files / kobil_aitrust-3.0.1-py3-none-any.whl
| Download URL | kobil_aitrust-3.0.1-py3-none-any.whl |
|---|---|
| Size | 42.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24b3ef7ea8019100257933f08b018c84c9342e9b006c64360d01eee98c5fde3b
|
|
BLAKE2b-256 checksum How to use checksums |
b5b629c3f1a07438b05bc0c9908a0c5137b01167524b9d83a32b4026874e696d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Security for kobil-aitrust 3.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.