Feature #3608

Separate upload_object file reading/data writing concerns

Added by Dionysis Zindros almost 11 years ago. Updated over 10 years ago.

Status:Closed Start date:04/17/2013
Priority:Low Due date:04/26/2013
Assignee:Stavros Sachtouris % Done:

100%

Category:kamaki Spent time: 9.00 hours
Target version:v0.9 Estimated time:10.00 hours

Description

upload_object in the Pithos library of kamaki is responsible for both reading data from a file and uploading it to Pithos. Separate these two concerns so that other types of data, such as strings, can be directly uploaded.

Associated revisions

Revision 49cc29b2
Added by Stavros Sachtouris almost 11 years ago

Implement download_to_string in pithos client

The download_to_string method downloads a remote object from pithos into a
string, which is then returned.

Also, implemented unit and functional tests. Changelog is updated

Refs: #3608

Revision 0fbc8a52
Added by Stavros Sachtouris almost 11 years ago

Optimize download_to_string by using threads

Refs: #3608

Revision 9d502497
Added by Stavros Sachtouris almost 11 years ago

Implement upload_from_string

Implemented with threads

Refs: #3608

Revision 6fa30b1b
Added by Stavros Sachtouris almost 11 years ago

Functional test and debug for upload_from_string

Refs: #3608

Revision dcfe7455
Added by Stavros Sachtouris almost 11 years ago

Update changelog, unittests for upload_from_string

Refs: #3608

Revision 90099c14
Added by Stavros Sachtouris almost 11 years ago

Do not recalculate #blocks in upload_from_string

Refs: #3608

Revision f17121cd
Added by Stavros Sachtouris almost 11 years ago

Do not recalculate #blocks in upload_from_string

Refs: #3608

History

#1 Updated by Stavros Sachtouris almost 11 years ago

  • Due date set to 04/26/2013
  • Target version changed from v0.8 to v0.9

#2 Updated by Dionysis Zindros almost 11 years ago

We will also need the same behaviour with download_object. Proposed API:

s = pithosclient.download_object('remotepath')
print(s) # prints files of remotepath contents

pithosclient.upload_object('remotepath', 'Hello, world!') # puts string contents into remote file directly

#3 Updated by Stavros Sachtouris almost 11 years ago

  • % Done changed from 0 to 20
  • Estimated time set to 10.00

#4 Updated by Stavros Sachtouris almost 11 years ago

  • % Done changed from 20 to 30

#5 Updated by Stavros Sachtouris almost 11 years ago

  • % Done changed from 30 to 60

#6 Updated by Stavros Sachtouris almost 11 years ago

  • % Done changed from 60 to 80

#7 Updated by Stavros Sachtouris almost 11 years ago

  • Status changed from New to Resolved
  • % Done changed from 80 to 100

#8 Updated by Stavros Sachtouris over 10 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF