def __init__(self, username, password, timeout=<NUM_LIT:10>):
if not username or not password:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>credentials = '<STR_LIT>'.format(username, password).encode()<EOL>encoded_credentials = base64.b64encode(credentials).decode()<EOL>self.token = '<STR_LIT>'.format(encoded_credentials)<EOL>self.timeout = timeout<EOL>
Initiates CloudManager that handles all HTTP conections with UpCloud's API.

Optionally determine a timeout for API connections (in seconds). A timeout with the value
`None` means that there is no timeout.