Skip to main content

Snippets Python

Intégration de l’API THE HIVE depuis Python 3.11+ — scripts d’automatisation, notebooks, services FastAPI.

Flow général

1. Client minimal avec requests

2. Recherche d’offres

3. Upload CV (multipart)

4. TokenManager avec auto-refresh

5. Session avec authentification auto

6. Client async avec httpx

7. Retry avec tenacity (rate limit)

8. Pagination automatique

9. Upload CV avec progression (tqdm)

10. Client typé depuis OpenAPI

Via openapi-python-client :

11. Intégration FastAPI (proxy interne)

12. Scripts d’administration

13. Tests avec respx (mock httpx)

Voir aussi