zcollection.view.View.from_config#

classmethod View.from_config(path, *, filesystem=None, synchronizer=None)[source]#

Open a View described by a configuration file.

Parameters:
  • path (str) – The path to the configuration file.

  • filesystem (AbstractFileSystem | str | None) – The filesystem to use for the view.

  • synchronizer (Sync | None) – The synchronizer to use for the view.

Returns:

The view.

Raises:

ValueError – If the provided directory does not contain a view.

Return type:

View