StubDataClayObject

See Stub Objects for a more high-level explanation of stub objects and their usage.

class StubDataClayObject(*args, **kwargs)[source]

Bases: DataClayObject

classmethod get_by_alias(alias: str, dataset_name: str = None)[source]

Create a new instance of the stub class by alias.

This class overrides the behavior of get_by_alias() and creates stub instance from the alias.

Parameters:
  • alias – The alias of the object to retrieve.

  • dataset_name – Optional. The name of the dataset where the alias is stored. If not provided, the active dataset is used.

Returns:

A stub instance of the object associated with the given alias.