Workspace manages all cubes, their data stores and model providers.
Creates a workspace. config should be a ConfigParser or a path to a config file. stores should be a dictionary of store configurations, a ConfigParser or a path to a stores.ini file.
Register a slicer as a model and data provider.
Add translation trans for locale. ns is a namespace. If no namespace is specified, then default (global) is used.
Returns a browser for cube.
Closes the workspace with all open stores and other associated resources.
Returns a cube with full cube namespace reference ref for user identity and translated to locale.
Returns browser features for cube
Returns a dimension with name. Raises NoSuchDimensionError when no model published the dimension. Raises RequiresTemplate error when model provider requires a template to be able to provide the dimension, but such template is not a public dimension.
The standard lookup when linking a cube is:
Flushes the cube lookup cache.
Opens a store name. If the store is already open, returns the existing store.
Registers the model in the workspace. model can be a metadata dictionary, filename, path to a model bundle directory or a URL.
If namespace is specified, then the model’s objects are stored in the namespace of that name.
store is an optional name of data store associated with the model. If not specified, then the one from the metadata dictionary will be used.
Model’s provider is registered together with loaded metadata. By default the objects are registered in default global namespace.
Links dimensions to the cube in the context of model with help of provider.
Get a list of metadata for cubes in the workspace. Result is a list of dictionaries with keys: name, label, category, info.
The list is fetched from the model providers on the call of this method.
If the workspace has an authorizer, then it is used to authorize the cubes for identity and only authorized list of cubes is returned.
Convenience function for registering the default store. For more information see register_store()
Adds a store configuration.
Creates a cubes namespace – an object that provides model objects from the providers.
Registers and merges translation for language lang
Create a namespace name in the receiver.
Return cube named name.
If recursive is True then look for cube in child namespaces.
Returns a tuple (namespace, nsname, basename) where namespace is a namespace conaining cube and basename is a name of the cube within the namespace. For example: if cube is slicer.nested.cube and there is namespace slicer then that namespace is returned and the basename will be nested.cube
Retursn a list of cube info dictionaries with keys: name, label, description, category and info.
Returns a tuple (namespace, remainder) where namespace is the deepest namespace in the namespace hierarchy and remainder is the remaining part of the path that has no namespace (is an object name or contains part of external namespace).
If path is empty or not provided then returns self.
If create is True then the deepest namespace is created if it does not exist.
Returns translation in language lang for model object obj within context (cubes, dimensions, attributes, ...). Looks in parent if current namespace does not have the translation.