Skip to main content

module aixplain.modules.asset


class Asset

method __init__

__init__(
id: str,
name: str,
description: str,
supplier: Union[Dict, str, Supplier, int] = 'aiXplain',
version: str = '1.0',
license: Optional[License] = None,
privacy: Privacy = <Privacy.PRIVATE: 'Private'>,
cost: Optional[Dict, float] = None
)None

Create an Asset with the necessary information

Args:

  • id (Text): ID of the Asset
  • name (Text): Name of the Asset
  • description (Text): Description of the Asset
  • supplier (Union[Dict, Text, Supplier, int], optional): supplier of the asset. Defaults to "aiXplain".
  • version (Optional[Text], optional): asset version. Defaults to "1.0".
  • cost (Optional[Union[Dict, float]], optional): asset price. Defaults to None.

method to_dict

to_dict()dict

Get the asset info as a Dictionary

Returns:

  • dict: Asset Information