OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17210
/
usr
/
lib
/
python3
/
dist-packages
/
requests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/02/2024 07:52:55 PM
rwxr-xr-x
📄
__init__.py
1.96 KB
12/27/2015 09:59:26 AM
rw-r--r--
📁
__pycache__
-
10/02/2024 07:52:55 PM
rwxr-xr-x
📄
adapters.py
17.08 KB
12/27/2015 09:59:26 AM
rw-r--r--
📄
api.py
5.29 KB
12/27/2015 09:59:26 AM
rw-r--r--
📄
auth.py
7.37 KB
12/27/2015 09:59:26 AM
rw-r--r--
📄
certs.py
602 bytes
06/13/2023 05:39:54 PM
rw-r--r--
📄
compat.py
1.51 KB
06/13/2023 05:39:54 PM
rw-r--r--
📄
cookies.py
16.98 KB
12/27/2015 09:59:26 AM
rw-r--r--
📄
exceptions.py
2.71 KB
12/27/2015 09:59:26 AM
rw-r--r--
📄
hooks.py
767 bytes
12/27/2015 09:59:26 AM
rw-r--r--
📄
models.py
28.59 KB
12/27/2015 09:59:26 AM
rw-r--r--
📁
packages
-
10/02/2024 07:52:54 PM
rwxr-xr-x
📄
sessions.py
24.91 KB
06/13/2023 05:39:54 PM
rw-r--r--
📄
status_codes.py
3.2 KB
12/27/2015 09:59:26 AM
rw-r--r--
📄
structures.py
2.91 KB
12/27/2015 09:59:26 AM
rw-r--r--
📄
utils.py
21.33 KB
12/27/2015 09:59:26 AM
rw-r--r--
Editing: __init__.py
Close
# -*- 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.9.1' __build__ = 0x020901 __author__ = 'Kenneth Reitz' __license__ = 'Apache 2.0' __copyright__ = 'Copyright 2015 Kenneth Reitz' # Attempt to enable urllib3's SNI support, if possible try: from .packages.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, FileModeWarning, ) # 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()) import warnings # FileModeWarnings go off per the default. warnings.simplefilter('default', FileModeWarning, append=True)