Metadata-Version: 2.4
Name: l402kit
Version: 0.2.0
Summary: Add Bitcoin Lightning pay-per-call to any API in 3 lines. L402 protocol for FastAPI and Flask. 0.3% fee, zero config.
Project-URL: Homepage, https://shinydapps.mintlify.app
Project-URL: Documentation, https://shinydapps.mintlify.app
Project-URL: Repository, https://github.com/ShinyDapps/l402-kit
Project-URL: npm package, https://npmjs.com/package/l402-kit
License: MIT
Requires-Python: >=3.11
Requires-Dist: httpx>=0.27
Provides-Extra: fastapi
Requires-Dist: fastapi>=0.110; extra == 'fastapi'
Provides-Extra: flask
Requires-Dist: flask>=3.0; extra == 'flask'
Description-Content-Type: text/markdown

# l402kit

**Bitcoin Lightning payment middleware for FastAPI and Flask. 3 lines of code.**

```bash
pip install l402kit
```

## Usage

```python
from l402kit import l402_required, BlinkProvider

lightning = BlinkProvider(api_key="...", wallet_id="...")

@app.get("/premium")
@l402_required(price_sats=100, lightning=lightning)
async def premium(request: Request):
    return {"data": "You paid 100 sats!"}
```

Full docs: https://shinydapps.mintlify.app
GitHub: https://github.com/ShinyDapps/l402-kit
