modules.dhbw.util

the util module provides basic functionality for requests

Functions

reqget

Wrapper for a get request with return code check.

reqpost

Wrapper for a post request with return code check.

url_get_args

return array of arguments of the provided url

url_get_fqdn

Return FQDN of the provided url.

url_get_path

return path to file of the provided url

Classes

Importer

base class for every importer

ImporterSession

Base class for every importer with session handling.

Exceptions

CredentialsException([msg])

Exception raised if the credentials are wrong

LoginRequiredException([msg])

Exception raised if accessing a protected resource, which requires an authentication process.

ReturnCodeException(status_code, ...[, msg])

Exception raised if the status code differs from the expected code.

ServiceUnavailableException([msg])

Exception raised if no connection to the service could be established.