Feature #3608
Separate upload_object file reading/data writing concerns
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
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
Optimize download_to_string by using threads
Refs: #3608
Functional test and debug for upload_from_string
Refs: #3608
Update changelog, unittests for upload_from_string
Refs: #3608
Do not recalculate #blocks in upload_from_string
Refs: #3608
Do not recalculate #blocks in upload_from_string
Refs: #3608
History
#1 Updated by Stavros Sachtouris over 10 years ago
- Due date set to 04/26/2013
- Target version changed from v0.8 to v0.9
#2 Updated by Dionysis Zindros over 10 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 over 10 years ago
- % Done changed from 0 to 20
- Estimated time set to 10.00
#4 Updated by Stavros Sachtouris over 10 years ago
- % Done changed from 20 to 30
#5 Updated by Stavros Sachtouris over 10 years ago
- % Done changed from 30 to 60
#6 Updated by Stavros Sachtouris over 10 years ago
- % Done changed from 60 to 80
#7 Updated by Stavros Sachtouris over 10 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