/usr/lib/python2.7/site-packages/requests
NameSizeModeActions
adapters.py213440644editdlrm
adapters.pyc190880644editdlrm
adapters.pyo190880644editdlrm
api.py62530644editdlrm
api.pyc69680644editdlrm
api.pyo69680644editdlrm
auth.py102060644editdlrm
auth.pyc102240644editdlrm
auth.pyo102240644editdlrm
certs.py7090644editdlrm
certs.pyc9790644editdlrm
certs.pyo9790644editdlrm
compat.py16780644editdlrm
compat.pyc19870644editdlrm
compat.pyo19870644editdlrm
cookies.py184300644editdlrm
cookies.pyc220490644editdlrm
cookies.pyo220490644editdlrm
exceptions.py31850644editdlrm
exceptions.pyc68580644editdlrm
exceptions.pyo68580644editdlrm
help.py35150644editdlrm
help.pyc32660644editdlrm
help.pyo32660644editdlrm
hooks.py7570644editdlrm
hooks.pyc11620644editdlrm
hooks.pyo11620644editdlrm
models.py342090644editdlrm
models.pyc287100644editdlrm
models.pyo287100644editdlrm
packages.py5420644editdlrm
packages.pyc4590644editdlrm
packages.pyo4590644editdlrm
sessions.py295250644editdlrm
sessions.pyc224790644editdlrm
sessions.pyo224790644editdlrm
status_codes.py41290644editdlrm
status_codes.pyc59820644editdlrm
status_codes.pyo59820644editdlrm
structures.py29810644editdlrm
structures.pyc51600644editdlrm
structures.pyo51600644editdlrm
utils.py300380644editdlrm
utils.pyc268580644editdlrm
utils.pyo268580644editdlrm
_internal_utils.py10960644editdlrm
_internal_utils.pyc14990644editdlrm
_internal_utils.pyo14470644editdlrm
__init__.py36080644editdlrm
__init__.pyc37990644editdlrm
__init__.pyo36300644editdlrm
__version__.py4360644editdlrm
__version__.pyc5750644editdlrm
__version__.pyo5750644editdlrm
Edit: /usr/lib/python2.7/site-packages/requests/api.pyc (6968B)
ó æÈ[c@sqdZddlmZd„Zd d„Zd„Zd„Zd d d„Zd d„Z d d „Z d „Z d S( sž requests.api ~~~~~~~~~~~~ This module implements the Requests API. :copyright: (c) 2012 by Kenneth Reitz. :license: Apache2, see LICENSE for more details. i(tsessionsc Ks2tjƒ }|jd|d||SWdQXdS(s” Constructs and sends a :class:`Request `. :param method: method for the new :class:`Request` object. :param url: URL for the new :class:`Request` object. :param params: (optional) Dictionary, list of tuples or bytes to send in the body of the :class:`Request`. :param data: (optional) Dictionary, list of tuples, bytes, or file-like object to send in the body of the :class:`Request`. :param json: (optional) A JSON serializable Python object to send in the body of the :class:`Request`. :param headers: (optional) Dictionary of HTTP Headers to send with the :class:`Request`. :param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`. :param files: (optional) Dictionary of ``'name': file-like-objects`` (or ``{'name': file-tuple}``) for multipart encoding upload. ``file-tuple`` can be a 2-tuple ``('filename', fileobj)``, 3-tuple ``('filename', fileobj, 'content_type')`` or a 4-tuple ``('filename', fileobj, 'content_type', custom_headers)``, where ``'content-type'`` is a string defining the content type of the given file and ``custom_headers`` a dict-like object containing additional headers to add for the file. :param auth: (optional) Auth tuple to enable Basic/Digest/Custom HTTP Auth. :param timeout: (optional) How many seconds to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple :param allow_redirects: (optional) Boolean. Enable/disable GET/OPTIONS/POST/PUT/PATCH/DELETE/HEAD redirection. Defaults to ``True``. :type allow_redirects: bool :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy. :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use. Defaults to ``True``. :param stream: (optional) if ``False``, the response content will be immediately downloaded. :param cert: (optional) if String, path to ssl client cert file (.pem). If Tuple, ('cert', 'key') pair. :return: :class:`Response ` object :rtype: requests.Response Usage:: >>> import requests >>> req = requests.request('GET', 'https://httpbin.org/get') tmethodturlN(RtSessiontrequest(RRtkwargstsession((s0/usr/lib/python2.7/site-packages/requests/api.pyRs+cKs&|jdtƒtd|d||S(s[Sends a GET request. :param url: URL for the new :class:`Request` object. :param params: (optional) Dictionary, list of tuples or bytes to send in the body of the :class:`Request`. :param \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response ` object :rtype: requests.Response tallow_redirectstgettparams(t setdefaulttTrueR(RR R((s0/usr/lib/python2.7/site-packages/requests/api.pyR?s cKs |jdtƒtd||S(séSends an OPTIONS request. :param url: URL for the new :class:`Request` object. :param \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response ` object :rtype: requests.Response Rtoptions(R R R(RR((s0/usr/lib/python2.7/site-packages/requests/api.pyR Ns cKs |jdtƒtd||S(såSends a HEAD request. :param url: URL for the new :class:`Request` object. :param \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response ` object :rtype: requests.Response Rthead(R tFalseR(RR((s0/usr/lib/python2.7/site-packages/requests/api.pyR [s cKstd|d|d||S(sÀSends a POST request. :param url: URL for the new :class:`Request` object. :param data: (optional) Dictionary, list of tuples, bytes, or file-like object to send in the body of the :class:`Request`. :param json: (optional) json data to send in the body of the :class:`Request`. :param \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response ` object :rtype: requests.Response tposttdatatjson(R(RRRR((s0/usr/lib/python2.7/site-packages/requests/api.pyRhs cKstd|d||S(s¿Sends a PUT request. :param url: URL for the new :class:`Request` object. :param data: (optional) Dictionary, list of tuples, bytes, or file-like object to send in the body of the :class:`Request`. :param json: (optional) json data to send in the body of the :class:`Request`. :param \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response ` object :rtype: requests.Response tputR(R(RRR((s0/usr/lib/python2.7/site-packages/requests/api.pyRws cKstd|d||S(sÁSends a PATCH request. :param url: URL for the new :class:`Request` object. :param data: (optional) Dictionary, list of tuples, bytes, or file-like object to send in the body of the :class:`Request`. :param json: (optional) json data to send in the body of the :class:`Request`. :param \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response ` object :rtype: requests.Response tpatchR(R(RRR((s0/usr/lib/python2.7/site-packages/requests/api.pyR†s cKstd||S(sçSends a DELETE request. :param url: URL for the new :class:`Request` object. :param \*\*kwargs: Optional arguments that ``request`` takes. :return: :class:`Response ` object :rtype: requests.Response tdelete(R(RR((s0/usr/lib/python2.7/site-packages/requests/api.pyR•s N( t__doc__tRRtNoneRR R RRRR(((s0/usr/lib/python2.7/site-packages/requests/api.pyt s /