File: python-client

package info (click to toggle)
mini-buildd 2.5.2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,636 kB
  • sloc: python: 9,998; sql: 1,597; sh: 1,470; javascript: 98; lisp: 90; cpp: 70; makefile: 69
file content (14 lines) | stat: -rwxr-xr-x 399 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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]))