import pyrax.utils as utils import pyrax.exceptions as exc # If you have keyring configured... pyrax.keyring_auth() # If you have a credential file... #pyrax.set_credential_file("/path/to/file") # Or just set directly #pyrax.set_credentials(username, password)