Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.10/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

19 statements  

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 * 

13 

14try: 

15 from ._main import main 

16except 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 "FunctionAuth", 

54 "get", 

55 "head", 

56 "Headers", 

57 "HTTPError", 

58 "HTTPStatusError", 

59 "HTTPTransport", 

60 "InvalidURL", 

61 "Limits", 

62 "LocalProtocolError", 

63 "main", 

64 "MockTransport", 

65 "NetRCAuth", 

66 "NetworkError", 

67 "options", 

68 "patch", 

69 "PoolTimeout", 

70 "post", 

71 "ProtocolError", 

72 "Proxy", 

73 "ProxyError", 

74 "put", 

75 "QueryParams", 

76 "ReadError", 

77 "ReadTimeout", 

78 "RemoteProtocolError", 

79 "request", 

80 "Request", 

81 "RequestError", 

82 "RequestNotRead", 

83 "Response", 

84 "ResponseNotRead", 

85 "stream", 

86 "StreamClosed", 

87 "StreamConsumed", 

88 "StreamError", 

89 "SyncByteStream", 

90 "Timeout", 

91 "TimeoutException", 

92 "TooManyRedirects", 

93 "TransportError", 

94 "UnsupportedProtocol", 

95 "URL", 

96 "USE_CLIENT_DEFAULT", 

97 "WriteError", 

98 "WriteTimeout", 

99 "WSGITransport", 

100] 

101 

102 

103__locals = locals() 

104for __name in __all__: 

105 if not __name.startswith("__"): 

106 setattr(__locals[__name], "__module__", "httpx") # noqa