fmconsult-utils-python-sdk 2.0.7__tar.gz → 2.0.9__tar.gz
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.
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/PKG-INFO +1 -1
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/pyproject.toml +1 -1
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/http/api.py +13 -4
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult_utils_python_sdk.egg-info/PKG-INFO +1 -1
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/LICENSE +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/README.md +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/setup.cfg +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/__init__.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/__init__.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/auth/__init__.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/auth/decorator.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/auth/profile_builder.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/auth/token_manager.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/database/__init__.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/database/connection.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/database/models/__init__.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/database/models/application.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/database/models/base.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/database/models/city.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/database/models/country.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/database/models/state.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/decorators/__init__.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/decorators/auth.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/exceptions/__init__.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/exceptions/authorization.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/exceptions/bad_request_exception.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/exceptions/conflict_exception.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/exceptions/forbidden_exception.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/exceptions/not_found_exception.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/exceptions/not_implemented_exception.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/exceptions/unauthorized_exception.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/exceptions/unavailable_exception.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/http/__init__.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/__init__.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/cast.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/cnpj.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/configs.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/cpf.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/date.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/enum.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/haversine.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/object.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/pagination.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/string.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/url.py +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult_utils_python_sdk.egg-info/SOURCES.txt +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult_utils_python_sdk.egg-info/dependency_links.txt +0 -0
- {fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult_utils_python_sdk.egg-info/top_level.txt +0 -0
{fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/http/api.py
RENAMED
|
@@ -95,33 +95,42 @@ class ApiBase(object):
|
|
|
95
95
|
res_data = res.json()
|
|
96
96
|
except ValueError:
|
|
97
97
|
res_data = res.text
|
|
98
|
-
|
|
98
|
+
|
|
99
99
|
if res.status_code == 503:
|
|
100
100
|
raise UnavailableException()
|
|
101
|
+
|
|
101
102
|
elif res.status_code == 404:
|
|
102
103
|
raise NotFoundException(res.content)
|
|
104
|
+
|
|
103
105
|
elif res.status_code == 409:
|
|
104
106
|
raise ConflictException(res.content)
|
|
107
|
+
|
|
105
108
|
elif res.status_code == 401:
|
|
106
109
|
raise UnauthorizedException(res.content)
|
|
110
|
+
|
|
107
111
|
elif res.status_code == 400:
|
|
108
112
|
raise BadRequestException(
|
|
109
113
|
message='Bad request from API',
|
|
110
114
|
response_body=res_data,
|
|
111
115
|
request_details=req_args
|
|
112
116
|
)
|
|
117
|
+
|
|
113
118
|
elif res.status_code != 200:
|
|
114
119
|
raise Exception(res.content)
|
|
115
120
|
|
|
116
121
|
logging.info(f'{str(http_method).upper()} response:')
|
|
117
|
-
logging.info(
|
|
122
|
+
logging.info(res_data)
|
|
118
123
|
|
|
119
124
|
return res_data
|
|
125
|
+
|
|
120
126
|
except UnavailableException as e:
|
|
121
127
|
raise e
|
|
122
|
-
|
|
123
|
-
raise e
|
|
128
|
+
|
|
124
129
|
except NotFoundException as e:
|
|
125
130
|
raise e
|
|
131
|
+
|
|
132
|
+
except BadRequestException as e:
|
|
133
|
+
raise e
|
|
134
|
+
|
|
126
135
|
except Exception as e:
|
|
127
136
|
raise e
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/__init__.py
RENAMED
|
File without changes
|
{fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/auth/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/http/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/cast.py
RENAMED
|
File without changes
|
{fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/cnpj.py
RENAMED
|
File without changes
|
{fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/configs.py
RENAMED
|
File without changes
|
{fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/cpf.py
RENAMED
|
File without changes
|
{fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/date.py
RENAMED
|
File without changes
|
{fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/enum.py
RENAMED
|
File without changes
|
|
File without changes
|
{fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/object.py
RENAMED
|
File without changes
|
|
File without changes
|
{fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/string.py
RENAMED
|
File without changes
|
{fmconsult_utils_python_sdk-2.0.7 → fmconsult_utils_python_sdk-2.0.9}/src/fmconsult/utils/url.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|