Metadata-Version: 2.4
Name: openkitx403
Version: 0.1.2
Summary: Python server SDK for OpenKitx403 wallet authentication
License: MIT
Author: OpenKitx403 Contributors
Requires-Python: >=3.11,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: base58 (>=2.1.1,<3.0.0)
Requires-Dist: fastapi (>=0.104.0,<0.105.0)
Requires-Dist: pydantic (>=2.5.0,<3.0.0)
Requires-Dist: pynacl (>=1.5.0,<2.0.0)
Project-URL: Documentation, https://openkitx403.github.io/openkitx403-docs
Project-URL: Homepage, https://www.openkitx403.dev
Project-URL: Repository, https://github.com/openkitx403/openkitx403
Description-Content-Type: text/markdown

# openkitx403 - Python Server SDK

FastAPI middleware for OpenKitx403 wallet authentication.

## Installation

```bash
pip install openkitx403
```

## Quick Start

```python
from fastapi import FastAPI, Depends
from openkitx403 import OpenKit403Middleware, require_openkitx403_user

app = FastAPI()

app.add_middleware(
    OpenKit403Middleware,
    audience="https://api.example.com",
    issuer="my-api-v1",
    ttl_seconds=60,
    bind_method_path=True,
    replay_backend="memory"
)

@app.get("/protected")
async def protected(user = Depends(require_openkitx403_user)):
    return {"wallet": user.address}
```

## Documentation

See [USAGE_EXAMPLES.md](../../USAGE_EXAMPLES.md#5-python-server-fastapi) for complete examples.

## License

MIT

