package documentation

Requests is an HTTP library, written in Python, for human beings. Basic GET usage:

>>> import requests
>>> r = requests.get('')
>>> r.status_code
>>> b'Python is a programming language' in r.content

... or POST:

>>> payload = dict(key1='value1', key2='value2')
>>> r ='', data=payload)
>>> print(r.text)
  "form": {
    "key1": "value1",
    "key2": "value2"

The other HTTP methods are supported - see requests.api. Full documentation is at <>.

Unknown Field: copyright
  1. 2017 by Kenneth Reitz.
Unknown Field: license
Apache 2.0, see LICENSE for more details.
Module adapters requests.adapters ~~~~~~~~~~~~~~~~~
Module auth requests.auth ~~~~~~~~~~~~~
Module cookies requests.cookies ~~~~~~~~~~~~~~~~
Module exceptions requests.exceptions ~~~~~~~~~~~~~~~~~~~
Module models requests.models ~~~~~~~~~~~~~~~
Module sessions requests.sessions ~~~~~~~~~~~~~~~~~
Module status​_codes The codes object defines a mapping from common names for HTTP statuses to their numerical codes, accessible either as attributes or as dictionary items.
Module utils requests.utils ~~~~~~~~~~~~~~
Module __version__ Undocumented
Module ​_internal​_utils requests._internal_utils ~~~~~~~~~~~~~~
Module api requests.api ~~~~~~~~~~~~
Module certs requests.certs ~~~~~~~~~~~~~~
Module compat requests.compat ~~~~~~~~~~~~~~~
Module help Module containing bug report helper(s).
Module hooks requests.hooks ~~~~~~~~~~~~~~
Module packages Undocumented
Module structures requests.structures ~~~~~~~~~~~~~~~~~~~


Variable chardet​_version Undocumented
Variable charset​_normalizer​_version Undocumented
Variable ssl Undocumented
Function ​_check​_cryptography Undocumented
Function check​_compatibility Undocumented
charset_normalizer_version =


chardet_version =


def check_compatibility(urllib3_version, chardet_version, charset_normalizer_version):


def _check_cryptography(cryptography_version):


ssl =