pyf.manager.main | PyF, flow-based python programming pyf.manager.main

pyf.manager.main

class pyf.manager.DataManager(max_items_per_shelve=500)

A general purpose data manager. Permits to handles data path, data networks and data shelving.

Parameters:
  • max_items_per_shelve (int) – Maximum item count per file in data storage
clean()

Cleans all the storages

create_named_storage(name, index_key=None)

Creates a named pyf.warehouse.storage.WarehouseStorage and returns it.

Parameters:
  • name (string) – name of the storage
  • index_key (int) – optionnal index key (attribute for an unique id on items)
get_network(name)

Get a data network by its name

get_path(name)

Get a data path by its name

get_storage(name)

Get a data storage by its name

setup_network(name, *args, **kwargs)

Setup a data network

Parameters:
  • name (string) – Name of the path

You can add all the needed args and kwargs, they will be passed to the network initialization.

setup_path(name, values)

Setup a data path

Parameters:
  • name (string) – Name of the path
  • values (dict) – Content of the path