EnvironmentGroup
- class EnvironmentGroup
-
- property name
The name of the group.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- list_environments()
List the environments of this group.
- Returns
The list of environments in the group.
- Return type
- remove(force=False)
Delete a environment group
Note
By default, only empty groups can be deleted (
NotEmptyError
is raised otherwise), useforce
to force deletion of non empty groups.- Parameters
force (bool) -- Force the deletion of the group even if it contains environments.
- Raises
NotEmptyError -- If
force
isFalse
and the group contains environments.ReadOnlyError -- If
Database
is in read only mode.
- create_local_environment(name, product_id)
Create a new local environment.
- Parameters
- Returns
The newly created local environment.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- import_from_encoded_data(data)
Import a hdri.
- Parameters
data (bytes) -- Encoded hdri image data.
- Returns
The created environment.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- import_kev(filename)
Import environment from a KEV file.
- Parameters
filename (str) -- KEV filename.
- Returns
The imported environment.
- Return type
- Raises
FileNotFoundError -- If
filename
can't be opened.ReadOnlyError -- If
Database
is in read only mode.