Format: text/x-python
⬇ Download File (2.1 KB)
   1  from .__version__ import __description__, __title__, __version__
   2  from ._api import *
   3  from ._auth import *
   4  from ._client import *
   5  from ._config import *
   6  from ._content import *
   7  from ._exceptions import *
   8  from ._models import *
   9  from ._status_codes import *
  10  from ._transports import *
  11  from ._types import *
  12  from ._urls import *
  13  
  14  try:
  15      from ._main import main
  16  except ImportError:  # pragma: no cover
  17  
  18      def main() -> None:  # type: ignore
  19          import sys
  20  
  21          print(
  22              "The httpx command line client could not run because the required "
  23              "dependencies were not installed.\nMake sure you've installed "
  24              "everything with: pip install 'httpx[cli]'"
  25          )
  26          sys.exit(1)
  27  
  28  
  29  __all__ = [
  30      "__description__",
  31      "__title__",
  32      "__version__",
  33      "ASGITransport",
  34      "AsyncBaseTransport",
  35      "AsyncByteStream",
  36      "AsyncClient",
  37      "AsyncHTTPTransport",
  38      "Auth",
  39      "BaseTransport",
  40      "BasicAuth",
  41      "ByteStream",
  42      "Client",
  43      "CloseError",
  44      "codes",
  45      "ConnectError",
  46      "ConnectTimeout",
  47      "CookieConflict",
  48      "Cookies",
  49      "create_ssl_context",
  50      "DecodingError",
  51      "delete",
  52      "DigestAuth",
  53      "get",
  54      "head",
  55      "Headers",
  56      "HTTPError",
  57      "HTTPStatusError",
  58      "HTTPTransport",
  59      "InvalidURL",
  60      "Limits",
  61      "LocalProtocolError",
  62      "main",
  63      "MockTransport",
  64      "NetRCAuth",
  65      "NetworkError",
  66      "options",
  67      "patch",
  68      "PoolTimeout",
  69      "post",
  70      "ProtocolError",
  71      "Proxy",
  72      "ProxyError",
  73      "put",
  74      "QueryParams",
  75      "ReadError",
  76      "ReadTimeout",
  77      "RemoteProtocolError",
  78      "request",
  79      "Request",
  80      "RequestError",
  81      "RequestNotRead",
  82      "Response",
  83      "ResponseNotRead",
  84      "stream",
  85      "StreamClosed",
  86      "StreamConsumed",
  87      "StreamError",
  88      "SyncByteStream",
  89      "Timeout",
  90      "TimeoutException",
  91      "TooManyRedirects",
  92      "TransportError",
  93      "UnsupportedProtocol",
  94      "URL",
  95      "USE_CLIENT_DEFAULT",
  96      "WriteError",
  97      "WriteTimeout",
  98      "WSGITransport",
  99  ]
 100  
 101  
 102  __locals = locals()
 103  for __name in __all__:
 104      if not __name.startswith("__"):
 105          setattr(__locals[__name], "__module__", "httpx")  # noqa
 106