dump_asset#

eclypse.io.assets.dump_asset(asset)[source]#

Serialise an asset definition.

Parameters:

asset (Asset) – The asset to serialise.

Returns:

The serialised asset definition.

Return type:

dict[str, Any]

Raises:

ValueError – If the asset type or initialiser is not supported.