Metadata-Version: 2.4
Name: loomic-agenauth
Version: 1.0.0a1
Summary: Official Python SDK for AgentAuth.
Author-email: Loomic Dev <support@loomic.dev>
License: MIT
Project-URL: Homepage, https://loomic.dev
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.27.0
Requires-Dist: pyjwt[crypto]>=2.8.0
Requires-Dist: pydantic>=2.6.0
Requires-Dist: tenacity>=8.2.0
Provides-Extra: dev
Requires-Dist: pytest>=8.0.0; extra == "dev"

# AgentAuth Python SDK

Official Python SDK for Loomic Dev AgentAuth.

## Package

`loomic-agenauth`

## Install

```bash
pip install loomic-agenauth
```

## Quickstart

```python
from agentauth import AgentAuthClient, AgentAuthClientConfig
from agentauth.types.consent import ConsentOptions

client = AgentAuthClient(
    AgentAuthClientConfig(
        client_id="ca_xxx",
        api_key="sk_xxx",
        environment="production",
    )
)

consent = client.request_consent(ConsentOptions(scopes=["github:read"], duration="1h"))
result = client.wait_for_approval(consent.consent_id)
```

## Local development

```bash
python -m pip install --upgrade pip
python -m pip install -e .[dev]
pytest
python -m build --sdist --wheel
python -m twine check dist/*
```

## Publish

From repo root:

```powershell
.\scripts\publish-python.ps1
```

For TestPyPI:

```powershell
.\scripts\publish-python.ps1 -TestPyPI
```

