X7ROOT File Manager
Current Path:
/usr/lib/python2.7/site-packages/requests
usr
/
lib
/
python2.7
/
site-packages
/
requests
/
📁
..
📄
__init__.py
(1.83 KB)
📄
__init__.pyc
(2.49 KB)
📄
__init__.pyo
(2.49 KB)
📄
adapters.py
(16.3 KB)
📄
adapters.pyc
(15.33 KB)
📄
adapters.pyo
(15.33 KB)
📄
api.py
(5.16 KB)
📄
api.pyc
(5.89 KB)
📄
api.pyo
(5.89 KB)
📄
auth.py
(6.55 KB)
📄
auth.pyc
(7.37 KB)
📄
auth.pyo
(7.37 KB)
📄
certs.py
(649 B)
📄
certs.pyc
(897 B)
📄
certs.pyo
(897 B)
📄
compat.py
(1.5 KB)
📄
compat.pyc
(1.62 KB)
📄
compat.pyo
(1.62 KB)
📄
cookies.py
(16.4 KB)
📄
cookies.pyc
(19.8 KB)
📄
cookies.pyo
(19.8 KB)
📄
exceptions.py
(2.45 KB)
📄
exceptions.pyc
(5.15 KB)
📄
exceptions.pyo
(5.15 KB)
📄
hooks.py
(820 B)
📄
hooks.pyc
(1.03 KB)
📄
hooks.pyo
(1.03 KB)
📄
models.py
(27.46 KB)
📄
models.pyc
(24.28 KB)
📄
models.pyo
(24.28 KB)
📁
packages
📄
sessions.py
(25.01 KB)
📄
sessions.pyc
(20.04 KB)
📄
sessions.pyo
(20.04 KB)
📄
status_codes.py
(3.13 KB)
📄
status_codes.pyc
(4.36 KB)
📄
status_codes.pyo
(4.36 KB)
📄
structures.py
(2.91 KB)
📄
structures.pyc
(5.02 KB)
📄
structures.pyo
(5.02 KB)
📄
utils.py
(20.88 KB)
📄
utils.pyc
(20.08 KB)
📄
utils.pyo
(20.08 KB)
Editing: __init__.py
# -*- coding: utf-8 -*- # __ # /__) _ _ _ _ _/ _ # / ( (- (/ (/ (- _) / _) # / """ requests HTTP library ~~~~~~~~~~~~~~~~~~~~~ Requests is an HTTP library, written in Python, for human beings. Basic GET usage: >>> import requests >>> r = requests.get('https://www.python.org') >>> r.status_code 200 >>> 'Python is a programming language' in r.content True ... or POST: >>> payload = dict(key1='value1', key2='value2') >>> r = requests.post('http://httpbin.org/post', data=payload) >>> print(r.text) { ... "form": { "key2": "value2", "key1": "value1" }, ... } The other HTTP methods are supported - see `requests.api`. Full documentation is at <http://python-requests.org>. :copyright: (c) 2015 by Kenneth Reitz. :license: Apache 2.0, see LICENSE for more details. """ __title__ = 'requests' __version__ = '2.6.0' __build__ = 0x020503 __author__ = 'Kenneth Reitz' __license__ = 'Apache 2.0' __copyright__ = 'Copyright 2015 Kenneth Reitz' # Attempt to enable urllib3's SNI support, if possible try: from urllib3.contrib import pyopenssl pyopenssl.inject_into_urllib3() except ImportError: pass from . import utils from .models import Request, Response, PreparedRequest from .api import request, get, head, post, patch, put, delete, options from .sessions import session, Session from .status_codes import codes from .exceptions import ( RequestException, Timeout, URLRequired, TooManyRedirects, HTTPError, ConnectionError ) from . import packages # Set default logging handler to avoid "No handler found" warnings. import logging try: # Python 2.7+ from logging import NullHandler except ImportError: class NullHandler(logging.Handler): def emit(self, record): pass logging.getLogger(__name__).addHandler(NullHandler())
Upload File
Create Folder