Metadata-Version: 2.3
Name: gisweb-jpparest
Version: 0.2.0
Summary: Client asincrono per le API REST Maggioli JPPA
Author: Roberto Starnini
Author-email: roberto.starnini@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: httpx (>=0.28,<0.29)
Requires-Dist: pydantic (>=2.3,<3.0)
Description-Content-Type: text/markdown

# gisweb-jpparest

Client Python asincrono per le API REST Maggioli JPPA.

La libreria gestisce autenticazione, cache del token, un singolo retry dopo una
risposta `401`, errori HTTP e le chiamate al servizio di stampa. Il mapping tra
il modello applicativo e i payload Maggioli resta nell'applicazione chiamante.

```python
import httpx

from gisweb_jpparest import JppaClient

async with httpx.AsyncClient(timeout=30) as http:
    client = JppaClient(
        "https://pagopa.example/rest",
        "username",
        "password",
        "codice-ipa",
        http_client=http,
    )
    risposta = await client.invia_dovuto(payload)
```

