1 2 3 4 5 6 7
import httpx async def sync_reports(url): async with httpx.AsyncClient() as client: response = await client.get(url) return response.json()