isogeo_pysdk.checker module
Complementary set of tools to make some checks on requests to Isogeo API.
- class isogeo_pysdk.checker.IsogeoChecker
Bases :
objectComplementary set of tools to make some checks on requests to Isogeo API.
- check_api_response(response)
Check API response and raise exceptions if needed.
- Paramètres:
response (requests.models.Response) – request response to check
- Type renvoyé:
- Example:
>>> checker.check_api_response(<Response [500]>) (False, 500)
- check_edit_tab(tab, md_type)
Check if asked tab is part of Isogeo web form and reliable with metadata type.
- check_internet_connection(remote_server='api.isogeo.com', proxies=None)
Test if an internet connection is operational. Src: https://stackoverflow.com/a/20913928/2556577.