#!/usr/bin/python3
from mini_buildd import api, client, events

if __name__ == "__main__":
    CLIENT = client.Client("http://localhost:8066")

    print("\n=> status:")
    print(CLIENT.api(api.Status()))

    print("\n=>ls mbd-test-cpp:")
    print(CLIENT.api(api.Ls(source="mbd-test-cpp")))

    print("\n=>Waiting for next MIGRATED event:")
    print(CLIENT.event(types=[events.Type.MIGRATED]))
