Skip to main content

Lelu · Python SDK

Python client for Lelu — the confidence-aware authorization engine for autonomous AI agents.

Installation

pip install lelu-agent-auth-sdk

Quick start

import asyncio
from lelu import LeluClient, AgentAuthRequest, AgentContext

async def main():
    async with LeluClient(base_url="http://localhost:8082") as client:
        result = await client.agent_authorize(AgentAuthRequest(
            actor="invoice_bot",
            action="invoice:create",
            context=AgentContext(
                confidence=0.92,
                acting_for="user_123",
            ),
        ))
        print(result.allowed, result.reason)

asyncio.run(main())

API

Method Description
agent_authorize(req) Confidence-aware agent authorization
authorize(req) Human RBAC authorization
mint_token(req) Mint a JIT-scoped JWT
revoke_token(token_id) Revoke a token immediately
is_healthy() Health-check the engine

License

MIT

Metadata

Release files for lelu-agent-auth-sdk 0.1.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 lelu-agent-auth-sdk 0.1.0
File Size Uploaded Provenance Actions
lelu_agent_auth_sdk-0.1.0.tar.gz 12.5 kB Without provenance Details for lelu_agent_auth_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lelu-agent-auth-sdk 0.1.0
File Interpreter ABI Platform Actions
lelu_agent_auth_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for lelu_agent_auth_sdk-0.1.0-py3-none-any.whl

Total release size: 27.9 kB

Release files / lelu_agent_auth_sdk-0.1.0.tar.gz

Download URL lelu_agent_auth_sdk-0.1.0.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9015b235ae3e5a8de7de98551b3766c85b4308294e38b58dfb125c1a456b4866
BLAKE2b-256 checksum
How to use checksums
e78ad14f2edfb28f9d4f0da8142d24e3dd7bc0738db950c0b2e0585c0ba24ec1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / lelu_agent_auth_sdk-0.1.0-py3-none-any.whl

Download URL lelu_agent_auth_sdk-0.1.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
085e8f4a7f0cad3e7f397edd9228abd6cbdb958cec8bce46f1384a62343dce24
BLAKE2b-256 checksum
How to use checksums
458d0b3c8cd0c1e72bb38be96048a5f3d9b482635bb533f09a27b0a8ed020c85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for lelu-agent-auth-sdk 0.1.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.

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