Example #1
0
def main():
    account = Account.login(
            username = raw_input("username: "******"password: "******"provider: ")
            )
    print account
Example #2
0
def main():
    account = Account.login(
            username = raw_input("username: "******"password: "******"provider: ")
            )
    server = account.create_server(
            name = "example_babelcloud",
            image = account.images[0],
            size = account.sizes[0]
            )

    print server.state
    while server.state != "running":
        time.sleep(3)
        print server.state