Access module to the Cargador file storage. More on Cargador settings, see section: “carga-advanced-params”
classpycerebro.cargador.Cargador(_host, _rpc_port, _http_port)
Cargador class to access the Cargador file storage.
The following methods are inherited from the XML-RPC object:
catalogDelete(hash HASH, password STR)
catalogDownload(hash HASH, siteList STR, CommenceFlags INT, userName STR, url STR, retryCount INT)
catalogResolve(hash HASH)
catalogUpload(hash HASH, siteList STR, CommenceFlags INT, userName STR, url STR, retryCount INT)
controlIO(hash HASH, TableKind INT, Action INT)
statusInfo()
statusTables(tablesBitMaks INT, flags INT)
More information about these methods, see the section Interface to Cargador file storage via XML-RPC protocol.
import_file(file_name,url)
Parameters: |
|
Imports the file in the file storage using HTTP protocol with PUT method and returns it to the hash in the base64 format.
rpc = pycerebro.cargador.Cargador('server', 4040, 4080); # create a Cargador class object
rpc.import_file('cargador.py', 'Test Folder')) # import the file in the Cargador file storage.