Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/httpx/__init__.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from .__version__ import __description__, __title__, __version__
2from ._api import *
3from ._auth import *
4from ._client import *
5from ._config import *
6from ._content import *
7from ._exceptions import *
8from ._models import *
9from ._status_codes import *
10from ._transports import *
11from ._types import *
12from ._urls import *
14try:
15 from ._main import main
16except ImportError: # pragma: no cover
18 def main() -> None: # type: ignore
19 import sys
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)
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]
102__locals = locals()
103for __name in __all__:
104 if not __name.startswith("__"):
105 setattr(__locals[__name], "__module__", "httpx") # noqa