artellapipe.core.assetfile module

Module that contains implementations for asset types

class artellapipe.core.assetfile.ArtellaAssetType(asset)

Bases: object

FILE_EXTENSIONS = []
FILE_TYPE = None
property asset

Returns asset linked to this file type :return: ArtellaAssset

get_extension()

Returns the extension of the aseet file :return: str

get_history(status, force_update=False)

Returns the history of the asset files :param status: ArtellaAssetFileStatus :param force_update: bool :return:

get_latest_local_published_path(sync_folder=False)

Returns local path to the latest published file :return: str

get_latest_local_published_version()

Returns local latest published version :return: str

get_latest_local_versions(status=None)

Returns latest local version of the of the current file type :param status: str :return: dict

get_latest_server_published_path(sync_folder=False)

Returns server path to the latest published file :return: str

get_latest_server_published_versions()

Returns latest published version in Artella server :return: str

get_latest_server_version(status=None)

Returns latest server version of the current file type :param status: str :return: dict

get_local_versions(status=None)

Returns all local version of the current file type in the wrapped asset :param status: ArtellaAssetFileStatus :return:

get_project()

Returns project where this asset file belongs to :return: ArtellaProject

get_server_versions(status=None, all_versions=True, force_update=False)

Returns all server version of the current file type in the wrapped asset :param status: ArtellaAssetFileStatus :param force_update: bool, Whether to update Artella data or not (this can take time) :return:

get_working_path(sync_folder=False)

Returns working path to the file :return: str

import_file(status, *args, **kwargs)

References current file into DCC :return:

open_file(status)

References current file into DCC :return:

reference_file(status, fix_path=True)

References current file into DCC :param status: str :param fix_path: bool :return: