Skip to content

Instantly share code, notes, and snippets.

@clayg
Created September 11, 2020 19:00
Embed
What would you like to do?
from swiftclient import get_auth, client
import time
url, token = get_auth('http://saio:8080/auth/v1.0', 'test:tester', 'testing')
TIMEOUT = 30.0
finish = time.time() + TIMEOUT
while True:
sc = client.head_account(url, token)
print(sc)
time.sleep(1.0)
if time.time() > finish:
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment