nephos.uploader.uploader
index
/media/hdd/Essentials/Chapter_Kgp_WOrk/GSoC/projectnephos_gsoc18/GSoC18Nephos/nephos/uploader/uploader.py

Contains the uploader abstract base class.
All uploading clients should be derived class Uploader and implement the necessary methods.

 
Modules
       
ntpath
shutil
sqlite3

 
Classes
       
abc.ABC(builtins.object)
Uploader

 
class Uploader(abc.ABC)
    Handles basic and necessary functions of an uploader,
all uploading modules need to derive from this class
 
 
Method resolution order:
Uploader
abc.ABC
builtins.object

Methods defined here:
__init__(self, scheduler)
add_to_scheduler(self)
Adds uploading job to class' scheduler.
 
Returns
-------

Static methods defined here:
auth()
Authorise the module.
 
Returns
-------
begin_uploads(up_func)
Parse folders to be uploaded from the database
 
Parameters
-------
up_func
    type: callable
    upload function to be called
 
Returns
-------

Data and other attributes defined here:
__abstractmethods__ = frozenset(['_get_upload_service', '_upload', 'auth'])

Data descriptors inherited from abc.ABC:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        CMD_GET_FOLDERS = 'SELECT * FROM tasks WHERE status = "processed"'
CMD_RM_TASK = 'DELETE\n FROM tasks\n WHERE store_path = ?'
CMD_SET_UPLOADING = 'UPDATE tasks\n SET status = "uploading"\n WHERE store_path = ?'
LOG = <logging.Logger object>