Module Import alias Import alias ImportFrom alias ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr If CompareEq NameLoad Str body Return Call NameLoad NameLoad orelse Raise Call NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A json N/A os threading Lock PersistentDictionary N/A N/A N/A 
  A dictionary implementation that optionally writes through to a
  persistent data store.
   __init__ N/A N/A self store N/A None N/A N/A 
    Create a new instance with an optional persistent backing store. If no
    backing store is provided, this instance will behave as a regular in-memory
    dictionary. If however a PersistentStore is provided as an argument, the
    created dictionary will write through all its updates to the specified
    store.

    Args:
      store   An instance of PersistentStore class (Optional)
     N/A N/A self store store N/A N/A store None N/A N/A N/A self dictionary N/A N/A store get_all_entries N/A N/A N/A self dictionary N/A N/A put N/A N/A self key value N/A N/A N/A 
    Insert the specified key-value pair to the dictionary. If this instance
    of PersistentDictionary is backed by an instance of PersistentStore, the
    inserted entry will also be written to that store.

    Args:
      key   Key of the entry
      value Value of the entry
     N/A N/A N/A self dictionary N/A key value N/A N/A N/A self store None N/A N/A N/A N/A N/A self store save_all_entries N/A self dictionary N/A get N/A N/A self key N/A N/A N/A 
    Retrieve the value of the specified key from the dictionary.

    Args:
      key Key of the entry

    Returns:
      Value of the entry if the key exists in the map

    Raises:
      KeyError  If the specified key does not exist in the dictionary
     N/A N/A N/A self dictionary N/A key N/A has_key N/A N/A self key N/A N/A N/A 
    Checks whether the specified key exists in the dictionary.

    Args:
      key Key of the entry

    Returns:
      True if the key exists and False otherwise.
     N/A N/A N/A N/A self dictionary has_key key N/A N/A PersistentStore N/A N/A N/A 
  Defines the interface of the persistent data store used
  by the PersistentDictionary.
   get_all_entries N/A N/A self N/A N/A N/A 
    Read all the dictionary entries from the persistent store
    and return as a dictionary. If there are no entries in the
    underlying store, returns an empty dictionary.

    Returns:
      A dictionary of key-value pairs (possibly empty)
     N/A NotImplementedError N/A save_all_entries N/A N/A self dictionary N/A N/A N/A 
    Save the contents of the given dictionary to the data store,
    thereby overwriting any previous content.

    Args:
      dict    A dictionary of key-value pairs
     N/A NotImplementedError N/A N/A PersistentStoreFactory N/A N/A N/A 
  A factory class that can be used to instantiate PersistentStore
  instances.
   N/A PARAM_STORE_TYPE store_type create_store N/A N/A self parameters N/A N/A N/A 
    Instantiate a new PersistentStore instance using the provided
    arguments.

    Arguments:
      parameters  Any additional parameters required to create the
                  PersistentStore instance. This map must at least
                  contain PARAM_STORE_TYPE.

    Returns:
      A PersistentStore instance

    Raises:
      NameError   If the type name provided is invalid
     N/A store_type N/A parameters N/A N/A self PARAM_STORE_TYPE N/A N/A store_type file N/A N/A N/A FileSystemBasedPersistentStore parameters N/A N/A N/A NameError Unrecognized persistent store type N/A N/A FileSystemBasedPersistentStore N/A PersistentStore N/A N/A 
  A simple PersistentStore implementation that writes through to
  the local file system. The location of the target file can be
  specified using PARAM_FILE_PATH option in the dictionary
  passed into the constructor. This implementation uses locking
  to prevent concurrent reads and writes. Therefore it should not
  be used in a highly concurrent environment. Also it writes the
  entire dictionary to the file system every time something is
  changed in the dictionary. Therefore it should not be used with
  large amounts of data either.
   N/A PARAM_FILE_PATH file_path __init__ N/A N/A self parameters N/A N/A N/A 
    Create a new instance of the persistent store.

    Args:
      parameters  A dictionary containing the PARAM_FILE_PATH entry
     N/A N/A self file_path N/A parameters N/A N/A self PARAM_FILE_PATH N/A N/A self lock N/A Lock N/A get_all_entries N/A N/A self N/A N/A N/A 
    See parent class documentation
     N/A N/A N/A N/A self lock acquire N/A N/A N/A N/A os path exists N/A self file_path N/A N/A file_handle N/A open N/A self file_path r N/A dictionary N/A N/A json load file_handle N/A N/A N/A file_handle close N/A N/A N/A N/A self lock release N/A dictionary N/A N/A N/A N/A N/A self lock release N/A N/A N/A save_all_entries N/A N/A self dictionary N/A N/A N/A 
    See parent class documentation
     N/A N/A N/A N/A self lock acquire N/A file_handle N/A open N/A self file_path w N/A N/A N/A json dump dictionary file_handle N/A N/A N/A file_handle close N/A N/A N/A N/A self lock release N/A N/A