web_utils
Utility functions for web interactions.
Module
Functions
async def async_delete( url: Union[ForwardRef('URL'), str], *, params: Union[ForwardRef('QueryParams'), Mapping[str, Union[str, int, float, bool, None, Sequence[Union[str, int, float, bool, None]]]], List[Tuple[str, Union[str, int, float, bool, None]]], Tuple[Tuple[str, Union[str, int, float, bool, None]], ...], str, bytes, None] = None, headers: Union[ForwardRef('Headers'), Dict[str, str], Dict[bytes, bytes], Sequence[Tuple[str, str]], Sequence[Tuple[bytes, bytes]], None] = None, cookies: Union[ForwardRef('Cookies'), http.cookiejar.CookieJar, Dict[str, str], List[Tuple[str, str]], None] = None, auth: Union[Tuple[Union[str, bytes], Union[str, bytes]], Callable[[ForwardRef('Request')], ForwardRef('Request')], ForwardRef('Auth'), httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, follow_redirects: Union[bool, httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, timeout: Union[float, None, Tuple[Optional[float], Optional[float], Optional[float], Optional[float]], ForwardRef('Timeout'), httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, extensions: Optional[dict] = None,) ‑> httpx.Response:
See httpx.delete() for more information.
async def async_get( url: Union[ForwardRef('URL'), str], *, params: Union[ForwardRef('QueryParams'), Mapping[str, Union[str, int, float, bool, None, Sequence[Union[str, int, float, bool, None]]]], List[Tuple[str, Union[str, int, float, bool, None]]], Tuple[Tuple[str, Union[str, int, float, bool, None]], ...], str, bytes, None] = None, headers: Union[ForwardRef('Headers'), Dict[str, str], Dict[bytes, bytes], Sequence[Tuple[str, str]], Sequence[Tuple[bytes, bytes]], None] = None, cookies: Union[ForwardRef('Cookies'), http.cookiejar.CookieJar, Dict[str, str], List[Tuple[str, str]], None] = None, auth: Union[Tuple[Union[str, bytes], Union[str, bytes]], Callable[[ForwardRef('Request')], ForwardRef('Request')], ForwardRef('Auth'), httpx._client.UseClientDefault, None] = <httpx._client.UseClientDefault object>, follow_redirects: Union[bool, httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, timeout: Union[float, None, Tuple[Optional[float], Optional[float], Optional[float], Optional[float]], ForwardRef('Timeout'), httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, extensions: Optional[dict] = None,) ‑> httpx.Response:
See httpx.get() for more information.
async def async_head( url: Union[ForwardRef('URL'), str], *, params: Union[ForwardRef('QueryParams'), Mapping[str, Union[str, int, float, bool, None, Sequence[Union[str, int, float, bool, None]]]], List[Tuple[str, Union[str, int, float, bool, None]]], Tuple[Tuple[str, Union[str, int, float, bool, None]], ...], str, bytes, None] = None, headers: Union[ForwardRef('Headers'), Dict[str, str], Dict[bytes, bytes], Sequence[Tuple[str, str]], Sequence[Tuple[bytes, bytes]], None] = None, cookies: Union[ForwardRef('Cookies'), http.cookiejar.CookieJar, Dict[str, str], List[Tuple[str, str]], None] = None, auth: Union[Tuple[Union[str, bytes], Union[str, bytes]], Callable[[ForwardRef('Request')], ForwardRef('Request')], ForwardRef('Auth'), httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, follow_redirects: Union[bool, httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, timeout: Union[float, None, Tuple[Optional[float], Optional[float], Optional[float], Optional[float]], ForwardRef('Timeout'), httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, extensions: Optional[dict] = None,) ‑> httpx.Response:
See httpx.head() for more information.
async def async_options( url: Union[ForwardRef('URL'), str], *, params: Union[ForwardRef('QueryParams'), Mapping[str, Union[str, int, float, bool, None, Sequence[Union[str, int, float, bool, None]]]], List[Tuple[str, Union[str, int, float, bool, None]]], Tuple[Tuple[str, Union[str, int, float, bool, None]], ...], str, bytes, None] = None, headers: Union[ForwardRef('Headers'), Dict[str, str], Dict[bytes, bytes], Sequence[Tuple[str, str]], Sequence[Tuple[bytes, bytes]], None] = None, cookies: Union[ForwardRef('Cookies'), http.cookiejar.CookieJar, Dict[str, str], List[Tuple[str, str]], None] = None, auth: Union[Tuple[Union[str, bytes], Union[str, bytes]], Callable[[ForwardRef('Request')], ForwardRef('Request')], ForwardRef('Auth'), httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, follow_redirects: Union[bool, httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, timeout: Union[float, None, Tuple[Optional[float], Optional[float], Optional[float], Optional[float]], ForwardRef('Timeout'), httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, extensions: Optional[dict] = None,) ‑> httpx.Response:
See httpx.options() for more information.
async def async_patch( url: Union[ForwardRef('URL'), str], *, content: Union[str, bytes, Iterable[bytes], AsyncIterable[bytes], None] = None, data: Optional[dict] = None, files: Union[Mapping[str, Union[IO[bytes], bytes, Tuple[Optional[str], Union[IO[bytes], bytes]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str], Mapping[str, str]]]], Sequence[Tuple[str, Union[IO[bytes], bytes, Tuple[Optional[str], Union[IO[bytes], bytes]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str], Mapping[str, str]]]]], None] = None, json: Optional[Any] = None, params: Union[ForwardRef('QueryParams'), Mapping[str, Union[str, int, float, bool, None, Sequence[Union[str, int, float, bool, None]]]], List[Tuple[str, Union[str, int, float, bool, None]]], Tuple[Tuple[str, Union[str, int, float, bool, None]], ...], str, bytes, None] = None, headers: Union[ForwardRef('Headers'), Dict[str, str], Dict[bytes, bytes], Sequence[Tuple[str, str]], Sequence[Tuple[bytes, bytes]], None] = None, cookies: Union[ForwardRef('Cookies'), http.cookiejar.CookieJar, Dict[str, str], List[Tuple[str, str]], None] = None, auth: Union[Tuple[Union[str, bytes], Union[str, bytes]], Callable[[ForwardRef('Request')], ForwardRef('Request')], ForwardRef('Auth'), httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, follow_redirects: Union[bool, httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, timeout: Union[float, None, Tuple[Optional[float], Optional[float], Optional[float], Optional[float]], ForwardRef('Timeout'), httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, extensions: Optional[dict] = None,) ‑> httpx.Response:
See httpx.patch() for more information.
async def async_post( url: Union[ForwardRef('URL'), str], *, content: Union[str, bytes, Iterable[bytes], AsyncIterable[bytes], None] = None, data: Optional[dict] = None, files: Union[Mapping[str, Union[IO[bytes], bytes, Tuple[Optional[str], Union[IO[bytes], bytes]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str], Mapping[str, str]]]], Sequence[Tuple[str, Union[IO[bytes], bytes, Tuple[Optional[str], Union[IO[bytes], bytes]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str], Mapping[str, str]]]]], None] = None, json: Optional[Any] = None, params: Union[ForwardRef('QueryParams'), Mapping[str, Union[str, int, float, bool, None, Sequence[Union[str, int, float, bool, None]]]], List[Tuple[str, Union[str, int, float, bool, None]]], Tuple[Tuple[str, Union[str, int, float, bool, None]], ...], str, bytes, None] = None, headers: Union[ForwardRef('Headers'), Dict[str, str], Dict[bytes, bytes], Sequence[Tuple[str, str]], Sequence[Tuple[bytes, bytes]], None] = None, cookies: Union[ForwardRef('Cookies'), http.cookiejar.CookieJar, Dict[str, str], List[Tuple[str, str]], None] = None, auth: Union[Tuple[Union[str, bytes], Union[str, bytes]], Callable[[ForwardRef('Request')], ForwardRef('Request')], ForwardRef('Auth'), httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, follow_redirects: Union[bool, httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, timeout: Union[float, None, Tuple[Optional[float], Optional[float], Optional[float], Optional[float]], ForwardRef('Timeout'), httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, extensions: Optional[dict] = None,) ‑> httpx.Response:
See httpx.post() for more information.
async def async_put( url: Union[ForwardRef('URL'), str], *, content: Union[str, bytes, Iterable[bytes], AsyncIterable[bytes], None] = None, data: Optional[dict] = None, files: Union[Mapping[str, Union[IO[bytes], bytes, Tuple[Optional[str], Union[IO[bytes], bytes]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str], Mapping[str, str]]]], Sequence[Tuple[str, Union[IO[bytes], bytes, Tuple[Optional[str], Union[IO[bytes], bytes]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str], Mapping[str, str]]]]], None] = None, json: Optional[Any] = None, params: Union[ForwardRef('QueryParams'), Mapping[str, Union[str, int, float, bool, None, Sequence[Union[str, int, float, bool, None]]]], List[Tuple[str, Union[str, int, float, bool, None]]], Tuple[Tuple[str, Union[str, int, float, bool, None]], ...], str, bytes, None] = None, headers: Union[ForwardRef('Headers'), Dict[str, str], Dict[bytes, bytes], Sequence[Tuple[str, str]], Sequence[Tuple[bytes, bytes]], None] = None, cookies: Union[ForwardRef('Cookies'), http.cookiejar.CookieJar, Dict[str, str], List[Tuple[str, str]], None] = None, auth: Union[Tuple[Union[str, bytes], Union[str, bytes]], Callable[[ForwardRef('Request')], ForwardRef('Request')], ForwardRef('Auth'), httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, follow_redirects: Union[bool, httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, timeout: Union[float, None, Tuple[Optional[float], Optional[float], Optional[float], Optional[float]], ForwardRef('Timeout'), httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, extensions: Optional[dict] = None,) ‑> httpx.Response:
See httpx.put() for more information.
async def async_request( method: str, url: Union[ForwardRef('URL'), str], *, content: Union[str, bytes, Iterable[bytes], AsyncIterable[bytes], None] = None, data: Optional[dict] = None, files: Union[Mapping[str, Union[IO[bytes], bytes, Tuple[Optional[str], Union[IO[bytes], bytes]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str], Mapping[str, str]]]], Sequence[Tuple[str, Union[IO[bytes], bytes, Tuple[Optional[str], Union[IO[bytes], bytes]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str]], Tuple[Optional[str], Union[IO[bytes], bytes], Optional[str], Mapping[str, str]]]]], None] = None, json: Optional[Any] = None, params: Union[ForwardRef('QueryParams'), Mapping[str, Union[str, int, float, bool, None, Sequence[Union[str, int, float, bool, None]]]], List[Tuple[str, Union[str, int, float, bool, None]]], Tuple[Tuple[str, Union[str, int, float, bool, None]], ...], str, bytes, None] = None, headers: Union[ForwardRef('Headers'), Dict[str, str], Dict[bytes, bytes], Sequence[Tuple[str, str]], Sequence[Tuple[bytes, bytes]], None] = None, cookies: Union[ForwardRef('Cookies'), http.cookiejar.CookieJar, Dict[str, str], List[Tuple[str, str]], None] = None, auth: Union[Tuple[Union[str, bytes], Union[str, bytes]], Callable[[ForwardRef('Request')], ForwardRef('Request')], ForwardRef('Auth'), httpx._client.UseClientDefault, None] = <httpx._client.UseClientDefault object>, follow_redirects: Union[bool, httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, timeout: Union[float, None, Tuple[Optional[float], Optional[float], Optional[float], Optional[float]], ForwardRef('Timeout'), httpx._client.UseClientDefault] = <httpx._client.UseClientDefault object>, extensions: Optional[dict] = None,) ‑> httpx.Response:
See httpx.request() for more information.
def delete(url, **kwargs):
See requests.delete()
for more details.
def get(url, params=None, **kwargs):
See requests.get()
for more details.
def head(url, **kwargs):
See requests.head()
for more details.
def patch(url, data=None, **kwargs):
See requests.patch()
for more details.
def post(url, data=None, json=None, **kwargs):
See requests.post()
for more details.
def put(url, data=None, **kwargs):
See requests.put()
for more details.
def request(method, url, **kwargs):
See requests.request()
for more details.