Metadata-Version: 2.4
Name: wariguai
Version: 1.3.0
Summary: Bibliothèque officielle Wariguai pour Python : Payin (encaissements), Payout (retraits), liens de paiement, API SMS et webhooks signés.
Home-page: https://developpeur.wariguai.com/docs#python
Author: Wariguai
License: MIT
Project-URL: Homepage, https://developpeur.wariguai.com/docs#sdk
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# wariguai (Python)

Bibliothèque officielle **Wariguai** pour **Python 3.8+** (Django, Flask, FastAPI…), **zéro dépendance externe**.  
API officielle : `https://api.wariguai.com/api/v1` · Documentation : https://developpeur.wariguai.com/docs#sdk

## Installation

```bash
pip install wariguai
```

## Payin, Payout, SMS et Webhooks

```python
import os, wariguai

client = wariguai.Client(os.environ["WARIGUAI_SECRET_KEY"])

# 1. Payin (encaissement)
paiement = client.create_payment(amount=5000, reference="CMD-1001", return_url="https://maboutique.bf/merci")
print(paiement["checkout_url"])

# 2. Payout (retrait / versement sortant)
retrait = client.create_payout(
    idempotency_key="vers-01",
    channel="ORANGE_MONEY",
    number="76123456",
    amount=25000,
    reference="VERSEMENT-01",
)

# 3. API SMS (+indicatif obligatoire)
client.send_sms(to="+22670123456", message="Votre commande CMD-1001 est confirmee.")

# 4. Vérifier un webhook signé
evt = wariguai.verify_webhook(raw_body, signature_header, os.environ["WARIGUAI_WEBHOOK_SECRET"])
```
