tp-common 0.0.1__py3-none-any.whl → 0.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tp_common/__init__.py +52 -52
- tp_common/base_client/base_client.py +585 -585
- tp_common/base_client/base_exception.py +2 -2
- tp_common/base_client/base_request.py +12 -12
- tp_common/base_client/base_response.py +11 -11
- tp_common/base_client/client_exceptions.py +76 -76
- tp_common/base_client/domain_exceptions.py +63 -63
- tp_common/logging.py +339 -339
- {tp_common-0.0.1.dist-info → tp_common-0.0.2.dist-info}/METADATA +1 -1
- tp_common-0.0.2.dist-info/RECORD +11 -0
- tp_common/base_client/__init__.py +0 -0
- tp_common-0.0.1.dist-info/RECORD +0 -12
- {tp_common-0.0.1.dist-info → tp_common-0.0.2.dist-info}/WHEEL +0 -0
tp_common/__init__.py
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
from tp_common.base.base_client.base_client import BaseClient
|
|
2
|
-
from tp_common.base.base_client.base_exception import BaseInfrastructureException
|
|
3
|
-
from tp_common.base.base_client.base_request import BaseRequest
|
|
4
|
-
from tp_common.base.base_client.base_response import BaseResponse
|
|
5
|
-
from tp_common.base.base_client.client_exceptions import (
|
|
6
|
-
BaseClientException,
|
|
7
|
-
ClientConnectionException,
|
|
8
|
-
ClientDNSException,
|
|
9
|
-
ClientProxyException,
|
|
10
|
-
ClientResponseErrorException,
|
|
11
|
-
ClientTimeoutException,
|
|
12
|
-
)
|
|
13
|
-
from tp_common.base.base_client.domain_exceptions import (
|
|
14
|
-
AuthorizationException,
|
|
15
|
-
BaseBusinessErrorException,
|
|
16
|
-
BaseNetworkErrorException,
|
|
17
|
-
BaseProxyErrorException,
|
|
18
|
-
BaseServerErrorException,
|
|
19
|
-
ResourceNotFoundException,
|
|
20
|
-
ServerException,
|
|
21
|
-
ServiceUnavailableException,
|
|
22
|
-
TooManyRequestsException,
|
|
23
|
-
ValidationException,
|
|
24
|
-
)
|
|
25
|
-
from tp_common.logging import Logger, TracingLogger
|
|
26
|
-
|
|
27
|
-
__all__ = [
|
|
28
|
-
# BaseClient
|
|
29
|
-
"BaseClient",
|
|
30
|
-
"BaseInfrastructureException",
|
|
31
|
-
"BaseRequest",
|
|
32
|
-
"BaseResponse",
|
|
33
|
-
"BaseClientException",
|
|
34
|
-
"ClientResponseErrorException",
|
|
35
|
-
"ClientTimeoutException",
|
|
36
|
-
"ClientProxyException",
|
|
37
|
-
"ClientConnectionException",
|
|
38
|
-
"ClientDNSException",
|
|
39
|
-
"BaseBusinessErrorException",
|
|
40
|
-
"BaseServerErrorException",
|
|
41
|
-
"BaseNetworkErrorException",
|
|
42
|
-
"BaseProxyErrorException",
|
|
43
|
-
"AuthorizationException",
|
|
44
|
-
"ValidationException",
|
|
45
|
-
"ResourceNotFoundException",
|
|
46
|
-
"ServerException",
|
|
47
|
-
"TooManyRequestsException",
|
|
48
|
-
"ServiceUnavailableException",
|
|
49
|
-
# Logging
|
|
50
|
-
"TracingLogger",
|
|
51
|
-
"Logger",
|
|
52
|
-
]
|
|
1
|
+
from tp_common.base.base_client.base_client import BaseClient
|
|
2
|
+
from tp_common.base.base_client.base_exception import BaseInfrastructureException
|
|
3
|
+
from tp_common.base.base_client.base_request import BaseRequest
|
|
4
|
+
from tp_common.base.base_client.base_response import BaseResponse
|
|
5
|
+
from tp_common.base.base_client.client_exceptions import (
|
|
6
|
+
BaseClientException,
|
|
7
|
+
ClientConnectionException,
|
|
8
|
+
ClientDNSException,
|
|
9
|
+
ClientProxyException,
|
|
10
|
+
ClientResponseErrorException,
|
|
11
|
+
ClientTimeoutException,
|
|
12
|
+
)
|
|
13
|
+
from tp_common.base.base_client.domain_exceptions import (
|
|
14
|
+
AuthorizationException,
|
|
15
|
+
BaseBusinessErrorException,
|
|
16
|
+
BaseNetworkErrorException,
|
|
17
|
+
BaseProxyErrorException,
|
|
18
|
+
BaseServerErrorException,
|
|
19
|
+
ResourceNotFoundException,
|
|
20
|
+
ServerException,
|
|
21
|
+
ServiceUnavailableException,
|
|
22
|
+
TooManyRequestsException,
|
|
23
|
+
ValidationException,
|
|
24
|
+
)
|
|
25
|
+
from tp_common.logging import Logger, TracingLogger
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
# BaseClient
|
|
29
|
+
"BaseClient",
|
|
30
|
+
"BaseInfrastructureException",
|
|
31
|
+
"BaseRequest",
|
|
32
|
+
"BaseResponse",
|
|
33
|
+
"BaseClientException",
|
|
34
|
+
"ClientResponseErrorException",
|
|
35
|
+
"ClientTimeoutException",
|
|
36
|
+
"ClientProxyException",
|
|
37
|
+
"ClientConnectionException",
|
|
38
|
+
"ClientDNSException",
|
|
39
|
+
"BaseBusinessErrorException",
|
|
40
|
+
"BaseServerErrorException",
|
|
41
|
+
"BaseNetworkErrorException",
|
|
42
|
+
"BaseProxyErrorException",
|
|
43
|
+
"AuthorizationException",
|
|
44
|
+
"ValidationException",
|
|
45
|
+
"ResourceNotFoundException",
|
|
46
|
+
"ServerException",
|
|
47
|
+
"TooManyRequestsException",
|
|
48
|
+
"ServiceUnavailableException",
|
|
49
|
+
# Logging
|
|
50
|
+
"TracingLogger",
|
|
51
|
+
"Logger",
|
|
52
|
+
]
|