#!/usr/bin/env python3
# test: login only, to isolate auth vs subset issue
import time
import copernicusmarine as cm

USERNAME = "lzhenyuan"
PASSWORD = "Nnn5nnwykl@"

t0 = time.time()
try:
    r = cm.login(username=USERNAME, password=PASSWORD)
    print("LOGIN OK", r)
except Exception as e:
    print("LOGIN ERR", type(e).__name__, e)
print("elapsed", round(time.time()-t0,1), "s")