Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
pip._vendor.urllib3 Namespace Reference

Namespaces

namespace  _collections
 
namespace  _version
 
namespace  connection
 
namespace  connectionpool
 
namespace  contrib
 
namespace  exceptions
 
namespace  fields
 
namespace  filepost
 
namespace  packages
 
namespace  poolmanager
 
namespace  request
 
namespace  response
 
namespace  util
 

Functions

 add_stderr_logger (level=logging.DEBUG)
 
 disable_warnings (category=exceptions.HTTPWarning)
 

Variables

 category
 
 stacklevel
 
 SecurityWarning
 
 append
 
 SubjectAltNameWarning
 
 InsecurePlatformWarning
 
 SNIMissingWarning
 

Detailed Description

Python HTTP library with thread-safe connection pooling, file post support, user friendly, and more

Function Documentation

◆ add_stderr_logger()

add_stderr_logger (   level = logging.DEBUG)
Helper for quickly adding a StreamHandler to the logger. Useful for
debugging.

Returns the handler after adding it.

Definition at line 63 of file __init__.py.

63def add_stderr_logger(level=logging.DEBUG):
64 """
65 Helper for quickly adding a StreamHandler to the logger. Useful for
66 debugging.
67
68 Returns the handler after adding it.
69 """
70 # This method needs to be in this __init__.py to get the __name__ correct
71 # even if urllib3 is vendored within another package.
72 logger = logging.getLogger(__name__)
73 handler = logging.StreamHandler()
74 handler.setFormatter(logging.Formatter("%(asctime)s %(levelname)s %(message)s"))
75 logger.addHandler(handler)
76 logger.setLevel(level)
77 logger.debug("Added a stderr logging handler to logger: %s", __name__)
78 return handler
79
80
81# ... Clean up.
for i

References i.

◆ disable_warnings()

disable_warnings (   category = exceptions.HTTPWarning)
Helper for quickly disabling all urllib3 warnings.

Definition at line 98 of file __init__.py.

98def disable_warnings(category=exceptions.HTTPWarning):
99 """
100 Helper for quickly disabling all urllib3 warnings.
101 """
102 warnings.simplefilter("ignore", category)

References i.

Variable Documentation

◆ append

append

Definition at line 89 of file __init__.py.

Referenced by LifoQueue._put().

◆ category

category

Definition at line 35 of file __init__.py.

◆ InsecurePlatformWarning

InsecurePlatformWarning

Definition at line 93 of file __init__.py.

◆ SecurityWarning

SecurityWarning

Definition at line 89 of file __init__.py.

◆ SNIMissingWarning

SNIMissingWarning

Definition at line 95 of file __init__.py.

◆ stacklevel

stacklevel

Definition at line 36 of file __init__.py.

◆ SubjectAltNameWarning

SubjectAltNameWarning

Definition at line 91 of file __init__.py.