Top

geodata.CachedDictionary module

Maintain a cache of a dictionary using Python Pickle files

Classes

class CachedDictionary

Write/read dictionary to Python Pickle file

Ancestors (in MRO)

Static methods

def __init__(

self, cache_directory, fname)

Initialize self. See help(type(self)) for accurate signature.

def get(

self, key)

Get value from dictionary

Args:

key:

Returns: value of key item

def read(

self)

Load Pickle file into dictionary

def set(

self, key, val)

Set value from dictionary

Args:

key:
val:

Returns: None

def write(

self)

Save dictionary to Pickle file

Instance variables

var cache_directory

var error

var fname

var logger