object-storage

How to create temporary URL in OpenStack using python-swiftclient?

How to create temporary URL in OpenStack using python-swiftclient? Question: I’m using the python-swiftclient to connect to an OpenStack Object Store. Following some examples from the documentation I can now upload a file: container = ‘new-container’ local_file_path = ‘file.txt’ conn = Connection(**OBJECT_STORE_INFO) with open(local_file_path, ‘r’) as local: r = conn.put_object( container, local_file_path, contents=local.read(), content_type=’application/zip’ ) …

Total answers: 1