gidgethub.httpx
— httpx support
- class gidgethub.httpx.GitHubAPI(client, requester, *, oauth_token=None, cache=None)
An implementation of
gidgethub.abc.GitHubAPI
using httpx. Typical usage will be:import httpx import gidgethub.httpx async with httpx.AsyncClient() as client: gh = gidgethub.httpx.GitHubAPI(client, requester, oauth_token=oauth_token) # Make your requests, e.g. ... data = await gh.getitem("/rate_limit")