argopy.utils.Asset

argopy.utils.Asset#

class Asset(*args: Any, **kwargs: Any)[source]#

Internal asset loader

Assets are loaded using an instance of argopy.stores.filestore.

Notes

This is single-instance class, whereby a single instance will be created during a session, whatever the number of calls is made. This avoids to create too many, and unnecessary, instances of file stores.

Examples

Examples of asset files loading#
Asset.load('data_types')
Asset.load('data_types.json')
Asset.load('schema:argo.float.schema')
Asset.load('canyon-b:wgts_AT.txt', header=None, sep="   ")
__init__(*args, **kwargs) None[source]#

Methods

__init__(*args, **kwargs)

load([name])

Load an asset file