Skip to content

SDK Reference

gazu

gazu.log_in(email, password, totp=None, email_otp=None, fido_authentication_response=None, recovery_code=None)

NameTypeDescription
email-
password-
totp-
email_otp-
fido_authentication_response-
recovery_code-

gazu.get_host()


gazu.set_host(url)

NameTypeDescription
url-

gazu.send_email_otp(email)

NameTypeDescription
email-

gazu.log_out()


gazu.get_event_host()


gazu.set_event_host(url)

NameTypeDescription
url-

asset

gazu.asset.all_asset_instances_for_asset(asset)

NameTypeDescription
assetstr / dictThe asset dict or the asset ID.

Returns: (list[str]) Asset instances existing for a given asset.


gazu.asset.all_asset_instances_for_shot(shot)

NameTypeDescription
shotstr / dictThe shot dict or the shot ID.

Returns: (list[str]) Asset instances existing for a given shot.


gazu.asset.all_asset_types()

Returns: (list[dict]) Asset types stored in the database.


gazu.asset.all_asset_types_for_project(project)

NameTypeDescription
projectstr / dictThe project dict or the project ID.

Returns: (list[dict]) Asset types from assets listed in given project.


gazu.asset.all_asset_types_for_shot(shot)

NameTypeDescription
shotstr / dictThe shot dict or the shot ID.

Returns: (list[dict]) Asset types from assets casted in given shot.


gazu.asset.all_assets_for_episode(episode)

NameTypeDescription
episodestr / dictThe episode dict or the episode ID.

Returns: (list[dict]) Assets stored in the database for given episode.


gazu.asset.all_assets_for_open_projects()

Returns: (list[dict]) Assets stored in the database for open projects.


gazu.asset.all_assets_for_project(project)

NameTypeDescription
projectstr / dictThe project dict or the project ID.

Returns: (list[dict]) Assets stored in the database for given project.


gazu.asset.all_assets_for_project_and_type(project, asset_type)

NameTypeDescription
projectstr / dictThe project dict or the project ID.
asset_typestr / dictThe asset type dict or the asset type ID.

Returns: (list[dict]) Assets stored in the database for given project and asset type.


gazu.asset.all_assets_for_shot(shot)

NameTypeDescription
shotstr / dictThe shot dict or the shot ID.

Returns: (list[dict]) Assets stored in the database for given shot.


gazu.asset.all_scene_asset_instances_for_asset(asset)

NameTypeDescription
assetstr / dictThe asset dict or the asset ID.

Returns: (list[str]) Scene asset instances existing for a given asset.


gazu.asset.all_shot_asset_instances_for_asset(asset)

NameTypeDescription
assetstr / dictThe asset dict or the asset ID.

Returns: (list[dict]) Asset instances existing for a given asset.


gazu.asset.disable_asset_instance(asset_instance)

Set active flag of given asset instance to False.

NameTypeDescription
asset_instancestr / dictThe asset instance dict or ID.

gazu.asset.enable_asset_instance(asset_instance)

Set active flag of given asset instance to True.

NameTypeDescription
asset_instancestr / dictThe asset instance dict or ID.

gazu.asset.export_assets_with_csv(project, csv_file_path, episode = None, assigned_to = None, progress_callback=None)

Export the Assets data for a project to a CSV file on disk.

NameTypeDescription
projectstr | dict The ID or dict for the project to export.
csv_file_pathstr The path on disk to write the file to. If the path already exists it will be overwritten.
episodestr | dict | None Only export Assets that are linked to the given Episode, which can be provided as an ID string or model dict. If None, all assets will be exported.
assigned_tostr | dict | None Only export Assets that have one or more Tasks assigned to the given Person, specified as an ID string or model dict. If None, no filtering is put in place.
progress_callback-

Returns: (requests.Response) the response from the API server.


gazu.asset.get_asset(asset_id)

NameTypeDescription
asset_idstrID of claimed asset.

Returns: (dict) Asset matching given ID.


gazu.asset.get_asset_by_name(project, name, asset_type = None)

NameTypeDescription
projectstr / dictThe project dict or the project ID.
namestrThe asset name
asset_typestr / dictAsset type dict or ID (optional).

Returns: (dict | None) Asset matching given name for given project and asset type.


gazu.asset.get_asset_instance(asset_instance_id)

NameTypeDescription
asset_instance_idstrID of claimed asset instance.

Returns: (dict) Asset Instance matching given ID.


gazu.asset.get_asset_type(asset_type_id)

NameTypeDescription
asset_type_idstrID of claimed asset type.

Returns: (dict) Asset Type matching given ID.


gazu.asset.get_asset_type_by_name(name)

NameTypeDescription
namestrname of asset type.

Returns: (dict | None) Asset Type matching given name, or None if no asset type exists with that name.


gazu.asset.get_asset_type_from_asset(asset)

NameTypeDescription
assetdictThe asset dict.

Returns: (dict) Asset type which is the type of given asset.


gazu.asset.get_asset_url(asset)

NameTypeDescription
assetstr / dictThe asset dict or the asset ID.

Returns: (str) Web url associated to the given asset


gazu.asset.get_episode_from_asset(asset)

Return the Episode that the given Asset is linked to. If the Asset isn't linked to a particular Episode (i.e it's part of the "Main Pack"), None will be returned.

NameTypeDescription
assetdictThe asset dict.

Returns: (dict | None) Episode which is parent of given asset, or None if not part of an episode.


gazu.asset.import_assets_with_csv(project, csv_file_path, progress_callback=None)

Import the Assets from a previously exported CSV file into the given project.

NameTypeDescription
projectstr | dictThe project to import the Assets into, as an ID string or model dict.
csv_file_pathstrThe path on disk to the CSV file.
progress_callback-

Returns: (list[dict]) the Asset dicts created by the import.


gazu.asset.new_asset(project, asset_type, name, description = None, extra_data = None, episode = None, is_shared = False)

Create a new asset in the database for given project and asset type.

NameTypeDescription
projectstr / dictThe project dict or the project ID.
asset_typestr / dictThe asset type dict or the asset type ID.
namestrAsset name.
descriptionstrAdditional information.
extra_datadictFree field to add any kind of metadata.
episodestr / dictThe episode this asset is linked to.
is_sharedboolTrue if asset is shared between multiple projects.

Returns: (dict) Created asset.


gazu.asset.new_asset_asset_instance(asset, asset_to_instantiate, description = None)

Creates a new asset instance for given asset. The instance number is automatically generated (increment highest number).

NameTypeDescription
assetstr / dictThe asset dict or the shot ID.
asset_to_instantiatestr / dictThe asset instance dict or ID.
descriptionstrAdditional information (optional)

Returns: (dict) Created asset instance.


gazu.asset.new_asset_type(name)

Create a new asset type in the database, or return the existing asset type if one already exists with that name.

NameTypeDescription
namestrThe name of asset type to create.

Returns: (dict) The created (or already existing) asset type.


gazu.asset.remove_asset(asset, force = False)

Remove given asset from database. If the Asset has tasks linked to it, this will by default mark the Asset as canceled. Deletion can be forced regardless of task links with the `force` parameter.

NameTypeDescription
assetstr / dictAsset to remove.
forceboolWhether to force deletion of the asset regardless of whether it has links to tasks.

gazu.asset.remove_asset_type(asset_type)

Remove given asset type from database.

NameTypeDescription
asset_typestr / dictAsset type to remove.

gazu.asset.update_asset(asset)

Save given asset data into the API. It assumes that the asset already exists.

NameTypeDescription
assetdictAsset to save.

gazu.asset.update_asset_data(asset, data = None)

Update the metadata for the provided asset. Keys that are not provided are not changed.

NameTypeDescription
assetstr / dictThe asset dict or ID to save in database.
datadictFree field to set metadata of any kind.

Returns: (dict) Updated asset.


gazu.asset.update_asset_type(asset_type)

Save given asset type data into the API. It assumes that the asset type already exists.

NameTypeDescription
asset_typedictAsset Type to save.

cache

gazu.cache.cache(function, maxsize = 300, expire = 120)

Decorator that generate cache wrapper and that adds cache feature to target function. A max cache size and and expiration time (in seconds) can be set too.

NameTypeDescription
functionfuncDecorated function: maxsize: Number of value stored in cache (300 by default). expire: Time to live in seconds of stored value (disabled by default)
maxsize-
expire-

gazu.cache.clear_all()

Clear all cached functions.


gazu.cache.disable()

Disable caching on all decorated functions.


gazu.cache.enable()

Enable caching on all decorated functions.


gazu.cache.get_cache_key(*args, **kwargs)

Serialize arguments to get a cache key. It will be used to store function results.

NameTypeDescription

Returns: (str) generated key


gazu.cache.get_value(cache_store, key)

It generates a deep copy of the requested value. It's needed because if a pointer is returned, the value can be changed. Which leads to a modified cache and unexpected results.

NameTypeDescription
cache_store-
key-

gazu.cache.insert_value(function, cache_store, *args, **kwargs)

Serialize function call arguments and store function result in given cache store.

NameTypeDescription
functionfuncThe function to cache value for.
cache_storedictThe cache which will contain the value to cache. args, kwargs: The arguments for which a cache must be set.

gazu.cache.is_cache_enabled(state)

NameTypeDescription
state-

gazu.cache.is_cache_expired(memo, state, key)

Check if cache is expired (outdated) for given wrapper state and cache key.

NameTypeDescription
memodictThe function cache
statedictThe parameters of the cache (enabled, expire, maxsize) key: The key to check
key-

gazu.cache.remove_oldest_entry(memo, maxsize)

Remove the oldest cache entry if there is more value stored than allowed. Params: memo (dict): Cache used for function memoization. maxsize (int): Maximum number of entries for the cache.

NameTypeDescription
memo-
maxsize-

casting

gazu.casting.all_entity_links_for_project(project, page = None, limit = None)

NameTypeDescription
projectdict | strThe project dict or ID.
page-
limit-

Returns: (dict) A dictionary containing entity links for the project. If pagination is used, contains "data" (list of entity link dicts) and pagination metadata. Otherwise, returns a list of entity link dictionaries directly. Each entity link dict contains "entity_in_id", "entity_out_id", and other link-related fields.


gazu.casting.delete_entity_link(entity_link)

Delete an entity link.

NameTypeDescription
entity_linkstr / dictThe entity link dict or the entity link ID.

Returns: (dict) The deleted entity link.


gazu.casting.get_asset_cast_in(asset)

Return entity list where given asset is casted.

NameTypeDescription
assetdictThe asset dict or ID.

Returns: (dict) A list of entity dictionaries (shots, scenes, etc.) where the given asset is cast. Each entity dict contains standard entity fields like "id", "name", "project_id", etc.


gazu.casting.get_asset_casting(asset)

Return casting for given asset. `[{"asset_id": "asset-1", "nb_occurences": 3}]}`

NameTypeDescription
assetdictThe asset dict

Returns: (dict) A list of casting dictionaries, each containing "asset_id" and "nb_occurences" keys representing which assets are cast in the given asset and how many times they appear.


gazu.casting.get_asset_type_casting(project, asset_type)

Return casting for given asset_type.

NameTypeDescription
projectstr / dictThe project dict or the project ID.
asset_typestr / dictThe asset_type dict or the asset_type ID.

Returns: (dict) A dictionary mapping asset IDs to their casting lists. Each casting list contains dictionaries with "asset_id" and "nb_occurences" keys representing which assets are cast in each asset of this type.


gazu.casting.get_episode_casting(episode)

Return casting for given episode. `[{"episode_id": "episode-1", "nb_occurences": 3}]}`

NameTypeDescription
episodedictThe episode dict

Returns: (dict) A list of casting dictionaries, each containing "asset_id" and "nb_occurences" keys representing which assets are cast in the episode and how many times they appear.


gazu.casting.get_episode_shots_casting(project, episode)

Return casting for all shots in given episode.

NameTypeDescription
projectstr / dictThe project dict or the project ID.
episodestr / dictThe episode dict or the episode ID.

Returns: (dict) A dictionary mapping shot IDs to their casting lists. Each casting list contains dictionaries with "asset_id" and "nb_occurences" keys representing which assets are cast in each shot of the episode.


gazu.casting.get_episodes_casting(project)

Return casting for all episodes in given project.

NameTypeDescription
projectstr / dictThe project dict or the project ID.

Returns: (dict) A dictionary mapping episode IDs to their casting lists. Each casting list contains dictionaries with "asset_id" and "nb_occurences" keys representing which assets are cast in each episode.


gazu.casting.get_project_shots_casting(project)

Return casting for all shots in given project.

NameTypeDescription
projectstr / dictThe project dict or the project ID.

Returns: (dict) A dictionary mapping shot IDs to their casting lists. Each casting list contains dictionaries with "asset_id" and "nb_occurences" keys representing which assets are cast in each shot of the project.


gazu.casting.get_sequence_casting(sequence)

Return casting for given sequence.

NameTypeDescription
sequencedictThe sequence dict

Returns: (dict) A dictionary mapping shot IDs to their casting lists. Each casting list contains dictionaries with "asset_id" and "nb_occurences" keys representing which assets are cast in each shot of the sequence.


gazu.casting.get_sequence_shots_casting(project, sequence)

Return casting for all shots in given sequence.

NameTypeDescription
projectstr / dictThe project dict or the project ID.
sequencestr / dictThe sequence dict or the sequence ID.

Returns: (dict) A dictionary mapping shot IDs to their casting lists. Each casting list contains dictionaries with "asset_id" and "nb_occurences" keys representing which assets are cast in each shot of the sequence.


gazu.casting.get_shot_casting(shot)

Return casting for given shot.

NameTypeDescription
shotdictThe shot dict

Returns: (dict) A list of casting dictionaries, each containing "asset_id" and "nb_occurences" keys representing which assets are cast in the shot and how many times they appear.


gazu.casting.update_asset_casting(project, asset, casting)

Change casting of given asset with given casting (list of asset ids displayed into the asset).

NameTypeDescription
projectstr / dictThe project dict or asset ID.
assetstr / dictThe asset dict or the asset ID.
castingdictThe casting description.

Returns: (dict) The updated asset dictionary with the new casting information applied.


gazu.casting.update_episode_casting(project, episode, casting)

Change casting of given episode with given casting (list of asset ids displayed into the episode).

NameTypeDescription
projectstr / dictThe project dict or ID.
episodestr / dictThe episode dict or the episode ID.
castingdictThe casting description. e.g: `casting = [{"asset_id": "asset-1", "nb_occurences": 3}]`

Returns: (dict) The updated episode dictionary with the new casting information applied.


gazu.casting.update_shot_casting(project, shot, casting)

Change casting of given shot with given casting (list of asset ids displayed into the shot).

NameTypeDescription
projectstr / dictThe project dictionary or ID.
shotstr / dictThe shot dict or the shot ID.
castingdictThe casting description. Ex: `casting = [{"asset_id": "asset-1", "nb_occurences": 3}]`

Returns: (dict) The updated shot dictionary with the new casting information applied.


client

gazu.client.build_path_with_params(path, params)

Add params to a path using urllib encoding.

NameTypeDescription
pathstrThe url base path
paramsdictThe parameters to add as a dict

Returns: (str) the built path


gazu.client.check_status(request, path, client = None)

Raise an exception related to status code, if the status code does not match a success code. Print error message when it's relevant.

NameTypeDescription
requestrequests.ResponseThe request to validate.
pathstrThe path of the request.

Returns: (tuple[int, bool]) when 500 response occurs


gazu.client.create(model_name, data)

Create an entry for given model and data.

NameTypeDescription
model_namestrThe model type involved.
datadictThe data to use for creation.

Returns: (dict) Created entry


gazu.client.create_client(host, ssl_verify = True, cert = None, use_refresh_token = False, callback_not_authenticated = None, **kwargs)

Create a client with given parameters.

NameTypeDescription
hoststrThe host to use for requests.
ssl_verifyboolWhether to verify SSL certificates.
certstrPath to a client certificate.
use_refresh_tokenboolWhether to automatically refresh tokens.
callback_not_authenticatedfunctionFunction to call when not authenticated.

Returns: (KitsuClient) The created client.


gazu.client.delete(path, params = None)

Run a delete request toward given path for configured host.

NameTypeDescription
pathstrThe path to query.
paramsdictThe parameters to pass to the request.

gazu.client.download(path, file_path, params = None, progress_callback = None)

Download file located at *file_path* to given url *path*.

NameTypeDescription
pathstrThe url path to download file from.
file_pathstrThe location to store the file on the hard drive.
paramsdictThe parameters to pass to the request.
progress_callbackCallableCallback ``(bytes_read, total)`` invoked during download. *total* is 0 when unknown.

Returns: (requests.Response) Request response object.


gazu.client.fetch_all(path, params = None, paginated = False, limit = None)

NameTypeDescription
pathstrThe path for which we want to retrieve all entries.
paramsdictThe parameters to pass to the request.
paginatedboolWill query entries page by page.
limitintLimit the number of entries per page.

Returns: (list[dict]) "tasks?project_id=project-id"


gazu.client.fetch_first(path, params = None)

NameTypeDescription
pathstrThe path for which we want to retrieve the first entry.
paramsdictThe parameters to pass to the request.

Returns: (dict | None) The first entry for which a model is required.


gazu.client.fetch_one(model_name, id, params = None)

Function dedicated at targeting routes that returns a single model instance.

NameTypeDescription
model_namestrModel type name.
idstrModel instance ID.
paramsdictThe parameters to pass to the request.

Returns: (dict) The model instance matching id and model name.


gazu.client.get(path, json_response = True, params = None)

Run a get request toward given path for configured host.

NameTypeDescription
pathstrThe path to query.
json_responseboolWhether to return a json response.
paramsdictThe parameters to pass to the request.

gazu.client.get_api_url_from_host()

Get the base URL to the Kitsu instance the client is connected to, without the `/api` suffix, e.g This can be used to build URL paths to particular records in the Kitsu web interface.

Returns: (str) The base Kitsu URL the client is connected to.


gazu.client.get_api_version()

Get the current version of the API.

Returns: (str) Current version of the API.


gazu.client.get_current_user()

Get the current user.

Returns: (dict) User database information for user linked to auth tokens.


gazu.client.get_event_host()

Get the host on which listening for events.

Returns: (str) The event host.


gazu.client.get_file_data_from_url(url, full = False)

Return data found at given url.

NameTypeDescription
urlstrThe url to fetch data from.
fullboolWhether to use full url.

Returns: (bytes) The data found at the given url.


gazu.client.get_full_url(path)

Join host url with given path.

NameTypeDescription
pathstrThe path to integrate to host url.

gazu.client.get_host()

Get the API URL for the Kitsu host the given client is connected to, e.g "http://kitsu.instance.com/api"

Returns: (str) The host of the client.


gazu.client.get_message_from_response(response, default_message = 'No additional information')

A utility function that handles Zou's inconsistent message keys. For a given request, checks if any error messages or regular messages were given and returns their value. If no messages are found, returns a default message.

NameTypeDescription
response-
default_message-

Returns: (str) The message to display to the user.


gazu.client.host_is_up()

Check if the host is up.

Returns: (bool) True if the host is up.


gazu.client.host_is_valid()

Check if the host is valid by simulating a fake login.

Returns: (bool) True if the host is valid.


gazu.client.import_data(model_name, data)

Import data for given model.

NameTypeDescription
model_namestrThe data model to import.
datadictThe data to import.

Returns: (dict) The imported data.


gazu.client.make_auth_header()

Make headers required to authenticate.

Returns: (dict[str, str]) Headers required to authenticate.


gazu.client.post(path, data)

Run a post request toward given path for configured host.

NameTypeDescription
pathstrThe path to query.
dataAnyThe data to post.

gazu.client.put(path, data)

Run a put request toward given path for configured host.

NameTypeDescription
pathstrThe path to query.
datadictThe data to put.

gazu.client.set_event_host(new_host)

Set the host on which listening for events.

NameTypeDescription
new_hoststrThe new host to set.

Returns: (str) The new event host.


gazu.client.set_host(new_host)

Set the host for the client.

NameTypeDescription
new_hoststrThe new host to set.

Returns: (str) The new host.


gazu.client.set_tokens(new_tokens)

Store authentication token to reuse them for all requests.

NameTypeDescription
new_tokensdictTokens to use for authentication.

Returns: (dict[str, str]) The stored tokens.


gazu.client.update(model_name, model_id, data)

Update an entry for given model, id and data.

NameTypeDescription
model_namestrThe model type involved.
model_idstrThe target model id.
datadictThe data to update.

Returns: (dict) Updated entry


gazu.client.upload(path, file_path = None, data = None, extra_files = None, files = None, progress_callback = None)

Upload file located at *file_path* to given url *path*.

NameTypeDescription
pathstrThe url path to upload file.
file_pathstrThe file location on the hard drive.
datadictThe data to send with the file.
extra_fileslistList of extra files to upload.
filesdictThe dictionary of files to upload.
progress_callbackCallableCallback ``(bytes_read, total)`` invoked during upload. *total* is the sum of all file sizes.

Returns: (Any) Response from the API.


gazu.client.url_path_join(*items)

Make it easier to build url path by joining every arguments with a '/' character.

NameTypeDescription
itemslistPath elements

Returns: (str) The joined path.


concept

gazu.concept.all_concepts()

Returns: (list[dict]) All concepts from database.


gazu.concept.all_concepts_for_project(project)

NameTypeDescription
projectstr / dictThe project dict or the project ID.

Returns: (list[dict]) Concepts from database for the given project.


gazu.concept.all_previews_for_concept(concept)

NameTypeDescription
conceptstr / dictThe concept dict or the concept ID.

Returns: (list[dict]) Previews from database for given concept.


gazu.concept.get_concept(concept_id)

NameTypeDescription
concept_idstrID of claimed concept.

Returns: (dict) Concept corresponding to given concept ID.


gazu.concept.get_concept_by_name(project, concept_name)

NameTypeDescription
projectstr / dictThe project dict or the project ID.
concept_namestrName of claimed concept.

Returns: (dict | None) Concept corresponding to given name and project.


gazu.concept.new_concept(project, name, description = None, data = None, entity_concept_links = None)

Create a concept for given project. Allow to set metadata too.

NameTypeDescription
projectstr / dictThe project dict or the project ID.
namestrThe name of the concept to create.
description-
datadictFree field to set metadata of any kind.
entity_concept_linkslistList of entities to tag, as either ID strings or model dicts.

gazu.concept.remove_concept(concept, force = False)

Remove the given Concept from the database. If the Concept has tasks linked to it, this will by default mark the Concept as canceled. Deletion can be forced regardless of task links with the `force` parameter.

NameTypeDescription
conceptdict / strConcept to remove.
forceboolWhether to force the deletion of the concept.

gazu.concept.update_concept(concept)

Save given concept data into the API. Metadata are fully replaced by the ones set on given concept.

NameTypeDescription
conceptdictThe concept dict to update.

Returns: (dict) Updated concept.


context

gazu.context.all_asset_types_for_project(project, user_context = False)

Return the list of asset types for which the user has a task.

NameTypeDescription
project-
user_context-

gazu.context.all_assets_for_asset_type_and_project(project, asset_type, user_context = False)

Return the list of assets for given project and asset_type and for which the user has a task.

NameTypeDescription
project-
asset_type-
user_context-

gazu.context.all_assets_for_project(project, user_context = False)

Return the list of assets for which the user has a task.

NameTypeDescription
project-
user_context-

gazu.context.all_episodes_for_project(project, user_context = False)

Return the list of episodes for given project and current user.

NameTypeDescription
project-
user_context-

gazu.context.all_open_projects(user_context = False)

Return the list of projects for which the user has a task.

NameTypeDescription
user_context-

gazu.context.all_scenes_for_project(project, user_context = False)

Return the list of scenes for given project and current user.

NameTypeDescription
project-
user_context-

gazu.context.all_scenes_for_sequence(sequence, user_context = False)

Return the list of scenes for given sequence and current user.

NameTypeDescription
sequence-
user_context-

gazu.context.all_sequences_for_episode(episode, user_context = False)

Return the list of sequences for given episode and current user.

NameTypeDescription
episode-
user_context-

gazu.context.all_sequences_for_project(project, user_context = False)

Return the list of sequences for given project and current user.

NameTypeDescription
project-
user_context-

gazu.context.all_shots_for_sequence(sequence, user_context = False)

Return the list of shots for given sequence and current user.

NameTypeDescription
sequence-
user_context-

gazu.context.all_task_types_for_asset(asset, user_context = False)

Return the list of tasks for given asset and current user.

NameTypeDescription
asset-
user_context-

gazu.context.all_task_types_for_scene(scene, user_context = False)

Return the list of tasks for given scene and current user.

NameTypeDescription
scene-
user_context-

gazu.context.all_task_types_for_sequence(sequence, user_context = False)

Return the list of tasks for given sequence and current user.

NameTypeDescription
sequence-
user_context-

gazu.context.all_task_types_for_shot(shot, user_context = False)

Return the list of tasks for given shot and current user.

NameTypeDescription
shot-
user_context-

edit

gazu.edit.all_edits_for_project(project)

NameTypeDescription
projectstr / dictThe project dict or the project ID.

Returns: (list[dict]) Edits from database or for given project.


gazu.edit.all_previews_for_edit(edit)

NameTypeDescription
editstr / dictThe edit dict or the edit ID.

Returns: (list[dict]) Previews from database for given edit.


gazu.edit.get_edit(edit_id)

NameTypeDescription
edit_idstrID of claimed edit.

Returns: (dict) Edit corresponding to given edit ID.


gazu.edit.get_edit_by_name(project, edit_name)

NameTypeDescription
projectstr / dictThe project dict or the project ID.
edit_namestrName of claimed edit.

Returns: (dict | None) Edit corresponding to given name and sequence.


gazu.edit.get_edit_url(edit)

NameTypeDescription
editstr / dictThe edit dict or the edit ID.

Returns: (str) Web url associated to the given edit


gazu.edit.new_edit(project, name, description = None, data = None, episode = None)

Create an edit for given project (and episode if given). Allow to set metadata too.

NameTypeDescription
projectstr / dictThe project dict or the project ID.
namestrThe name of the edit to create.
descriptionstrThe description of the edit to create.
datadictFree field to set metadata of any kind.
episodestr / dictThe episode dict or the episode ID.

gazu.edit.remove_edit(edit, force = False)

Remove given edit from database. If the Edit has tasks linked to it, this will by default mark the Edit as canceled. Deletion can be forced regardless of task links with the `force` parameter.

NameTypeDescription
editstr / dictEdit to remove.
forceboolWhether to force deletion of the edit regardless of whether it has links to tasks.

gazu.edit.update_edit(edit)

Save given edit data into the API. Metadata are fully replaced by the ones set on given edit.

NameTypeDescription
editdictThe edit dict to update.

Returns: (dict) Updated edit.


gazu.edit.update_edit_data(edit, data = None)

Update the metadata for the provided edit. Keys that are not provided are not changed.

NameTypeDescription
editstr / dictThe edit dict or ID to save in database.
datadictFree field to set metadata of any kind.

Returns: (dict) Updated edit.


entity

gazu.entity.all_entities()

Returns: (list[dict]) Retrieve all entities


gazu.entity.all_entities_with_tasks_linked_to_entity(entity)

NameTypeDescription
entitystr / dictEntity to get linked entities.

Returns: (list[dict]) Retrieve all entities linked to given entity.


gazu.entity.all_entity_types()

Returns: (list[dict]) Entity types listed in database.


gazu.entity.get_entity(entity_id)

NameTypeDescription
entity_idstrID of claimed entity.

Returns: (dict) asset, shot, sequence, episode, etc).


gazu.entity.get_entity_by_name(entity_name, project = None)

NameTypeDescription
entity_namestrThe name of the claimed entity.
projectstr / dictProject ID or dict.

gazu.entity.get_entity_type(entity_type_id)

NameTypeDescription
entity_type_idstrID of claimed entity type.

gazu.entity.get_entity_type_by_name(entity_type_name)

NameTypeDescription
entity_type_namestrThe name of the claimed entity type

gazu.entity.guess_from_path(project_id, path, sep = '/')

Get list of possible project file tree templates matching a file path and data ids corresponding to template tokens.

NameTypeDescription
project_idstrProject id of given file
pathstrPath to a file
sepstrFile path separator, defaults to "/"

Returns: (list[dict]) dictionaries with the corresponding entities and template name.


gazu.entity.new_entity_type(name)

Creates an entity type with the given name.

NameTypeDescription
namestrThe name of the entity type

Returns: (dict) If an entity type with that name already exists.


gazu.entity.remove_entity(entity, force = False)

Remove given entity from database. If the Entity has tasks linked to it, this will by default mark the Entity as canceled. Deletion can be forced regardless of task links with the `force` parameter.

NameTypeDescription
entitydictEntity to remove.
forceboolWhether to force deletion of the entity regardless of whether it has links to tasks.

gazu.entity.remove_entity_type(entity_type)

Remove given entity type from database.

NameTypeDescription
entity_typestr / dictEntity type to remove.

files

gazu.files.all_output_files_for_asset_instance(asset_instance, temporal_entity = None, task_type = None, output_type = None, name = None, representation = None, file_status = None)

NameTypeDescription
asset_instancestr / dictThe instance dict or ID.
temporal_entitystr / dictShot dict or ID (or scene or sequence).
task_typestr / dictThe task type dict or ID.
output_typestr / dictThe output_type dict or ID.
namestrThe file name
representationstrThe file representation
file_statusstr / dictThe file status

Returns: (list[dict]) Output files for a given asset instance, temporal entity, output type, task_type, name and representation


gazu.files.all_output_files_for_entity(entity, output_type = None, task_type = None, name = None, representation = None, file_status = None)

NameTypeDescription
entitystr / dictThe entity dict or ID.
output_typestr / dictThe output type dict or ID.
task_typestr / dictThe task type dict or ID.
namestrThe file name
representationstrThe file representation
file_statusstr / dictThe file status

Returns: (list[dict]) Output files for a given entity (asset or shot), output type, task_type, name and representation


gazu.files.all_output_files_for_project(project, output_type = None, task_type = None, name = None, representation = None, file_status = None)

NameTypeDescription
projectstr / dictThe project dict or ID.
output_typestr / dictThe output type dict or ID.
task_typestr / dictThe task type dict or ID.
namestrThe file name
representationstrThe file representation
file_statusstr / dictThe file status

Returns: (list[dict]) Output files for a given project (asset or shot), output type, task_type, name and representation


gazu.files.all_output_types()

Returns: (list[dict]) Output types listed in database.


gazu.files.all_output_types_for_asset_instance(asset_instance, temporal_entity)

NameTypeDescription
asset_instance-
temporal_entity-

Returns: (list[dict]) Output types for given asset instance and entity (shot or scene).


gazu.files.all_output_types_for_entity(entity)

NameTypeDescription
entitystr / dictThe entity dict or the entity ID.

Returns: (list[dict]) All output types linked to output files for given entity.


gazu.files.all_softwares()

Returns: (list[dict]) Software versions listed in database.


gazu.files.build_asset_instance_output_file_path(asset_instance, temporal_entity, output_type, task_type, name = 'main', representation = '', mode = 'output', revision = 0, nb_elements = 1, sep = '/')

From the file path template configured at the project level and arguments, it builds a file path location where to store related DCC output file.

NameTypeDescription
asset_instance-
temporal_entity-
output_typestr / dictOutput type of the generated file.
task_typestr / dictTask type related to output file.
namestrAdditional suffix for the working file name.
representationstrAllow to select a template inside the template.
modestrAllow to select a template inside the template.
revisionintFile revision.
nb_elementsstrTo represent an image sequence, the amount of file is needed.
sepstrOS separator.

gazu.files.build_entity_output_file_path(entity, output_type, task_type, name = 'main', mode = 'output', representation = '', revision = 0, nb_elements = 1, sep = '/')

From the file path template configured at the project level and arguments, it builds a file path location where to store related DCC output file.

NameTypeDescription
entitystr / dictEntity for which an output file is needed.
output_typestr / dictOutput type of the generated file.
task_typestr / dictTask type related to output file.
namestrAdditional suffix for the working file name.
modestrAllow to select a template inside the template.
representationstrAllow to select a template inside the template.
revisionintFile revision.
nb_elementsintTo represent an image sequence, the amount of file is needed.
sepstrOS separator.

gazu.files.build_working_file_path(task, name = 'main', mode = 'working', software = None, revision = 1, sep = '/')

From the file path template configured at the project level and arguments, it builds a file path location where to store related DCC file.

NameTypeDescription
taskstr / dictTask related to working file.
namestrAdditional suffix for the working file name.
modestrAllow to select a template inside the template.
softwarestr / dictSoftware at the origin of the file.
revisionintFile revision.
sepstrOS separator.

gazu.files.download_attachment_file(attachment_file, file_path, progress_callback=None)

Download given attachment file and save it at given location.

NameTypeDescription
attachment_filestr / dictThe attachment file dict or ID.
file_pathstrLocation on hard drive where to save the file.
progress_callback-

gazu.files.download_attachment_thumbnail(attachment_file, file_path, progress_callback=None)

Download the attachment file thumbnail.

NameTypeDescription
attachment_filestr / dictThe attachment file dict or ID.
file_pathstrLocation on hard drive where to save the file.
progress_callback-

Returns: (requests.Response) Response object from the download request.


gazu.files.download_organisation_avatar(organisation, file_path, progress_callback=None)

Download given organisation's avatar and save it at given location.

NameTypeDescription
organisationstr / dictThe organisation dict or ID.
file_pathstrLocation on hard drive where to save the file.
progress_callback-

gazu.files.download_person_avatar(person, file_path, progress_callback=None)

Download given person's avatar and save it at given location.

NameTypeDescription
personstr / dictThe person dict or ID.
file_pathstrLocation on hard drive where to save the file.
progress_callback-

gazu.files.download_preview_file(preview_file, file_path, progress_callback=None)

Download given preview file and save it at given location.

NameTypeDescription
preview_filestr / dictThe preview file dict or ID.
file_pathstrLocation on hard drive where to save the file.
progress_callback-

gazu.files.download_preview_file_cover(preview_file, file_path, progress_callback=None)

Download given preview file cover and save it at given location.

NameTypeDescription
preview_filestr / dictThe preview file dict or ID.
file_pathstrLocation on hard drive where to save the file.
progress_callback-

gazu.files.download_preview_file_thumbnail(preview_file, file_path, progress_callback=None)

Download given preview file thumbnail and save it at given location.

NameTypeDescription
preview_filestr / dictThe preview file dict or ID.
file_pathstrLocation on hard drive where to save the file.
progress_callback-

gazu.files.download_preview_lowdef_movie(preview_file, file_path, progress_callback=None)

Download the low-definition preview movie file.

NameTypeDescription
preview_filestr / dictThe preview file dict or ID.
file_pathstrLocation on hard drive where to save the file.
progress_callback-

Returns: (requests.Response) Response object from the download request.


gazu.files.download_preview_movie(preview_file, file_path, progress_callback=None)

Download the preview movie file.

NameTypeDescription
preview_filestr / dictThe preview file dict or ID.
file_pathstrLocation on hard drive where to save the file.
progress_callback-

Returns: (requests.Response) Response object from the download request.


gazu.files.download_project_avatar(project, file_path, progress_callback=None)

Download given project's avatar and save it at given location.

NameTypeDescription
projectstr / dictThe project dict or ID.
file_pathstrLocation on hard drive where to save the file.
progress_callback-

gazu.files.download_working_file(working_file, file_path = None, progress_callback=None)

Download given working file and save it at given location.

NameTypeDescription
working_filestr / dictThe working file dict or ID.
file_pathstrLocation on hard drive where to save the file.
progress_callback-

gazu.files.extract_frame_from_preview(preview_file, frame_number, file_path = None, progress_callback=None)

Extract a specific frame from a preview file.

NameTypeDescription
preview_filestr / dictThe preview file dict or ID.
frame_numberintThe frame number to extract.
file_pathstrOptional location on hard drive where to save the frame. If not provided, returns the response without saving.
progress_callback-

Returns: (requests.Response) Response object containing the extracted frame.


gazu.files.extract_tile_from_preview(preview_file, file_path = None, progress_callback=None)

Extract a tile from a preview file.

NameTypeDescription
preview_filestr / dictThe preview file dict or ID.
file_pathstrOptional location on hard drive where to save the tile. If not provided, returns the response without saving.
progress_callback-

Returns: (requests.Response) Response object containing the extracted tile.


gazu.files.get_all_attachment_files_for_project(project)

Retrieves all the attachment files for a given project.

NameTypeDescription
projectstr / dictTarget project, as ID string or model dict.

Returns: (list[dict]) Attachment files for the project.


gazu.files.get_all_attachment_files_for_task(task)

Retrieves all the attachment files for a given task.

NameTypeDescription
taskstr / dictTarget task, as ID string or model dict.

gazu.files.get_all_preview_files_for_task(task)

Retrieves all the preview files for a given task.

NameTypeDescription
taskstr / dictTarget task, as ID string or model dict.

gazu.files.get_all_working_files_for_entity(entity, task = None, name = None)

Retrieves all the working files of a given entity and specied parameters

NameTypeDescription
entity-
task-
name-

gazu.files.get_attachment_file(attachment_file_id)

Return attachment file object corresponding to given ID.

NameTypeDescription
attachment_file_idstrThe attachment file ID.

gazu.files.get_attachment_thumbnail_url(attachment_file)

Get the URL for the attachment file thumbnail.

NameTypeDescription
attachment_filestr / dictThe attachment file dict or ID.

Returns: (str) URL to the attachment thumbnail.


gazu.files.get_file_status(status_id)

Return file status object corresponding to given ID.

NameTypeDescription
status_idstrThe files status ID.

gazu.files.get_file_status_by_name(name)

Return file status object corresponding to given name

NameTypeDescription
namestrThe files status name.

gazu.files.get_last_asset_instance_output_revision(asset_instance, temporal_entity, output_type, task_type, name = 'master')

Generate last output revision for given asset instance.

NameTypeDescription
asset_instance-
temporal_entity-
output_type-
task_type-
name-

gazu.files.get_last_entity_output_revision(entity, output_type, task_type, name = 'master')

NameTypeDescription
entitystr / dictThe entity dict or ID.
output_typestr / dictThe entity dict or ID.
task_typestr / dictThe entity dict or ID.
namestrThe output name

Returns: (int) Last revision of ouput files for given entity, output type and task type.


gazu.files.get_last_output_files_for_asset_instance(asset_instance, temporal_entity, task_type = None, output_type = None, name = None, representation = None, file_status = None)

NameTypeDescription
asset_instancestr / dictThe asset instance dict or ID.
temporal_entitystr / dictThe temporal entity dict or ID.
task_typestr / dictThe task type dict or ID.
output_typestr / dictThe output type dict or ID.
namestrThe file name
representationstrThe file representation
file_statusstr / dictThe file status

Returns: (list[dict]) last output files for given asset instance and temporal entity where it appears.


gazu.files.get_last_output_files_for_entity(entity, output_type = None, task_type = None, name = None, representation = None, file_status = None)

NameTypeDescription
entitystr / dictThe entity dict or ID.
output_typestr / dictThe output type dict or ID.
task_typestr / dictThe task type dict or ID.
namestrThe file name
representationstrThe file representation
file_statusstr / dictThe file status

Returns: (list[dict]) Last output files for a given entity (asset or shot), output type, task_type, name and representation


gazu.files.get_last_working_file_revision(task, name = 'main')

NameTypeDescription
taskstr / dictThe task dict or the task ID.
namestrFile name suffix (optional)

Returns: (dict) Last revisions stored in the API for given task and given file name suffix.


gazu.files.get_last_working_files(task)

NameTypeDescription
taskstr / dictThe task dict or the task ID.

Returns: (dict) Keys are working file names and values are last working file availbable for given name.


gazu.files.get_next_asset_instance_output_revision(asset_instance, temporal_entity, output_type, task_type, name = 'master')

NameTypeDescription
asset_instancestr / dictThe asset instance dict or ID.
temporal_entitystr / dictThe temporal entity dict or ID.
output_typestr / dictThe entity dict or ID.
task_typestr / dictThe entity dict or ID.
name-

Returns: (int) Next revision of ouput files available for given asset insance temporal entity, output type and task type.


gazu.files.get_next_entity_output_revision(entity, output_type, task_type, name = 'main')

NameTypeDescription
entitystr / dictThe entity dict or ID.
output_typestr / dictThe entity dict or ID.
task_typestr / dictThe entity dict or ID.
namestrGet version for output file with the given name.

Returns: (int) Next revision of output files available for given entity, output type and task type.


gazu.files.get_output_file(output_file_id)

NameTypeDescription
output_file_idstrID of claimed output file.

Returns: (dict) Output file matching given ID.


gazu.files.get_output_file_by_path(path)

NameTypeDescription
pathstrPath of claimed output file.

Returns: (dict | None) Output file matching given path, or None if there are no matches.


gazu.files.get_output_type(output_type_id)

NameTypeDescription
output_type_idstrID of claimed output type.

Returns: (dict) Output type matching given ID.


gazu.files.get_output_type_by_name(output_type_name)

NameTypeDescription
output_type_namestrname of claimed output type.

Returns: (dict | None) Output type matching given name.


gazu.files.get_preview_file(preview_file_id)

NameTypeDescription
preview_file_idstrID of claimed preview file.

Returns: (dict) Preview file corresponding to given ID.


gazu.files.get_preview_file_url(preview_file)

Return given preview file URL

NameTypeDescription
preview_filestr / dictThe preview file dict or ID.

gazu.files.get_preview_lowdef_movie_url(preview_file)

Get the URL for the low-definition preview movie file.

NameTypeDescription
preview_filestr / dictThe preview file dict or ID.

Returns: (str) URL to the low-definition preview movie file.


gazu.files.get_preview_movie_url(preview_file, lowdef = False)

Get the URL for the preview movie file.

NameTypeDescription
preview_filestr / dictThe preview file dict or ID.
lowdefboolIf True, returns the low-definition version URL. If False, returns the original/high-definition version URL.

Returns: (str) URL to the preview movie file.


gazu.files.get_running_preview_files()

Get all preview files currently being processed.

Returns: (list[dict]) Preview files that are currently running/processing.


gazu.files.get_software(software_id)

NameTypeDescription
software_idstrID of claimed output type.

Returns: (dict) Software object corresponding to given ID.


gazu.files.get_software_by_name(software_name)

NameTypeDescription
software_namestrName of claimed output type.

Returns: (dict | None) Software object corresponding to given name.


gazu.files.get_working_file(working_file_id)

NameTypeDescription
working_file_idstrID of claimed working file.

Returns: (dict) Working file corresponding to given ID.


gazu.files.get_working_files_for_task(task)

NameTypeDescription
taskstr / dictThe task dict or the task ID.

Returns: (list[dict]) Working files related to given task.


gazu.files.new_asset_instance_output_file(asset_instance, temporal_entity, output_type, task_type, comment, name = 'master', mode = 'output', working_file = None, person = None, revision = 0, nb_elements = 1, representation = '', sep = '/', file_status_id = None)

Create a new output file for given asset instance, temporal entity, task type and output type. It generates and store the expected path and sets a revision number (last revision + 1).

NameTypeDescription
asset_instancestr / dictAsset instance for which an output file is needed.
temporal_entitystr / dictTemporal entity for which an output file is needed.
output_typestr / dictOutput type of the generated file.
task_typestr / dictTask type related to output file.
commentstrComment related to created revision.
namestrAdditional suffix for the working file name.
modestrAllow to select a template inside the template.
working_filestr / dictWorking file which is the source of the generated file.
personstr / dictAuthor of the file.
revisionintFile revision.
nb_elementsintTo represent an image sequence, the amount of file needed.
representationstrDifferentiate file extensions. It can be useful to build folders based on extensions like abc, jpg, cetc.
sepstrOS separator.
file_status_ididThe id of the file status to set at creation

gazu.files.new_entity_output_file(entity, output_type, task_type, comment, working_file = None, person = None, name = 'main', mode = 'output', revision = 0, nb_elements = 1, representation = '', sep = '/', file_status_id = None)

Create a new output file for given entity, task type and output type. It generates and store the expected path and sets a revision number (last revision + 1).

NameTypeDescription
entitystr / dictEntity for which an output file is needed.
output_typestr / dictOutput type of the generated file.
task_typestr / dictTask type related to output file.
commentstrComment related to created revision.
working_filestr / dictWorking file which is the source of the generated file.
personstr / dictAuthor of the file.
namestrAdditional suffix for the working file name.
modestrAllow to select a template inside the template.
revisionintFile revision.
nb_elementsintTo represent an image sequence, the amount of file is needed.
representationstrDifferientate file extensions. It can be useful to build folders based on extensions like abc, jpg, etc.
sepstrOS separator.
file_status_ididThe id of the file status to set at creation

Returns: (dict) Created output file.


gazu.files.new_file_status(name, color)

Create a new file status if not existing yet. If the file status already exists, the existing record will be returned.

NameTypeDescription
namestrthe name of the status to create.
colorstrThe color for the status as a Hex string, e.g "#00FF00".

gazu.files.new_output_type(name, short_name)

Create a new output type in database.

NameTypeDescription
namestrName of created output type.
short_namestrName shorten to represente the type in UIs.

Returns: (dict) Created output type.


gazu.files.new_software(name, short_name, file_extension, secondary_extensions = None)

Create a new software in datatabase.

NameTypeDescription
namestrName of created software.
short_namestrShort representation of software name (for UIs).
file_extensionstrMain file extension generated by given software.
secondary_extensionslist[str] | NoneOptional list of secondary file extensions (e.g. ["ma", "mb"] for Maya).

Returns: (dict) Created software.


gazu.files.new_working_file(task, name = 'main', mode = 'working', software = None, comment = '', person = None, revision = 0, sep = '/')

Create a new working_file for given task. It generates and store the expected path for given task and options. It sets a revision number (last revision + 1).

NameTypeDescription
taskstr / dictTask related to working file.
namestrAdditional suffix for the working file name.
modestrAllow to select a template inside the template.
softwarestr / dictSoftware at the origin of the file.
commentstrComment related to created revision.
personstr / dictAuthor of the file.
revisionintFile revision.
sepstrOS separator.

gazu.files.remove_preview_file(preview_file, force = False)

Remove given preview file from database. Depending on the configuration of the Kitsu server, the stored files linked to the preview file may or may not be removed on deletion of a preview file. The `force=True` parameter can be used to force deletion of the files regardless of server config.

NameTypeDescription
preview_filestr / dictThe preview_file dict or ID.
forceboolWhether to force deletion of the files linked to the preview file in storage.

gazu.files.set_project_file_tree(project, file_tree_name)

(Deprecated) Set given file tree template on given project. This template will be used to generate file paths. The template is selected from sources. It is found by using given name.

NameTypeDescription
projectstr / dictThe project file dict or ID.
file_tree_name-

Returns: (dict) Modified project.


gazu.files.update_comment(working_file, comment)

Update the file comment in database for given working file.

NameTypeDescription
working_filestr / dictThe working file dict or ID.
comment-

Returns: (dict) Modified working file


gazu.files.update_modification_date(working_file)

Update modification date of given working file with current time (now).

NameTypeDescription
working_filestr / dictThe working file dict or ID.

Returns: (dict) Modified working file


gazu.files.update_output_file(output_file, data)

Update the data of given output file.

NameTypeDescription
output_filestr / dictThe output file dict or ID.
datadictData to update on the output file.

Returns: (dict) Modified output file


gazu.files.update_preview(preview_file, data)

Update the data of given preview file.

NameTypeDescription
preview_filestr / dictThe preview file dict or ID.
datadictData to update on the prevew file.

Returns: (dict) Modified preview file


gazu.files.update_preview_annotations(preview_file, additions = None, updates = None, deletions = None)

Update annotations on a preview file. Allow to modify the annotations stored at the preview level. Modifications are applied via three fields: additions to give all the annotations that need to be added, updates that list annotations that need to be modified, and deletions to list the IDs of annotations that need to be removed.

NameTypeDescription
preview_filestr / dictThe preview file dict or ID.
additionslist[dict]Annotations to add. Each annotation should be a dict with properties like 'x', 'y', 'type', etc. Example: [{"x": 100, "y": 200, "type": "drawing"}]
updateslist[dict]Annotations to update. Each annotation should include an 'id' field along with the fields to update. Example: [{"id": "uuid", "x": 150, "y": 250}]
deletionslist[str]Annotation IDs to remove. Example: ["a24a6ea4-ce75-4665-a070-57453082c25"]

Returns: (dict) Updated preview file with the updated annotations array.


gazu.files.update_preview_position(preview_file, position)

Update the position of a preview file (the displayed order for a single revision).

NameTypeDescription
preview_filestr / dictThe preview file dict or ID.
positionfloatThe new position value.

Returns: (dict) Updated preview file.


gazu.files.update_project_file_tree(project, file_tree)

Set given dict as file tree template on given project. This template will be used to generate file paths.

NameTypeDescription
projectstr / dictThe project dict or ID.
file_treedictThe file tree template to set on project.

Returns: (dict) Modified project.


gazu.files.update_software(software)

Save given software data into the API. Use this to set or change secondary_extensions and other fields.

NameTypeDescription
softwaredictThe software dict to update (must include "id").

Returns: (dict) Updated software.


gazu.files.upload_organisation_avatar(organisation, file_path, progress_callback=None)

Upload given file as organisation avatar.

NameTypeDescription
organisationstr / dictThe organisation dict or ID.
file_pathstrPath of the file to upload as avatar.
progress_callback-

Returns: (dict[Literal['thumbnail_path'], str]) Dictionary with a key of 'thumbnail_path' and a value of the path to the static image file, relative to the host url.


gazu.files.upload_person_avatar(person, file_path, progress_callback=None)

Upload given file as person avatar.

NameTypeDescription
personstr / dictThe person dict or the person ID.
file_pathstrPath of the file to upload as avatar.
progress_callback-

Returns: (dict[Literal['thumbnail_path'], str]) Dictionary with a key of 'thumbnail_path' and a value of the path to the static image file, relative to the host url.


gazu.files.upload_project_avatar(project, file_path, progress_callback=None)

Upload given file as project avatar.

NameTypeDescription
projectstr / dictThe project dict or ID.
file_pathstrPath of the file to upload as avatar.
progress_callback-

Returns: (dict[Literal['thumbnail_path'], str]) Dictionary with a key of 'thumbnail_path' and a value of the path to the static image file, relative to the host url.


gazu.files.upload_working_file(working_file, file_path, progress_callback=None)

Save given file in working file storage.

NameTypeDescription
working_filestr / dictThe working file dict or ID.
file_pathstrLocation on hard drive where to save the file.
progress_callback-

Returns: (dict) the working file model dictionary.


person

gazu.person.add_person_to_department(person, department)

Add a person to a department.

NameTypeDescription
personstr / dictThe person dict or id.
departmentstr / dictThe department dict or id.

Returns: (dict) Response information.


gazu.person.all_departments()

Returns: (list[dict]) Departments listed in database.


gazu.person.all_organisations()

Returns: (list[dict]) Organisations listed in database.


gazu.person.all_persons()

Returns: (list[dict]) Persons listed in database.


gazu.person.change_password_for_person(person, password)

Change the password for given person.

NameTypeDescription
personstr / dictThe person dict or the person ID.
passwordstrThe new password.

Returns: (dict[Literal['success'], bool]) success or not.


gazu.person.clear_person_avatar(person)

Clear avatar for a person.

NameTypeDescription
personstr / dictThe person dict or id.

Returns: (str) Request response object.


gazu.person.disable_two_factor_authentication(person)

Disable two factor authentication for a person.

NameTypeDescription
personstr / dictThe person dict or id.

Returns: (str) Request response object.


gazu.person.get_all_month_time_spents(id, date)

NameTypeDescription
idstrAn uuid identifying a person.
datedatetime.dateThe date of the month to query.

Returns: (list) All of the person's time spents for the given month.


gazu.person.get_day_offs(person)

Get day offs for a person.

NameTypeDescription
personstr / dictThe person dict or id.

Returns: (list[dict]) Day offs for the person.


gazu.person.get_department(department_id)

NameTypeDescription
department_idstrAn uuid identifying a department.

Returns: (dict) Department corresponding to given department_id.


gazu.person.get_department_by_name(name)

NameTypeDescription
namestrDepartment name.

Returns: (dict | None) Department corresponding to given name.


gazu.person.get_month_day_offs(person, year, month)

Get day offs for a person for a specific month.

NameTypeDescription
personstr / dictThe person dict or id.
yearintYear.
monthintMonth number.

Returns: (list[dict]) Day offs for the month.


gazu.person.get_organisation()

Returns: (dict) Database information for organisation linked to auth tokens.


gazu.person.get_person(id, relations = False)

NameTypeDescription
idstrAn uuid identifying a person.
relationsboolWhether to get the relations for the given person.

Returns: (dict | None) Person corresponding to given id, or None if no Person exists with that ID.


gazu.person.get_person_by_desktop_login(desktop_login)

NameTypeDescription
desktop_loginstrLogin used to sign in on the desktop computer.

Returns: (dict | None) Person corresponding to given desktop computer login.


gazu.person.get_person_by_email(email)

NameTypeDescription
emailstrUser's email.

Returns: (dict | None) Person corresponding to given email.


gazu.person.get_person_by_full_name(full_name, first_name = None, last_name = None)

NameTypeDescription
full_namestrUser's full name
first_namestrUser's first name
last_namestrUser's last name

Returns: (dict | None) Person corresponding to given name, or None if not found.


gazu.person.get_person_url(person)

NameTypeDescription
personstr / dictThe person dict or the person ID.

Returns: (str) Web url associated to the given person


gazu.person.get_presence_log(year, month)

NameTypeDescription
yearintThe number of the year to fetch logs during.
monthintThe index of the month to get presence logs for. Indexed from 1, e.g 1 = January, 2 = February, ...

Returns: (str) The presence log table (in CSV) for given month and year.


gazu.person.get_time_spents_by_date(person, date)

Get time spents for a person on a specific date.

NameTypeDescription
personstr / dictThe person dict or id.
datestrDate in YYYY-MM-DD format.

Returns: (list[dict]) Time spents for the date.


gazu.person.get_time_spents_range(person_id, start_date, end_date)

Gets the time spents of the current user for the given date range.

NameTypeDescription
person_idstrAn uuid identifying a person.
start_datestrThe first day of the date range as a date string with the following format: YYYY-MM-DD
end_datestrThe last day of the date range as a date string with the following format: YYYY-MM-DD

Returns: (list) All of the person's time spents


gazu.person.get_week_day_offs(person, year, week)

Get day offs for a person for a specific week.

NameTypeDescription
personstr / dictThe person dict or id.
yearintYear.
weekintWeek number.

Returns: (list[dict]) Day offs for the week.


gazu.person.get_week_time_spents(person, year, week)

Get time spents for a person for a specific week.

NameTypeDescription
personstr / dictThe person dict or id.
yearintYear.
weekintWeek number.

Returns: (list[dict]) Time spents for the week.


gazu.person.get_year_day_offs(person, year)

Get day offs for a person for a specific year.

NameTypeDescription
personstr / dictThe person dict or id.
yearintYear.

Returns: (list[dict]) Day offs for the year.


gazu.person.get_year_time_spents(person, year)

Get time spents for a person for a specific year.

NameTypeDescription
personstr / dictThe person dict or id.
yearintYear.

Returns: (list[dict]) Time spents for the year.


gazu.person.invite_person(person)

Sends an email to given person to invite him/her to connect to Kitsu.

NameTypeDescription
personstr / dictThe person to invite.

Returns: (dict[str, str]) Response dict with 'success' and 'message' keys.


gazu.person.new_bot(name, email, role = 'user', departments = None, active = True, expiration_date = None)

Create a new bot based on given parameters. His access token will be in the return dict.

NameTypeDescription
namestrthe name of the bot.
emailstrthe email of the bot.
rolestruser, manager, admin (which match CG artist, Supervisor and studio manager)
departmentslistThe departments for the person.
activeboolWhether the person is active or not.
expiration_datestrThe expiration date for the bot.

Returns: (dict) Created bot.


gazu.person.new_department(name, color = '', archived = False)

Create a new department based on given parameters.

NameTypeDescription
namestrthe name of the department.
colorstrthe color of the department as a Hex string, e.g "#00FF00".
archivedboolWhether the department is archived or not.

Returns: (dict) Created department.


gazu.person.new_person(first_name, last_name, email, phone = '', role = 'user', desktop_login = '', departments = None, password = None, active = True, contract_type = 'open-ended')

Create a new person based on given parameters. His/her password will is set automatically to default.

NameTypeDescription
first_namestrthe first name of the person.
last_namestrthe last name of the person.
emailstrthe email of the person.
phonestrthe phone number of the person.
rolestruser, manager, admin (which match CG artist, Supervisor and studio manager)
desktop_loginstrThe login the users uses to log on its computer.
departmentslistThe departments for the person.
passwordstrThe password for the person.
activeboolWhether the person is active or not.
contract_type-

Returns: (dict) Created person.


gazu.person.remove_bot(bot, force = False)

Remove given bot from database.

NameTypeDescription
botdictBot to remove.
force-

gazu.person.remove_department(department, force=False)

Remove given department from database.

NameTypeDescription
departmentdict / IDDepartment to remove.
forceboolWhether to force deletion of the department.

gazu.person.remove_person(person, force = False)

Remove given person from database.

NameTypeDescription
personstr / dictPerson to remove.
force-

gazu.person.remove_person_from_department(person, department)

Remove a person from a department.

NameTypeDescription
personstr / dictThe person dict or id.
departmentstr / dictThe department dict or id.

Returns: (str) Request response object.


gazu.person.set_avatar(person, file_path, progress_callback=None)

Upload picture and set it as avatar for given person.

NameTypeDescription
personstr / dictThe person dict or the person ID.
file_pathstrPath where the avatar file is located on the hard drive.
progress_callback-

Returns: (dict[Literal['thumbnail_path'], str]) Dictionary with a key of 'thumbnail_path' and a value of the path to the static image file, relative to the host url.


gazu.person.update_bot(bot)

Update a bot.

NameTypeDescription
botdictThe bot dict that needs to be upgraded.

Returns: (dict) The updated bot.


gazu.person.update_department(department)

Update a department.

NameTypeDescription
departmentdictThe department dict that needs to be updated.

Returns: (Unknown) The updated department.


gazu.person.update_person(person)

Update a person.

NameTypeDescription
persondictThe person dict that needs to be upgraded.

Returns: (dict) The updated person.


playlist

gazu.playlist.add_entity_to_playlist(playlist, entity, preview_file = None, persist = True)

Add an entity to the playlist, use the last uploaded preview as revision to review.

NameTypeDescription
playlistdictPlaylist object to modify.
entitystr / dictThe entity to add or its ID.
preview_filestr / dictSet it to force a give revision to review.
persistboolSet it to True to save the result to the API.

Returns: (dict) Updated playlist.


gazu.playlist.all_build_jobs_for_project(project)

Get all build jobs for a project.

NameTypeDescription
projectstr / dictThe project dict or id.

Returns: (list[dict]) All build jobs for the project.


gazu.playlist.all_playlists()

Returns: (list[dict]) All playlists for all projects.


gazu.playlist.all_playlists_for_episode(episode)

NameTypeDescription
episodestr / dictThe episode dict or the episode ID.

Returns: (list[dict]) All playlists for the given episode.


gazu.playlist.all_playlists_for_project(project, page = 1)

NameTypeDescription
projectstr / dictThe project dict or the project ID.
pageintPage number for pagination

Returns: (list[dict]) All playlists for the given project


gazu.playlist.all_shots_for_playlist(playlist)

NameTypeDescription
playliststr / dictThe playlist dict or the playlist ID.

Returns: (list[dict]) All shots linked to the given playlist


gazu.playlist.build_playlist_movie(playlist)

Build a movie for a playlist.

NameTypeDescription
playliststr / dictThe playlist dict or id.

Returns: (dict) Build job information.


gazu.playlist.delete_playlist(playlist)

Delete a playlist.

NameTypeDescription
playliststr / dictThe playlist dict or id.

Returns: (str) Request response object.


gazu.playlist.download_playlist_build(playlist, build_job, file_path, progress_callback=None)

Download a playlist build.

NameTypeDescription
playliststr / dictThe playlist dict or id.
build_jobstr / dictThe build job dict or id.
file_pathstrThe location to store the file on the hard drive.
progress_callback-

Returns: (requests.Response) Request response object.


gazu.playlist.download_playlist_zip(playlist, file_path, progress_callback=None)

Download a playlist as a zip file.

NameTypeDescription
playliststr / dictThe playlist dict or id.
file_pathstrThe location to store the file on the hard drive.
progress_callback-

Returns: (requests.Response) Request response object.


gazu.playlist.generate_temp_playlist(project, data)

Generate a temporary playlist.

NameTypeDescription
projectstr / dictThe project dict or id.
datadictPlaylist generation data.

Returns: (dict) Generated temporary playlist.


gazu.playlist.get_build_job(build_job)

Get a build job.

NameTypeDescription
build_jobstr / dictThe build job dict or id.

Returns: (dict) Build job information.


gazu.playlist.get_entity_preview_files(entity)

Get all preview files grouped by task type for a given entity.

NameTypeDescription
entitystr / dictThe entity to retrieve files from or its ID.

Returns: (dict[str, list[dict]]) A dict where keys are task type IDs and value array of revisions.


gazu.playlist.get_entity_previews(playlist)

Get entity previews for a playlist.

NameTypeDescription
playliststr / dictThe playlist dict or id.

Returns: (list[dict]) Entity previews for the playlist.


gazu.playlist.get_playlist(playlist)

NameTypeDescription
playliststr / dictThe playlist dict or the playlist ID.

Returns: (dict) playlist object for given id.


gazu.playlist.get_playlist_by_name(project, name)

NameTypeDescription
projectstr / dictThe project dict or the project ID.
namestrThe playlist name

Returns: (dict | None) Playlist matching given name for given project.


gazu.playlist.new_playlist(project, name, episode = None, for_entity: "Literal[('shot', 'asset', 'sequence')]" = 'shot', for_client = False, is_for_all = False)

Create a new playlist in the database for given project.

NameTypeDescription
projectstr / dictThe project dict or the project ID.
namestrPlaylist name.
episodestr / dict / NoneOptional episode dict or ID. If None, the playlist is project-level; set is_for_all=True to place it under "All Assets" in the web UI.
for_entitystrThe type of entity to include in the playlist, can be one of "asset", "sequence" or "shot".
for_clientboolWhether the playlist should be shared with clients.
is_for_allboolIf True and episode is None, the playlist is created under "All Assets" instead of "Main Pack" in the web UI.

Returns: (dict) Created playlist.


gazu.playlist.notify_clients_playlist_ready(playlist)

Notify clients that a playlist is ready.

NameTypeDescription
playliststr / dictThe playlist dict or id.

Returns: (dict) Notification response.


gazu.playlist.remove_build_job(build_job)

Delete a build job.

NameTypeDescription
build_jobstr / dictThe build job dict or id.

gazu.playlist.remove_entity_from_playlist(playlist, entity, persist = True)

Remove all occurences of a given entity from a playlist.

NameTypeDescription
playlistdictPlaylist object to modify
entitystr / dictthe entity to remove or its ID
persistboolSet it to True to save the result to the API.

Returns: (dict) Updated playlist.


gazu.playlist.update_entity_preview(playlist, entity, preview_file, persist = True)

Update the preview file linked to a given entity in a playlist.

NameTypeDescription
playlistdictPlaylist object to modify.
entitystr / dictThe entity to update the preview file for.
preview_filestr / dictThe new preview file to set for the entity.
persistboolSet it to True to save the result to the API.

Returns: (dict) Updated playlist.


gazu.playlist.update_playlist(playlist)

Save given playlist data into the API. Metadata are fully replaced by the ones set on given playlist.

NameTypeDescription
playlistdictThe playlist dict to update.

Returns: (dict) Updated playlist.


project

gazu.project.add_metadata_descriptor(project, name, entity_type, data_type = 'string', choices = None, for_client = False, departments = None)

Create a new metadata descriptor for a project.

NameTypeDescription
projectdict / IDThe project dict or id.
namestrThe name of the metadata descriptor
entity_typestrasset, shot or scene.
data_type-
choiceslistA list of possible values, empty list for free values. for_client (bool) : Wheter it should be displayed in Kitsu or not.
for_client-
departmentslistA list of departments dict or id.

Returns: (dict) Created metadata descriptor.


gazu.project.add_person_to_team(project, person)

Add a person to the team project.

NameTypeDescription
projectdict / IDThe project dict or id.
persondict / IDThe person dict or id.

Returns: (dict) The project dictionary.


gazu.project.add_preview_background_file(project, background_file: "dict[Literal['preview_background_file_id'], str]")

Add a preview background file to a project. The background_file payload must be a dict in the form: {"preview_background_file_id": <background file id>}

NameTypeDescription
projectdict / IDThe project dict or id.
background_filedictA dict with a key of "preview_background_file_id" and value of the ID of the preview background to add.

Returns: (dict) The project dictionary.


gazu.project.add_status_automation(project, automation: "dict[Literal['status_automation_id'], str]")

Add a status automation to the project.

NameTypeDescription
projectdict / IDThe project dict or id.
automationdictA dictionary with a key of "status_automation_id" and value of the automation ID.

Returns: (dict) The project dictionary.


gazu.project.all_metadata_descriptors(project)

Get all the metadata descriptors.

NameTypeDescription
projectdict / IDThe project dict or id.

Returns: (list[dict]) The metadata descriptors.


gazu.project.all_open_projects()


gazu.project.all_project_status()

Returns: (list[dict]) Project status listed in database.


gazu.project.all_projects()

Returns: (list[dict]) Projects stored in the database.


gazu.project.all_status_automations(project)

Get status automations configured for a project.

NameTypeDescription
projectdict / IDThe project dict or id.

Returns: (list[dict]) The status automations.


gazu.project.close_project(project)

Closes the provided project.

NameTypeDescription
projectdict / IDThe project dict or id to save in database.

Returns: (dict) Updated project.


gazu.project.create_budget(project, name, description = None, currency = None, start_date = None, end_date = None, amount = None)

Create a budget for a project.

NameTypeDescription
projectdict / IDThe project dict or id.
namestrBudget name. Required.
descriptionstr, optionalHuman description.
currencystr, optionalCurrency code (e.g. "USD", "EUR").
start_datestr, optionalStart date ISO format (YYYY-MM-DD).
end_datestr, optionalEnd date ISO format (YYYY-MM-DD).
amountnumber, optionalOverall budget amount.

gazu.project.create_budget_entry(project, budget, name, date = None, amount = None, quantity = None, unit_price = None, description = None, category = None)

Create a budget entry for a specific budget.

NameTypeDescription
projectdict / IDThe project dict or id.
budgetdict / IDThe budget dict or id.
namestrEntry name. Required.
datestr, optionalEntry date in ISO format (YYYY-MM-DD).
amountnumber, optionalTotal amount for the entry.
quantitynumber, optionalQuantity used to compute amount.
unit_pricenumber, optionalUnit price used with quantity.
descriptionstr, optionalHuman description for the entry.
categorystr, optionalCategory label for the entry.

gazu.project.get_budget(project, budget)

Get a specific budget.

NameTypeDescription
projectdict / IDThe project dict or id.
budgetdict / IDThe budget dict or id.

gazu.project.get_budget_entries(project, budget)

Get entries for a specific budget.

NameTypeDescription
projectdict / IDThe project dict or id.
budgetdict / IDThe budget dict or id.

gazu.project.get_budget_entry(project, budget, entry)

Get a specific budget entry.

NameTypeDescription
projectdict / IDThe project dict or id.
budgetdict / IDThe budget dict or id.
entrydict / IDThe budget entry dict or id.

gazu.project.get_budgets(project)

Get budgets for a project.

NameTypeDescription
projectdict / IDThe project dict or id.

gazu.project.get_metadata_descriptor(project, metadata_descriptor_id)

Retrieve a the metadata descriptor matching given ID.

NameTypeDescription
projectdict / IDThe project dict or id.
metadata_descriptor_iddict / IDThe metadata descriptor dict or id.

Returns: (dict) The metadata descriptor matching the ID.


gazu.project.get_metadata_descriptor_by_field_name(project, field_name)

Get a metadata descriptor matching the given project and name.

NameTypeDescription
projectdict / IDThe project dict or id.
field_namestrThe name of the metadata field.

Returns: (dict | None) The metadata descriptor matchind the ID.


gazu.project.get_milestones(project)

Get production milestones for a project.

NameTypeDescription
projectdict / IDThe project dict or id.

gazu.project.get_preview_background_files(project)

Get preview background files configured for a project.

NameTypeDescription
projectdict / IDThe project dict or id.

gazu.project.get_project(project_id)

NameTypeDescription
project_idstrID of claimed project.

Returns: (dict) Project corresponding to given id.


gazu.project.get_project_by_name(project_name)

NameTypeDescription
project_namestrName of claimed project.

Returns: (dict | None) Project corresponding to given name.


gazu.project.get_project_person_quotas(project, person)

Get quotas for a person within a project.

NameTypeDescription
projectdict / IDThe project dict or id.
persondict / IDThe person dict or id.

gazu.project.get_project_quotas(project)

Get quotas for a project.

NameTypeDescription
projectdict / IDThe project dict or id.

gazu.project.get_project_status_by_name(project_status_name)

NameTypeDescription
project_status_namestrName of claimed project status.

Returns: (dict | None) Project status corresponding to given name.


gazu.project.get_project_task_statuses(project)

Get task statuses configured for a project.

NameTypeDescription
projectdict / IDThe project dict or id.

Returns: (list[dict]) The task statuses.


gazu.project.get_project_task_types(project)

Get task types configured for a project.

NameTypeDescription
projectdict / IDThe project dict or id.

Returns: (list[dict]) The task types.


gazu.project.get_project_url(project, section = 'assets')

NameTypeDescription
projectstr / dictThe project dict or the project ID.
sectionstrThe section we want to open in the browser.

Returns: (str) Web url associated to the given project


gazu.project.get_team(project)

Get team for project.

NameTypeDescription
projectdict / IDThe project dict or id.

Returns: (list[dict]) The list of user dicts that are part of the project team.


gazu.project.new_project(name, production_type = 'short', team = None, asset_types = None, task_statuses = None, task_types = None, production_style = '2d3d')

Creates a new project.

NameTypeDescription
namestrName of the project to create.
production_typestrshort, featurefilm, tvshow.
teamlistTeam of the project.
asset_typeslistAsset types of the project.
task_statuseslistTask statuses of the project.
task_typeslistTask types of the project.
production_stylestr2d, 3d, 2d3d, ar, vfx, stop-motion, motion-design, archviz, commercial, catalog, immersive, nft, video-game, vr.

Returns: (dict) Created project.


gazu.project.remove_budget(project, budget)

Delete a specific budget.

NameTypeDescription
projectdict / IDThe project dict or id.
budgetdict / IDThe budget dict or id.

gazu.project.remove_budget_entry(project, budget, entry)

Delete a specific budget entry.

NameTypeDescription
projectdict / IDThe project dict or id.
budgetdict / IDThe budget dict or id.
entrydict / IDThe budget entry dict or id.

gazu.project.remove_metadata_descriptor(project, metadata_descriptor_id, force = False)

Remove a metadata descriptor.

NameTypeDescription
projectdict / IDThe project dict or id.
metadata_descriptor_iddict / IDThe metadata descriptor dict or id.
force-

gazu.project.remove_person_from_team(project, person)

Remove a person from the team project.

NameTypeDescription
projectdict / IDThe project dict or id.
persondict / IDThe person dict or id.

gazu.project.remove_preview_background_file(project, background_file)

Remove a preview background file from a project.

NameTypeDescription
projectdict / IDThe project dict or id.
background_filedict / IDThe background file dict or id.

gazu.project.remove_project(project, force = False)

Remove given project from database. (Prior to do that, make sure, there is no asset or shot left).

NameTypeDescription
projectdict / strProject to remove.
force-

gazu.project.remove_status_automation(project, automation)

Remove a status automation from the project.

NameTypeDescription
projectdict / IDThe project dict or id.
automationdict / IDThe automation dict or id.

gazu.project.remove_task_status(project, task_status)

Remove a task status from the project.

NameTypeDescription
projectdict / IDThe project dict or id.
task_statusdict / IDThe task status dict or id.

Returns: (str) Response from the API.


gazu.project.remove_task_type(project, task_type)

Remove a task type from the project.

NameTypeDescription
projectdict / IDThe project dict or id.
task_typedict / IDThe task type dict or id.

Returns: (str) Response from the API.


gazu.project.update_budget(project, budget, data)

Update a specific budget.

NameTypeDescription
projectdict / IDThe project dict or id.
budgetdict / IDThe budget dict or id.
datadictThe updated budget payload.

gazu.project.update_budget_entry(project, budget, entry, data)

Update a specific budget entry.

NameTypeDescription
projectdict / IDThe project dict or id.
budgetdict / IDThe budget dict or id.
entrydict / IDThe budget entry dict or id.
datadictThe updated budget entry payload.

gazu.project.update_metadata_descriptor(project, metadata_descriptor)

Update a metadata descriptor.

NameTypeDescription
projectdict / IDThe project dict or id.
metadata_descriptordictThe metadata descriptor that needs to be updated.

Returns: (dict) The updated metadata descriptor.


gazu.project.update_project(project)

Save given project data into the API. Metadata are fully replaced by the ones set on given project.

NameTypeDescription
projectdictThe project to update.

Returns: (dict) Updated project.


gazu.project.update_project_data(project, data = None)

Update the metadata for the provided project. Keys that are not provided are not changed.

NameTypeDescription
projectdict / IDThe project dict or id to save in database.
datadictFree field to set metadata of any kind.

Returns: (dict) Updated project.


gazu.search.search_entities(query, project = None, entity_types = None)

Search for entities matching the given query.

NameTypeDescription
querystrSearch query string.
projectstr / dictOptional project to limit search to.
entity_typeslistOptional list of entity type dicts or IDs to filter by.

Returns: (dict[str, list]) Dictionary with entity type keys ("persons", "assets", "shots") containing lists of matching entities for each type.


scene

gazu.scene.add_shot_to_scene(scene, shot)

Link a shot to a scene to mark the fact it was generated out from that scene.

NameTypeDescription
scene-
shot-

gazu.scene.all_asset_instances_for_scene(scene)

Return the list of asset instances listed in a scene.

NameTypeDescription
scene-

gazu.scene.all_camera_instances_for_scene(scene)

Return the list of camera instances listed in a scene.

NameTypeDescription
scene-

gazu.scene.all_scenes(project = None)

Retrieve all scenes.

NameTypeDescription
project-

gazu.scene.all_scenes_for_project(project)

Retrieve all scenes for given project.

NameTypeDescription
project-

gazu.scene.all_scenes_for_sequence(sequence)

Retrieve all scenes which are children from given sequence.

NameTypeDescription
sequence-

gazu.scene.all_shots_for_scene(scene)

Return the list of shots issued from given scene.

NameTypeDescription
scene-

gazu.scene.get_asset_instance_by_name(scene, name)

Returns the asset instance of the scene that has the given name.

NameTypeDescription
scene-
name-

gazu.scene.get_scene(scene_id)

Return scene corresponding to given scene ID.

NameTypeDescription
scene_id-

gazu.scene.get_scene_by_name(sequence, scene_name)

Returns scene corresponding to given sequence and name.

NameTypeDescription
sequence-
scene_name-

gazu.scene.get_sequence_from_scene(scene)

Return sequence which is parent of given scene.

NameTypeDescription
scene-

gazu.scene.new_scene(project, sequence, name)

Create a scene for given sequence.

NameTypeDescription
project-
sequence-
name-

gazu.scene.new_scene_asset_instance(scene, asset, description = None)

Creates a new asset instance on given scene. The instance number is automatically generated (increment highest number).

NameTypeDescription
scene-
asset-
description-

gazu.scene.remove_shot_from_scene(scene, shot)

Remove link between a shot and a scene.

NameTypeDescription
scene-
shot-

gazu.scene.update_asset_instance_data(asset_instance, data)

Update the extra data of given asset instance.

NameTypeDescription
asset_instance-
data-

gazu.scene.update_asset_instance_name(asset_instance, name)

Update the name of given asset instance.

NameTypeDescription
asset_instance-
name-

gazu.scene.update_scene(scene)

Save given scene data into the API.

NameTypeDescription
scene-

shot

gazu.shot.add_asset_instance_to_shot(shot, asset_instance)

Link a new asset instance to given shot.

NameTypeDescription
shotstr / dictThe shot dict or the shot ID.
asset_instancestr / dictThe asset instance dict or ID.

Returns: (dict) Related shot.


gazu.shot.all_asset_instances_for_shot(shot)

NameTypeDescription
shotstr / dictThe shot dict or the shot ID.

Returns: (list[dict]) Asset instances linked to given shot.


gazu.shot.all_episodes_for_project(project)

NameTypeDescription
projectstr / dictThe project dict or the project ID.

Returns: (list[dict]) Episodes from database for given project.


gazu.shot.all_previews_for_shot(shot)

NameTypeDescription
shotstr / dictThe shot dict or the shot ID.

Returns: (list[dict]) Previews from database for given shot.


gazu.shot.all_sequences_for_episode(episode)

NameTypeDescription
episodestr / dictThe episode dict or the episode ID.

Returns: (list[dict]) Sequences which are children of given episode.


gazu.shot.all_sequences_for_project(project)

NameTypeDescription
projectstr / dictThe project dict or the project ID.

Returns: (list[dict]) Sequences from database for given project.


gazu.shot.all_shots_for_episode(episode)

NameTypeDescription
episodestr / dictThe episode dict or the episode ID.

Returns: (list[dict]) Shots which are children of given episode.


gazu.shot.all_shots_for_project(project)

NameTypeDescription
projectstr / dictThe project dict or the project ID.

Returns: (list[dict]) Shots from database or for given project.


gazu.shot.all_shots_for_sequence(sequence)

NameTypeDescription
sequencestr / dictThe sequence dict or the sequence ID.

Returns: (list[dict]) Shots which are children of given sequence.


gazu.shot.export_shots_with_csv(project, csv_file_path, episode = None, assigned_to = None, progress_callback=None)

Export the Shots data for a project to a CSV file on disk.

NameTypeDescription
projectstr / dict The ID or dict for the project to export.
csv_file_pathstr The path on disk to write the CSV file to. If the path already exists it will be overwritten.
episodestr | dict | None Only export Shots that are linked to the given Episode, which can be provided as an ID string or model dict. If None, all assets will be exported.
assigned_tostr | dict | None Only export Shots that have one or more Tasks assigned to the given Person, specified as an ID string or model dict. If None, no filtering is put in place.
progress_callback-

Returns: (requests.Response) the response from the API server.


gazu.shot.get_asset_instances_for_shot(shot)

Return the list of asset instances linked to given shot.

NameTypeDescription
shot-

gazu.shot.get_episode(episode_id)

NameTypeDescription
episode_idstrID of claimed episode.

Returns: (dict) Episode corresponding to given episode ID.


gazu.shot.get_episode_by_name(project, episode_name)

NameTypeDescription
projectstr / dictThe project dict or the project ID.
episode_namestrName of claimed episode.

Returns: (dict | None) Episode corresponding to given name and project.


gazu.shot.get_episode_from_sequence(sequence)

NameTypeDescription
sequencedictThe sequence dict.

Returns: (dict | None) Episode which is parent of given sequence.


gazu.shot.get_episode_url(episode)

NameTypeDescription
episodestr / dictThe episode dict or the episode ID.

Returns: (str) Web url associated to the given episode


gazu.shot.get_sequence(sequence_id)

NameTypeDescription
sequence_idstrID of claimed sequence.

Returns: (dict) Sequence corresponding to given sequence ID.


gazu.shot.get_sequence_by_name(project, sequence_name, episode = None)

NameTypeDescription
projectstr / dictThe project dict or the project ID.
sequence_namestrName of claimed sequence.
episodestr / dictThe episode dict or the episode ID (optional).

Returns: (dict | None) Seqence corresponding to given name and project (and episode in case of TV Show).


gazu.shot.get_sequence_from_shot(shot)

NameTypeDescription
shotdictThe shot dict.

Returns: (dict) Sequence which is parent of given shot.


gazu.shot.get_shot(shot_id)

NameTypeDescription
shot_idstrID of claimed shot.

Returns: (dict) Shot corresponding to given shot ID.


gazu.shot.get_shot_by_name(sequence, shot_name)

NameTypeDescription
sequencestr / dictThe sequence dict or the sequence ID.
shot_namestrName of claimed shot.

Returns: (dict | None) Shot corresponding to given name and sequence.


gazu.shot.get_shot_url(shot)

NameTypeDescription
shotstr / dictThe shot dict or the shot ID.

Returns: (str) Web url associated to the given shot


gazu.shot.import_otio(project, otio_file_path, episode = None, naming_convention = None, match_case = True, progress_callback=None)

Import shots from an OpenTimelineIO file (works also for every OTIO adapters).

NameTypeDescription
projectstr / dictThe project dict or the project ID.
otio_file_pathstrThe OTIO file path.
episodestr / dictThe episode dict or the episode ID.
naming_conventionstrTemplate for matching shot names from the file.
match_caseboolWhether to match shot names case-sensitively.
progress_callback-

Returns: (dict[Literal[('created_shots', 'updated_shots')], list[dict]]) A dictionary with keys "created_shots" and "updated_shots", each mapping to a list of altered entity records from the import.


gazu.shot.import_shots_with_csv(project, csv_file_path, progress_callback=None)

Import the Shots from a previously exported CSV file into the given project.

NameTypeDescription
projectstr / dictThe project to import the Shots into, as an ID string or model dict.
csv_file_pathstrThe path on disk to the CSV file.
progress_callback-

Returns: (list[dict]) the Shot dicts created by the import.


gazu.shot.new_episode(project, name)

Create an episode for given project.

NameTypeDescription
projectstr / dictThe project dict or the project ID.
namestrThe name of the episode to create.

Returns: (dict) Created episode.


gazu.shot.new_sequence(project, name, episode = None)

Create a sequence for given project and episode.

NameTypeDescription
projectstr / dictThe project dict or the project ID.
namestrThe name of the sequence to create.
episodestr / dictThe episode dict or the episode ID.

Returns: (dict) Created sequence.


gazu.shot.new_shot(project, sequence, name, nb_frames = None, frame_in = None, frame_out = None, description = None, data = None)

Create a shot for given sequence and project. Add frame in and frame out parameters to shot extra data. Allow to set metadata too.

NameTypeDescription
projectstr / dictThe project dict or the project ID.
sequencestr / dictThe sequence dict or the sequence ID.
namestrThe name of the shot to create.
nb_frames-
frame_inintFrame in value for the shot.
frame_outintFrame out value for the shot.
description-
datadictFree field to set metadata of any kind.

Returns: (dict) Created shot.


gazu.shot.remove_asset_instance_from_shot(shot, asset_instance)

Remove link between an asset instance and given shot.

NameTypeDescription
shotstr / dictThe shot dict or the shot ID.
asset_instancestr / dictThe asset instance dict or ID.

gazu.shot.remove_episode(episode, force = False)

Remove given episode and related from database. If the `force` paramter is True, all records linked to the Episode will also be deleted - including all linked Sequences, Shots, Assets, Playlists and Tasks. Otherwise, it will attempt to only delete the Episode entity. If the Episode has any linked records the operation will fail.

NameTypeDescription
episodestr / dictEpisode to remove.
forceboolWhether to delete all data linked to the Episode as well. Raises: ParameterException: If the Episode has linked entities and the force=True parameter has not been provided.

gazu.shot.remove_sequence(sequence, force = False)

Remove given sequence and related from database. If the `force` paramter is True, all records linked to the Sequence will also be deleted - including all linked Shots and Tasks. Otherwise, it will attempt to only delete the Sequence entity. If the Sequence has any linked records the operation will fail.

NameTypeDescription
sequencestr / dictSequence to remove.
forceboolWhether to delete all data linked to the Sequence as well. Raises: ParameterException: If the Sequence has linked entities and the force=True parameter has not been provided.

gazu.shot.remove_shot(shot, force = False)

Remove given shot from database. If the Shot has tasks linked to it, this will by default mark the Shot as canceled. Deletion can be forced regardless of task links with the `force` parameter.

NameTypeDescription
shotstr / dictShot to remove.
forceboolWhether to force deletion of the asset regardless of whether it has links to tasks.

gazu.shot.restore_shot(shot)

Restore given shot into database (uncancel it).

NameTypeDescription
shotstr / dictShot to restore.

gazu.shot.update_episode(episode)

Save given episode data into the API. Metadata are fully replaced by the ones set on given episode.

NameTypeDescription
episodedictThe episode dict to update.

Returns: (dict) Updated episode.


gazu.shot.update_episode_data(episode, data = None)

Update the metadata for the provided episode. Keys that are not provided are not changed.

NameTypeDescription
episodestr / dictThe episode dict or ID to save in database.
datadictFree field to set metadata of any kind.

Returns: (dict) Updated episode.


gazu.shot.update_sequence(sequence)

Save given sequence data into the API. Metadata are fully replaced by the ones set on given sequence.

NameTypeDescription
sequencedictThe sequence dict to update.

Returns: (dict) Updated sequence.


gazu.shot.update_sequence_data(sequence, data = None)

Update the metadata for the provided sequence. Keys that are not provided are not changed.

NameTypeDescription
sequencestr / dictThe sequence dict or ID to save in database.
datadictFree field to set metadata of any kind.

Returns: (dict) Updated sequence.


gazu.shot.update_shot(shot)

Save given shot data into the API. Metadata are fully replaced by the ones set on given shot.

NameTypeDescription
shotdictThe shot dict to update.

Returns: (dict) Updated shot.


gazu.shot.update_shot_data(shot, data = None)

Update the metadata for the provided shot. Keys that are not provided are not changed.

NameTypeDescription
shotstr / dictThe shot dict or ID to save in database.
datadictFree field to set metadata of any kind.

Returns: (dict) Updated shot.


sync

gazu.sync.convert_id_list(ids, model_map)

NameTypeDescription
idslistIds to convert.
model_mapdictMap matching ids to another value.

Returns: (list) Ids converted through given model map.


gazu.sync.get_id_map_by_id(source_list, target_list, field = 'name')

NameTypeDescription
source_listlistList of links to compare.
target_listlistList of links for which we want a diff.
field-

Returns: (dict) A dict where keys are the source model names and the values are the IDs of the target models with same name. It's useful to match a model from the source list to its relative in the target list based on its name.


gazu.sync.get_id_map_by_name(source_list, target_list)

NameTypeDescription
source_listlistList of links to compare.
target_listlistList of links for which we want a diff.

Returns: (dict) A dict where keys are the source model names and the values are the IDs of the target models with same name. It's useful to match a model from the source list to its relative in the target list based on its name.


gazu.sync.get_last_events(limit = 20000, project = None, after = None, before = None, only_files = False, name = None)

Get last events that occured on the machine.

NameTypeDescription
limitintNumber of events to retrieve.
projectstr / dictGet only events related to this project.
afterstrGet only events occuring after given date.
beforestrGet only events occuring before given date.
only_filesboolGet only events related to files.
name-

Returns: (list[dict]) Last events matching criterions.


gazu.sync.get_link_list_diff(source_list, target_list)

NameTypeDescription
source_listlistList of links to compare.
target_listlistList of links for which we want a diff.

Returns: (tuple[list[dict], list[dict]]) Two lists, one containing the missing links in the target list and one containing the links that should not be in the target list. Links are identified by their in ID and their out ID.


gazu.sync.get_model_list_diff(source_list, target_list, id_field = 'id')

NameTypeDescription
source_listlistList of models to compare.
target_listlistList of models for which we want a diff.
id_fieldstrthe model field to use as an ID for comparison.

Returns: (tuple[list[dict], list[dict]]) Two lists, one containing the missing models in the target list and one containing the models that should not be in the target list.


gazu.sync.get_sync_asset_type_id_map(source_client, target_client)

NameTypeDescription
source_clientKitsuClientclient to get data from source API
target_clientKitsuClientclient to push data to target API

Returns: (dict) A dict matching source asset type ids with target asset type ids


gazu.sync.get_sync_department_id_map(source_client, target_client)

NameTypeDescription
source_clientKitsuClientclient to get data from source API
target_clientKitsuClientclient to push data to target API

Returns: (dict) A dict matching source departments ids with target department ids


gazu.sync.get_sync_person_id_map(source_client, target_client)

NameTypeDescription
source_clientKitsuClientclient to get data from source API
target_clientKitsuClientclient to push data to target API

Returns: (dict) A dict matching source person ids with target person ids


gazu.sync.get_sync_project_id_map(source_client, target_client)

NameTypeDescription
source_clientKitsuClientclient to get data from source API
target_clientKitsuClientclient to push data to target API

Returns: (dict) A dict matching source project ids with target project ids


gazu.sync.get_sync_task_status_id_map(source_client, target_client)

NameTypeDescription
source_clientKitsuClientclient to get data from source API
target_clientKitsuClientclient to push data to target API

Returns: (dict) A dict matching source task status ids with target task status ids


gazu.sync.get_sync_task_type_id_map(source_client, target_client)

NameTypeDescription
source_clientKitsuClientclient to get data from source API
target_clientKitsuClientclient to push data to target API

Returns: (dict) A dict matching source task type ids with target task type ids


gazu.sync.import_entities(entities)

Import entities from another instance to target instance (keep id and audit dates).

NameTypeDescription
entitieslistEntities to import.

Returns: (list[dict]) Entities created.


gazu.sync.import_entity_links(links)

Import enitity links from another instance to target instance (keep id and audit dates).

NameTypeDescription
linkslistEntity links to import.

Returns: (list[dict]) Entity links created.


gazu.sync.import_tasks(tasks)

Import tasks from another instance to target instance (keep id and audit dates).

NameTypeDescription
taskslistTasks to import.

Returns: (list[dict]) Tasks created.


gazu.sync.is_changed(source_model, target_model)

NameTypeDescription
source_modeldictModel from the source API.
target_modeldictMatching model from the target API.

Returns: (bool) True if the source model is older than the target model (based on `updated_at` field)


gazu.sync.push_assets(project_source, project_target, client_source, client_target)

Copy assets from source to target and preserve audit fields (`id`, `created_at`, and `updated_at`).

NameTypeDescription
project_sourcedictThe project to get assets from
project_targetdictThe project to push assets to
client_sourceKitsuClientclient to get data from source API
client_targetKitsuClientclient to push data to target API

Returns: (list[dict]) Pushed assets


gazu.sync.push_entity_links(project_source, project_target, client_source, client_target)

Copy entity links (breakdown, concepts) from source to target and preserve audit fields (`id`, `created_at`, and `updated_at`).

NameTypeDescription
project_sourcedictThe project to get assets from
project_targetdictThe project to push assets to
client_sourceKitsuClientclient to get data from source API
client_targetKitsuClientclient to push data to target API

Returns: (list[dict]) Pushed entity links


gazu.sync.push_episodes(project_source, project_target, client_source, client_target)

Copy episodes from source to target and preserve audit fields (`id`, `created_at`, and `updated_at`)

NameTypeDescription
project_sourcedictThe project to get episodes from
project_targetdictThe project to push episodes to
client_sourceKitsuClientclient to get data from source API
client_targetKitsuClientclient to push data to target API

Returns: (list[dict]) Pushed episodes


gazu.sync.push_project_entities(project_source, project_target, client_source, client_target)

Copy assets, episodes, sequences, shots and entity links from source to target and preserve audit fields (`id`, `created_at`, and `updated_at`).

NameTypeDescription
project_sourcedictThe project to get assets from
project_targetdictThe project to push assets to
client_sourceKitsuClientclient to get data from source API
client_targetKitsuClientclient to push data to target API

Returns: (dict) Pushed data


gazu.sync.push_sequences(project_source, project_target, client_source, client_target)

Copy sequences from source to target and preserve audit fields (`id`, `created_at`, and `updated_at`)

NameTypeDescription
project_sourcedictThe project to get sequences from
project_targetdictThe project to push sequences to
client_sourceKitsuClientclient to get data from source API
client_targetKitsuClientclient to push data to target API

Returns: (list[dict]) Pushed sequences


gazu.sync.push_shots(project_source, project_target, client_source, client_target)

Copy shots from source to target and preserve audit fields (`id`, `created_at`, and `updated_at`).

NameTypeDescription
project_sourcedictThe project to get shots from
project_targetdictThe project to push shots to
client_sourceKitsuClientclient to get data from source API
client_targetKitsuClientclient to push data to target API

Returns: (list[dict]) Pushed shots


gazu.sync.push_task_comment(task_status_map, person_map, task, comment, client_source, client_target, author_id = None, tmp_path = None)

Create a new comment into target api for each comment in source task but preserve only `created_at` field. Attachments and previews are created too.

NameTypeDescription
task_status_mapdictA mapping of source TaskStatus IDs to target IDs.
person_mapdictA mapping of source Person IDs to target IDs.
taskstr / dictThe task to push the comment for.
commentdictThe comment to push.
client_sourceKitsuClientclient to get data from source API
client_targetKitsuClientclient to push data to target API
author_idstrThe ID of the Person to set as the comment author.
tmp_pathstrThe local path on disk to download the attachment files for syncing.

Returns: (dict) The source comment.


gazu.sync.push_task_comments(task_status_map, person_map, task, client_source, client_target)

Create a new comment into target api for each comment in source task but preserve only `created_at` field. Attachments and previews are created too.

NameTypeDescription
task_status_mapdictA mapping of source TaskStatus IDs to target IDs.
person_mapdictA mapping of source Person IDs to target IDs.
taskstr / dictThe task to push comments for
client_sourceKitsuClientclient to get data from source API
client_targetKitsuClientclient to push data to target API

Returns: (list[dict]) Created comments


gazu.sync.push_tasks(project_source, project_target, default_status, client_source, client_target)

Copy tasks from source to target and preserve audit fields (`id`, `created_at`, and `updated_at`) Attachments and previews are created too.

NameTypeDescription
project_sourcedictThe project to get assets from
project_targetdictThe project to push assets to
default_statusstr / dictThe default status for the pushed tasks
client_sourceKitsuClientclient to get data from source API
client_targetKitsuClientclient to push data to target API

Returns: (list[dict]) Pushed entity links


gazu.sync.push_tasks_comments(project_source, client_source, client_target)

Create a new comment into target api for each comment in source project but preserve only `created_at` field. Attachments and previews are created too.

NameTypeDescription
project_sourcedictThe project to get assets from
client_sourceKitsuClientclient to get data from source API
client_targetKitsuClientclient to push data to target API

Returns: (list[dict]) Created comments


studio

gazu.studio.all_studios()

Returns: (list[dict]) Studios stored in the database.


gazu.studio.get_studio(studio_id)

NameTypeDescription
studio_idstrID of claimed studio.

Returns: (dict) Studio corresponding to given id.


gazu.studio.get_studio_by_name(studio_name)

NameTypeDescription
studio_namestrName of claimed studio.

Returns: (dict | None) Studio corresponding to given name.


gazu.studio.remove_studio(studio, force = False)

Remove given studio from database.

NameTypeDescription
studiodict / strStudio to remove.
forceboolWhether to force deletion of the studio.

gazu.studio.update_studio(studio)

Save given studio data into the API. Metadata are fully replaced by the ones set on given studio.

NameTypeDescription
studiodictThe studio to update.

Returns: (dict) Updated studio.


task

gazu.task.acknowledge_comment(task, comment)

Acknowledge a comment or remove the acknowledgment if it's already acknowledged.

NameTypeDescription
taskstr / dictThe task dict or id.
commentstr / dictThe comment dict or id.

Returns: (dict) Updated comment.


gazu.task.add_attachment_files_to_comment(task, comment, attachments = None, progress_callback=None)

Add attachments files to a given comment.

NameTypeDescription
taskstr / dictThe task dict or the task ID.
commentstr / dictThe comment dict or the comment ID. attachments (list / str) : A list of path for attachments or directly the path.
attachments-
progress_callback-

Returns: (dict) Added attachment files.


gazu.task.add_comment(task, task_status, comment = '', person = None, checklist = None, attachments = None, created_at = None, links = None, progress_callback=None)

Add comment to given task. Each comment requires a task_status. Since the addition of comment triggers a task status change. Comment text can be empty.

NameTypeDescription
taskstr / dictThe task dict or the task ID.
task_statusstr / dictThe task status dict or ID.
commentstrComment text
personstr / dictComment author
checklistlistComment checklist, e.g [{"text": "Item 1", "checked": false}]
attachmentslist[file_path]Attachments file paths
created_atstrComment date
linkslistList of URL links to add to the comment
progress_callback-

Returns: (dict) Created comment.


gazu.task.add_preview(task, comment, preview_file_path = None, preview_file_url = None, normalize_movie = True, revision = None)

Add a preview to given comment.

NameTypeDescription
taskstr / dictThe task dict or the task ID.
commentstr / dictThe comment or the comment ID.
preview_file_pathstrPath of the file to upload as preview.
preview_file_urlstrUrl to download the preview file if no path is given.
normalize_movieboolNormalize the movie or not.
revisionintRevision number.

Returns: (dict) Created preview file model.


gazu.task.add_preview_to_comment(comment, preview_file)

Add a preview to a comment.

NameTypeDescription
commentstr / dictThe comment dict or id.
preview_filestr / dictThe preview file dict or id.

Returns: (dict) Updated comment.


gazu.task.add_tasks_batch_comments(tasks, comments_data)

Add comments to multiple tasks in a batch operation.

NameTypeDescription
taskslistList of task dicts or IDs.
comments_datadictComment data to apply to all tasks. Should contain task_status_id, comment text, and optionally person_id, checklist, attachments, etc.

Returns: (list[dict]) List of created comments.


gazu.task.add_time_spent(task, person, date, duration)

Add given duration to the already logged duration for given task and person at a given date.

NameTypeDescription
taskstr / dictThe task dict or the task ID.
personstr / dictThe person who spent the time on given task.
datestrThe date ("YYYY-MM-DD") for which time spent must be set.
durationintThe duration (in minutes) of the time spent on given task.

Returns: (dict) Updated time spent entry.


gazu.task.all_assets_tasks_for_episode(episode, relations = False)

Retrieve all tasks directly linked to all assets of given episode.

NameTypeDescription
episode-
relations-

gazu.task.all_comments_for_project(project)

Get all comments for a project.

NameTypeDescription
projectstr / dictThe project dict or id.

Returns: (list[dict]) Comments for the project.


gazu.task.all_comments_for_task(task)

NameTypeDescription
taskstr / dictThe task dict or the task ID.

gazu.task.all_done_tasks_for_person(person)

NameTypeDescription
person-

Returns: (list[dict]) Tasks that are done for given person (only for open projects).


gazu.task.all_notifications_for_project(project)

Get all notifications for a project.

NameTypeDescription
projectstr / dictThe project dict or id.

Returns: (list[dict]) Notifications for the project.


gazu.task.all_open_tasks()

Get all open tasks.

Returns: (list[dict]) Open tasks.


gazu.task.all_open_tasks_for_person(person)

Get all open tasks for a person.

NameTypeDescription
personstr / dictThe person dict or id.

Returns: (list[dict]) Open tasks for the person.


gazu.task.all_preview_files_for_project(project)

Get all preview files for a project.

NameTypeDescription
projectstr / dictThe project dict or id.

Returns: (list[dict]) Preview files for the project.


gazu.task.all_previews_for_task(task)

Get all previews for a task.

NameTypeDescription
taskstr / dictThe task dict or id.

Returns: (list[dict]) Previews for the task.


gazu.task.all_shot_tasks_for_episode(episode, relations = False)

Retrieve all tasks directly linked to all shots of given episode.

NameTypeDescription
episode-
relations-

gazu.task.all_shot_tasks_for_sequence(sequence, relations = False)

Retrieve all tasks directly linked to all shots of given sequence.

NameTypeDescription
sequence-
relations-

gazu.task.all_subscriptions_for_project(project)

Get all subscriptions for a project.

NameTypeDescription
projectstr / dictThe project dict or id.

Returns: (list[dict]) Subscriptions for the project.


gazu.task.all_task_statuses()

Returns: (list[dict]) Task statuses stored in database.


gazu.task.all_task_statuses_for_project(project)

NameTypeDescription
project-

Returns: (list[dict]) Task status stored in database.


gazu.task.all_task_types()

Returns: (list[dict]) Task types stored in database.


gazu.task.all_task_types_for_asset(asset)

NameTypeDescription
assetstr / dictThe asset dict or the asset ID.

Returns: (list[dict]) Task types of tasks related to given asset.


gazu.task.all_task_types_for_concept(concept)

NameTypeDescription
conceptstr / dictThe concept dict or the concept ID. Returns list: Task types of task linked to given concept.

gazu.task.all_task_types_for_episode(episode)

NameTypeDescription
episode-

Returns: (list[dict]) Task types of tasks linked directly to given episode.


gazu.task.all_task_types_for_project(project)

NameTypeDescription
project-

Returns: (list[dict]) Task types stored in database.


gazu.task.all_task_types_for_scene(scene)

NameTypeDescription
scenestr / dictThe scene dict or the scene ID.

Returns: (list[dict]) Task types of tasks linked to given scene.


gazu.task.all_task_types_for_sequence(sequence)

NameTypeDescription
sequencestr / dictThe sequence dict or the sequence ID.

Returns: (list[dict]) Task types of tasks linked directly to given sequence.


gazu.task.all_task_types_for_shot(shot)

NameTypeDescription
shotstr / dictThe shot dict or the shot ID. Returns list: Task types of task linked to given shot.

gazu.task.all_tasks_for_asset(asset, relations = False)

NameTypeDescription
assetstr / dictThe asset dict or the asset ID.
relations-

Returns: (list[dict]) Tasks directly linked to given asset.


gazu.task.all_tasks_for_concept(concept, relations = False)

NameTypeDescription
conceptstr / dictThe concept dict or the concept ID.
relations-

Returns: (list[dict]) Tasks linked to given concept.


gazu.task.all_tasks_for_edit(edit, relations = False)

NameTypeDescription
editstr / dictThe edit dict or the edit ID.
relations-

Returns: (list[dict]) Tasks linked to given edit.


gazu.task.all_tasks_for_entity_and_task_type(entity, task_type)

NameTypeDescription
entitystr / dictThe entity dict or the entity ID.
task_typestr / dictThe task type dict or ID.

Returns: (list[dict]) Tasks for given entity or task type.


gazu.task.all_tasks_for_episode(episode, relations = False)

Retrieve all tasks directly linked to given episode.

NameTypeDescription
episode-
relations-

gazu.task.all_tasks_for_person(person)

NameTypeDescription
person-

Returns: (list[dict]) Tasks that are not done for given person (only for open projects).


gazu.task.all_tasks_for_person_and_type(person, task_type)

Get all tasks for a person and task type.

NameTypeDescription
personstr / dictThe person dict or id.
task_typestr / dictThe task type dict or id.

Returns: (list[dict]) Tasks for the person and task type.


gazu.task.all_tasks_for_project(project, task_type = None, episode = None)

NameTypeDescription
projectstr / dictThe project (or its ID) to get tasks from.
task_typestr / dictThe task type (or its ID) to filter tasks.
episodestr / dictThe episode (or its ID) to filter tasks.

Returns: (list[dict]) Tasks related to given project.


gazu.task.all_tasks_for_scene(scene, relations = False)

NameTypeDescription
scenestr / dictThe scene dict or the scene ID.
relations-

Returns: (list[dict]) Tasks linked to given scene.


gazu.task.all_tasks_for_sequence(sequence, relations = False)

NameTypeDescription
sequencestr / dictThe sequence dict or the sequence ID. Returns list: Tasks linked to given sequence.
relations-

gazu.task.all_tasks_for_shot(shot, relations = False)

NameTypeDescription
shotstr / dictThe shot dict or the shot ID.
relations-

Returns: (list[dict]) Tasks linked to given shot.


gazu.task.all_tasks_for_task_status(project, task_type, task_status)

NameTypeDescription
projectstr / dictThe project dict or the project ID.
task_typestr / dictThe task type dict or ID.
task_statusstr / dictThe task status dict or ID.

Returns: (list[dict]) Tasks set at given status for given project and task type.


gazu.task.all_tasks_for_task_type(project, task_type, episode = None)

NameTypeDescription
projectstr / dictThe project dict or the project ID.
task_typestr / dictThe task type dict or ID.
episode-

Returns: (list[dict]) Tasks for given project and task type.


gazu.task.assign_task(task, person)

Assign one Person to a Task.

NameTypeDescription
taskstr / dictThe task dict or the task ID.
personstr / dictThe person dict or the person ID.

gazu.task.assign_tasks_to_person(tasks, person)

Assign multiple tasks to a person.

NameTypeDescription
taskslistList of task dicts or IDs.
personstr / dictThe person dict or id.

Returns: (dict) Response information.


gazu.task.batch_comments(comments = None, task = None, progress_callback=None)

Publish a list of comments (with attachments and previews) for given task. Each dict comments may contain a list of attachment files path and preview files path in the keys "attachment_files" and "preview_files". If no task is given each comments needs to have a task_id key.

NameTypeDescription
commentslistList of comments to publish.
taskstr / dictThe task dict or the task ID.
progress_callback-

Returns: (list[dict]) List of created comments.


gazu.task.clear_assignations(tasks, person = None)

Clear assignations for a single or multiple tasks. If no person is given, all assignations are cleared.

NameTypeDescription
taskslist / str / dictTask dict or the task ID, single or list.
personstr / dictThe person dict or the person ID.

gazu.task.create_asset_tasks(asset, task_types)

Create tasks for an asset.

NameTypeDescription
assetstr / dictThe asset dict or id.
task_typeslistList of task type dicts or IDs.

Returns: (list[dict]) Created tasks.


gazu.task.create_concept_tasks(concept, task_types)

Create tasks for a concept.

NameTypeDescription
conceptstr / dictThe concept dict or id.
task_typeslistList of task type dicts or IDs.

Returns: (list[dict]) Created tasks.


gazu.task.create_edit_tasks(edit, task_types)

Create tasks for an edit.

NameTypeDescription
editstr / dictThe edit dict or id.
task_typeslistList of task type dicts or IDs.

Returns: (list[dict]) Created tasks.


gazu.task.create_entity_tasks(entity, task_types)

Create tasks for an entity.

NameTypeDescription
entitystr / dictThe entity dict or id.
task_typeslistList of task type dicts or IDs.

Returns: (list[dict]) Created tasks.


gazu.task.create_multiple_comments(project, comments = None, progress_callback=None)

Create multiple comments at once for a specific project. Each comment updates the respective task status. Each dict comments may contain a list of attachment files path and preview files path in the keys "attachment_files" and "preview_files".

NameTypeDescription
projectstr / dictThe project dict or the project ID.
commentslistList of comments to publish. Each comment must have a task_id key.
progress_callback-

Returns: (list[dict]) List of created comments.


gazu.task.create_preview(task, comment, revision = None)

Create a preview into given comment.

NameTypeDescription
taskstr / dictThe task dict or the task ID.
commentstr / dictThe comment or the comment ID.
revisionintRevision number.

Returns: (dict) Created preview file model.


gazu.task.create_shot_tasks(shot, task_types)

Create tasks for a shot.

NameTypeDescription
shotstr / dictThe shot dict or id.
task_typeslistList of task type dicts or IDs.

Returns: (list[dict]) Created tasks.


gazu.task.delete_comment_attachment(comment, attachment_file)

Delete an attachment from a comment.

NameTypeDescription
commentstr / dictThe comment dict or id.
attachment_filestr / dictThe attachment file dict or id.

Returns: (str) Request response object.


gazu.task.delete_comment_reply(comment, reply)

Delete a reply to a comment.

NameTypeDescription
commentstr / dictThe comment dict or id.
replystr / dictThe reply comment dict or id.

Returns: (str) Request response object.


gazu.task.get_comment(comment_id)

Get comment instance

NameTypeDescription
comment_idIDThe comment ID.

Returns: (dict) Given comment instance.


gazu.task.get_default_task_status()

Returns: (dict) The unique task status flagged with `is_default`.


gazu.task.get_last_comment_for_task(task)

NameTypeDescription
taskstr / dictThe task dict or the task ID.

gazu.task.get_open_tasks_stats()

Get statistics for open tasks.

Returns: (dict) Open tasks statistics.


gazu.task.get_persons_tasks_dates(project)

Get tasks dates for persons in a project.

NameTypeDescription
projectstr / dictThe project dict or id.

Returns: (dict) Tasks dates for persons.


gazu.task.get_task(task_id)

NameTypeDescription
task_idstrID of claimed task.

Returns: (dict) Task matching given ID.


gazu.task.get_task_by_entity(entity, task_type, name = 'main')

NameTypeDescription
entitystr / dictThe entity dict or the entity ID.
task_typestr / dictThe task type dict or ID.
namestrName of the task to look for.

gazu.task.get_task_by_path(project, file_path, entity_type = 'shot')

NameTypeDescription
projectstr / dictThe project dict or the project ID.
file_pathstrThe file path to find a related task.
entity_typestrasset, shot or scene.

Returns: (dict) A task from given file path. This function requires context: the project related to the given path and the related entity type.


gazu.task.get_task_status(task_status_id)

NameTypeDescription
task_status_idstrID of claimed task status.

Returns: (dict) Task status matching given ID.


gazu.task.get_task_status_by_name(name)

NameTypeDescription
namestr / dictThe name of claimed task status.

Returns: (dict | None) Task status matching given name.


gazu.task.get_task_status_by_short_name(task_status_short_name)

NameTypeDescription
task_status_short_name-

Returns: (dict | None) Task status matching given short name.


gazu.task.get_task_time_spent_for_date(task, date)

Get time spent for a task on a specific date.

NameTypeDescription
taskstr / dictThe task dict or id.
datestrDate in YYYY-MM-DD format.

Returns: (dict) Time spent information.


gazu.task.get_task_type(task_type_id)

NameTypeDescription
task_type_idstrID of claimed task type.

Returns: (dict) Task type matching given ID.


gazu.task.get_task_type_by_name(task_type_name, for_entity = None, department = None)

NameTypeDescription
task_type_namestrName of claimed task type.
for_entitystrThe entity type for which the task type is created.
departmentstr / dictThe department for which the task type is created.

Returns: (dict | None) Task type object for given name, or None if none found.


gazu.task.get_task_type_by_short_name(task_type_short_name, for_entity = None, department = None)

NameTypeDescription
task_type_short_namestrShort name of claimed task type.
for_entitystrThe entity type for which the task type is created.
departmentstr /dictThe department for which the task type is created.

Returns: (dict | None) Task type object for given name, or None if none found.


gazu.task.get_task_url(task)

NameTypeDescription
taskdictThe task dict.

Returns: (str) Web url associated to the given task


gazu.task.get_time_spent(task, date = None)

Get the time spent by CG artists on a task at a given date if given. A field contains the total time spent. Durations are given in minutes. Date format is YYYY-MM-DD.

NameTypeDescription
taskstr / dictThe task dict or the task ID.
datestrThe date for which time spent is required.

Returns: (dict) A dict with person ID as key and time spent object as value.


gazu.task.new_task(entity, task_type, name = 'main', task_status = None, assigner = None, assignees = None)

Create a new task for given entity and task type.

NameTypeDescription
entitydictEntity for which task is created.
task_typedictTask type of created task.
namestrName of the task (default is "main").
task_statusdictThe task status to set (default status is Todo).
assignerdictPerson who assigns the task.
assigneeslistList of people assigned to the task.

gazu.task.new_task_status(name, short_name, color)

Create a new task status with the given name, short name and color.

NameTypeDescription
namestrThe name of the task status
short_namestrThe short name of the task status
colorstrThe color of the task status as an hexadecimal string with # as first character. ex : #00FF00

Returns: (dict) The created task status


gazu.task.new_task_type(name, color = '#000000', for_entity = 'Asset')

Create a new task type with the given name. If a Task Type with the given name already exists within Kitsu, it will be returned.

NameTypeDescription
namestrThe name of the task type
colorstrThe color of the task type as an hexadecimal string with # as first character. ex : #00FF00
for_entitystrThe entity type for which the task type is created.

Returns: (dict) The created task type


gazu.task.publish_preview(task, task_status, comment = '', person = None, checklist = None, attachments = None, created_at = None, preview_file_path = None, preview_file_url = None, normalize_movie = True, revision = None, set_thumbnail = False, links = None)

Publish a comment and include given preview for given task and set given task status.

NameTypeDescription
taskstr / dictThe task dict or the task ID.
task_statusstr / dictThe task status dict or ID.
commentstrComment text
personstr / dictComment author
checklistlistComment checklist
attachmentslist[file_path]Attachments file paths
created_atstrComment date
preview_file_pathstrPath of the file to upload as preview.
preview_file_urlstrUrl to download the preview file if no path is given.
normalize_movieboolSet to false to not do operations on it on the server side.
revisionintRevision number.
set_thumbnailboolSet the preview as thumbnail of the entity.
linkslistList of links to add to the comment

Returns: (tuple[dict, dict]) Created comment model and created preview file model.


gazu.task.remove_comment(comment)

Remove given comment and related (previews, news, notifications) from database.

NameTypeDescription
commentstr / dictThe comment dict or the comment ID.

gazu.task.remove_preview_from_comment(comment, preview_file)

Remove a preview from a comment.

NameTypeDescription
commentstr / dictThe comment dict or id.
preview_filestr / dictThe preview file dict or id.

gazu.task.remove_task(task)

Remove given task from database.

NameTypeDescription
taskstr / dictThe task dict or the task ID.

gazu.task.remove_task_status(task_status)

Remove given task status from database.

NameTypeDescription
task_statusstr / dictThe task status dict or ID.

gazu.task.remove_task_type(task_type)

Remove given task type from database.

NameTypeDescription
task_typestr / dictThe task type dict or ID.

gazu.task.remove_tasks_batch(tasks)

Delete multiple tasks in batch.

NameTypeDescription
taskslistList of task dicts or IDs to delete.

Returns: (requests.Response) Request response object.


gazu.task.remove_tasks_for_type(project, task_type)

Delete all tasks for a task type in a project.

NameTypeDescription
projectstr / dictThe project dict or id.
task_typestr / dictThe task type dict or id.

gazu.task.remove_time_spent(time_spent)

Delete a time spent entry.

NameTypeDescription
time_spentstr / dictThe time spent dict or id.

Returns: (str) Request response object.


gazu.task.reply_to_comment(comment, text, person = None)

Reply to an existing comment.

NameTypeDescription
commentstr / dictThe comment dict or id to reply to.
textstrThe reply text.
personstr / dictThe person dict or id making the reply.

Returns: (dict) Created reply comment.


gazu.task.set_main_preview(preview_file, frame_number = None)

Set given preview as thumbnail of given entity.

NameTypeDescription
preview_filestr / dictThe preview file dict or ID.
frame_numberintFrame of preview video to set as main preview

Returns: (dict) Created preview file model.


gazu.task.set_time_spent(task, person, date, duration)

Set the time spent by a CG artist on a given task at a given date.

NameTypeDescription
taskstr / dictThe task dict or the task ID.
personstr / dictThe person who spent the time on given task.
datestrThe date ("YYYY-MM-DD") for which time spent must be set.
durationintThe duration (in minutes) of the time spent on given task.

Returns: (dict) Created time spent entry.


gazu.task.start_task(task, started_task_status = None, person = None)

Create a comment to change task status to started_task_status (by default WIP) and set its real start date to now.

NameTypeDescription
taskstr / dictThe task dict or the task ID.
started_task_statusstr / dictThe task status dict or ID.
personstr / dictThe person dict or the person ID.

Returns: (dict) Created comment.


gazu.task.task_to_review(task, person, comment, revision = 1, change_status = True)

Deprecated. Mark given task as pending, waiting for approval. Author is given through the person argument.

NameTypeDescription
taskstr / dictThe task dict or the task ID.
personstr / dictThe person dict or the person ID.
commentstrComment text
revisionintForce revision of related preview file
change_statusboolIf set to false, the task status is not changed.

Returns: (dict) Modified task


gazu.task.update_comment(comment)

Save given comment data into the API. Metadata are fully replaced by the ones set on given comment.

NameTypeDescription
commentdictThe comment dict to update.

Returns: (dict) Updated comment.


gazu.task.update_task(task)

Update given task into the API. Metadata are fully replaced by the ones set on given task.

NameTypeDescription
taskdictThe task dict to update.

Returns: (dict) Updated task.


gazu.task.update_task_data(task, data = None)

Update the metadata for the provided task. Keys that are not provided are not changed.

NameTypeDescription
taskstr / dictThe task dict or ID to save in database.
datadictFree field to set metadata of any kind.

Returns: (dict) Updated task.


gazu.task.update_task_status(task_status)

Update given task status into the API.

NameTypeDescription
task_statusdictThe task status dict to update.

Returns: (dict) Updated task status.


gazu.task.update_task_type(task_type)

Update given task type into the API.

NameTypeDescription
task_typedictThe task type dict to update.

Returns: (dict) Updated task type.


gazu.task.upload_preview_file(preview_file, file_path, normalize_movie = True, progress_callback=None)

Create a preview into given comment.

NameTypeDescription
preview_filestr / dictThe preview_file dict or the preview_file ID.
file_pathstrPath of the file to upload as preview.
normalize_movie-
progress_callback-

user

gazu.user.all_asset_types_for_project(project)

NameTypeDescription
projectstr / dictThe project dict or the project ID.

Returns: (list[dict]) Asset types for which the user has a task assigned for given project.


gazu.user.all_assets_for_asset_type_and_project(project, asset_type)

NameTypeDescription
projectstr / dictThe project dict or the project ID.
asset_typestr / dictThe asset type dict or ID.

Returns: (list[dict]) Assets for given project and asset type and for which the user has a task assigned.


gazu.user.all_chats()

Get all chats for current user.

Returns: (list[dict]) Chats.


gazu.user.all_desktop_login_logs()

Get desktop login logs for current user.

Returns: (list) Desktop login logs.


gazu.user.all_done_tasks()

Returns: (list[dict]) Tasks assigned to current user which are done.


gazu.user.all_episodes_for_project(project)

NameTypeDescription
projectstr / dictThe project dict or the project ID.

Returns: (list[dict]) Episodes for which user has tasks assigned for given project.


gazu.user.all_filter_groups()

Get all filter groups for current user.

Returns: (list[dict]) Filter groups.


gazu.user.all_filters()

Return: list: all filters for current user.


gazu.user.all_notifications()

Get all notifications for current user.

Returns: (list[dict]) Notifications.


gazu.user.all_open_projects()

Returns: (list[dict]) Projects for which the user is part of the team. Admins see all projects


gazu.user.all_project_assets(project)

Get assets for which user has tasks assigned for given project.

NameTypeDescription
projectstr / dictThe project dict or id.

Returns: (list[dict]) Assets for the project.


gazu.user.all_scenes_for_sequence(sequence)

NameTypeDescription
sequencestr / dictThe sequence dict or the sequence ID.

Returns: (list[dict]) Scenes for which user has tasks assigned for given sequence.


gazu.user.all_sequences_for_project(project)

NameTypeDescription
projectstr / dictThe project dict or the project ID.

Returns: (list[dict]) Sequences for which user has tasks assigned for given project.


gazu.user.all_shots_for_sequence(sequence)

NameTypeDescription
sequencestr / dictThe sequence dict or the sequence ID.

Returns: (list[dict]) Shots for which user has tasks assigned for given sequence.


gazu.user.all_task_types_for_asset(asset)

NameTypeDescription
assetstr / dictThe asset dict or the asset ID.

Returns: (list[dict]) Task Types of tasks assigned to current user for given asset.


gazu.user.all_task_types_for_scene(scene)

NameTypeDescription
scenestr / dictThe scene dict or the scene ID.

Returns: (list[dict]) Task types of tasks assigned to current user for given scene.


gazu.user.all_task_types_for_sequence(sequence)

NameTypeDescription
sequence-

Returns: (list[dict]) Task types for given asset and current user.


gazu.user.all_task_types_for_shot(shot)

NameTypeDescription
shotstr / dictThe shot dict or the shot ID.

Returns: (list[dict]) Task Types of tasks assigned to current user for given shot.


gazu.user.all_tasks_for_asset(asset)

NameTypeDescription
assetstr / dictThe asset dict or the asset ID.

Returns: (list[dict]) Tasks for given asset and current user.


gazu.user.all_tasks_for_scene(scene)

NameTypeDescription
scenestr / dictThe scene dict or the scene ID.

Returns: (list[dict]) Tasks assigned to current user for given scene.


gazu.user.all_tasks_for_sequence(sequence)

Return the list of tasks for given asset and current user.

NameTypeDescription
sequence-

gazu.user.all_tasks_for_shot(shot)

NameTypeDescription
shotstr / dictThe shot dict or the shot ID.

Returns: (list[dict]) Tasks assigned to current user for given shot.


gazu.user.all_tasks_requiring_feedback()

Get tasks requiring feedback from the current user.

Returns: (list[dict]) Tasks requiring feedback.


gazu.user.all_tasks_to_do()

Returns: (list[dict]) Tasks assigned to current user which are not complete.


gazu.user.check_task_subscription(task)

Check if user is subscribed to a task.

NameTypeDescription
taskstr / dictThe task dict or id.

Returns: (dict) Subscription status.


gazu.user.clear_avatar()

Clear user avatar.


gazu.user.get_context()

Get user context.

Returns: (dict) User context information.


gazu.user.get_day_off()

Get day off information for current user.

Returns: (dict) Day off information.


gazu.user.get_filter_group(filter_group)

Get a filter group.

NameTypeDescription
filter_groupstr / dictThe filter group dict or id.

Returns: (dict) Filter group.


gazu.user.get_notification(notification)

Get a specific notification.

NameTypeDescription
notificationstr / dictThe notification dict or id.

Returns: (dict) Notification.


gazu.user.get_task_time_spent(task)

Get time spent for a specific task.

NameTypeDescription
taskstr / dictThe task dict or id.

Returns: (dict) Time spent information for the task.


gazu.user.get_time_spents_by_date(date)

Get time spents for a specific date.

NameTypeDescription
datestrDate in YYYY-MM-DD format.

Returns: (list) Time spents for the date.


gazu.user.get_timespents_range(start_date, end_date)

Gets the timespents of the current user for the given date range.

NameTypeDescription
start_datestrThe first day of the date range as a date string with the following format: YYYY-MM-DD
end_datestrThe last day of the date range as a date string with the following format: YYYY-MM-DD

Returns: (list[dict]) All of the person's time spents


gazu.user.is_authenticated()

Returns: (bool) Current user authenticated or not


gazu.user.join_chat(chat)

Join a chat.

NameTypeDescription
chatstr / dictThe chat dict or id.

Returns: (dict) Chat information.


gazu.user.leave_chat(chat)

Leave a chat.

NameTypeDescription
chatstr / dictThe chat dict or id.

gazu.user.log_desktop_session_log_in()

Add a log entry to mention that the user logged in his computer.

Returns: (dict) Desktop session log entry.


gazu.user.mark_all_notifications_as_read()

Mark all notifications as read for current user.

Returns: (dict[Literal['success'], bool]) Response information.


gazu.user.new_filter(name, query, list_type, project = None, entity_type = None)

Create a new filter for current user.

NameTypeDescription
namestrThe filter name.
querystrThe query for the filter.
list_typestr"asset", "shot" or "edit".
projectstr / dictThe project dict or the project ID.
entity_typestr"Asset", "Shot" or "Edit".

Returns: (dict) Created filter.


gazu.user.new_filter_group(name, project = None)

Create a new filter group for current user.

NameTypeDescription
namestrThe filter group name.
projectstr / dictThe project dict or id.

Returns: (dict) Created filter group.


gazu.user.remove_filter(filter)

Remove given filter from database.

NameTypeDescription
filterstr / dictThe filter dict or the filter ID.

gazu.user.remove_filter_group(filter_group)

Remove given filter group from database.

NameTypeDescription
filter_groupstr / dictThe filter group dict or id.

gazu.user.subscribe_to_task(task)

Subscribe to a task.

NameTypeDescription
taskstr / dictThe task dict or id.

Returns: (dict) Subscription information.


gazu.user.unsubscribe_from_task(task)

Unsubscribe from a task.

NameTypeDescription
taskstr / dictThe task dict or id.

gazu.user.update_filter(filter)

Save given filter data into the API.

NameTypeDescription
filterdictFilter to save.

gazu.user.update_filter_group(filter_group)

Update a filter group.

NameTypeDescription
filter_groupdictFilter group to save.

Returns: (dict) Updated filter group.


gazu.user.update_notification(notification)

Update a notification.

NameTypeDescription
notificationdictNotification to save.

Returns: (dict) Updated notification.