Core API¶
zoo.core.api is the only supported entry point to the Zoo Tools core. Everything else under zoo.core
can change without notice, so import from here.
from zoo.core import api
cfg = api.currentConfig()
Functions¶
- zooFromPath(path)¶
Returns the zootools instance for the given root path.
- Parameters:
path (str) – The root path of zootools to initialize, See
Zoofor more information.- Returns:
The zoo instance.
- Return type:
Zoo
- currentConfig()¶
Returns the
Zooinstance currently initialized globally.If this func returns None call
zooFromPath().- Returns:
The currently initialized
Zoo- Return type:
Zooor None
- setCurrentConfig(config)¶
Sets the
Zooglobal instance.- Warning:
This overrides the global instanced
Zooinstance.
If you need to run multiple instances in parallel use
zooConfig()
Constants¶
The constants module is available as api.constants, see Constants.
Errors¶
These errors are available from the api, for example api.MissingPackage. They are documented with the
rest of the errors in Errors.
zoo.core.errors.FileNotFoundErrorzoo.core.errors.FileExistsError