Skip to main content

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 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kobil-aitrust 1.2.0
File Size Uploaded Provenance Actions
kobil_aitrust-1.2.0.tar.gz 36.8 kB Without provenance Details for kobil_aitrust-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kobil-aitrust 1.2.0
File Interpreter ABI Platform Actions
kobil_aitrust-1.2.0-py3-none-any.whl Python 3 none any Details for kobil_aitrust-1.2.0-py3-none-any.whl

Total release size: 79.4 kB

Release files / kobil_aitrust-1.2.0.tar.gz

Download URL kobil_aitrust-1.2.0.tar.gz
Size 36.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5ec0eea9a832af1350705d400234ce788f3e3762ac86a91a6cd8255559e1069a
BLAKE2b-256 checksum
How to use checksums
729fa8189f515f09948e853050811b5000457bfe941cde8b97a86757fd45ec28
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-1.2.0-py3-none-any.whl

Download URL kobil_aitrust-1.2.0-py3-none-any.whl
Size 42.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6a7e2509963402b50cca76002ededf79a63ca10e2af0543cb78eabab674645b
BLAKE2b-256 checksum
How to use checksums
5ce50de8c86e2865e9dd66831e46d0c8a4763738e1214692b2337f8cd0409876
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 1.2.0

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.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page