Skip to content

Instantly share code, notes, and snippets.

@clayg
Created September 11, 2020 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayg/e0dd6d9e01235b12bffc92643fe49328 to your computer and use it in GitHub Desktop.
Save clayg/e0dd6d9e01235b12bffc92643fe49328 to your computer and use it in GitHub Desktop.
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