Package install :: Package MoSTBioDat :: Package DataBase :: Package Connect :: Module MoSTBioDatDBSupport :: Class PickleArray
[hide private]
[frames] | no frames]

Class PickleArray

source code

object --+
         |
        PickleArray

cPickle array - user cache memory INPUT: query - str - SQL query cachepath - str - path to cache directory, default - current working directory cachefilename - str - cache file names, default query cachedictfilename - str - dictionary cache file name, default - dictQuery numcachefiles - int - number cache files temporary - str - temporary cache directory, default /tmp/Query

Instance Methods [hide private]
 
__init__(self, query, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
createdict(self)
create cache dictionary INPUT: class object OUTPUT:
source code
 
query2dict(self, log)
insert query to cache dictionary flag - boolean - check if search query in dictionary, default True INPUT: class object OUTPUT:
source code
 
getlocalDir(self)
get local working directory
source code
 
backupLocalFile(self)
create cache file, f.e.
source code
 
getQueryFilePath(self)
get query file path INPUT: class object OUTPUT: query cache file path
source code
 
array2cpickle(self, obj, log)
create cPickle from array INPUT: class object obj - object OUTPUT:
source code
 
cpickle2array(self)
create array from cPickle INPUT: class object OUTPUT: obj - object
source code
 
rmfile(self, path)
remove file INPUT: path - str- file path
source code
 
showCacheDict(self)
show dictionary INPUT: class object OUTPUT:
source code
 
makeTar(self, log)
make tar repository INPUT: class object log - logging handler OUTPUT:
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, query, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

backupLocalFile(self)

source code 

create cache file, f.e. query.00001 INPUT: class object OUTPUT: file full name