In [1]:
from swiftclient import client
storage_url, auth_token = client.get_auth('https://swift.dkrz.de/auth/v1.0/','DKRZ-ESGF:test-user',"prolog16")

In [2]:
client.put_container(storage_url,auth_token,"test-container")

In [3]:
f = open("sdt.db",'r')
client.put_object(storage_url,auth_token,"test-container","test-db-file.db",f)


WARNING:requests.packages.urllib3.connectionpool:Connection pool is full, discarding connection: swift.dkrz.de
Out[3]:
'775ed809f59cc893a934e68a793d940b'

In [ ]:
client.

In [ ]: