Package u1rest :: Package files :: Module content :: Class ContentClient
[hide private]
[frames] | no frames]

Class ContentClient

source code

           object --+    
                    |    
lib.client.BaseClient --+
                        |
                       ContentClient

A client used to handle file content Requests.

Instance Methods [hide private]
 
get_or_make_download_path(self, path, download_directory=None)
Create local directories for the downloaded files.
source code
 
get_file(self, path, download_directory=None)
Download a file from an http get.
source code
 
put_file(self, filename, path)
Upload a file with PUT.
source code
 
_upload_file(self, filename, url)
Stream a file as an upload.
source code

Inherited from lib.client.BaseClient: __init__, get_url_from_path

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  download_directory = 'content'
Properties [hide private]

Inherited from object: __class__