gazu 0.10.22__py2.py3-none-any.whl → 0.10.25__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gazu/__version__.py +1 -1
- gazu/asset.py +3 -1
- gazu/files.py +5 -1
- gazu/task.py +11 -7
- {gazu-0.10.22.dist-info → gazu-0.10.25.dist-info}/METADATA +5 -4
- {gazu-0.10.22.dist-info → gazu-0.10.25.dist-info}/RECORD +9 -9
- {gazu-0.10.22.dist-info → gazu-0.10.25.dist-info}/WHEEL +1 -1
- {gazu-0.10.22.dist-info → gazu-0.10.25.dist-info}/LICENSE +0 -0
- {gazu-0.10.22.dist-info → gazu-0.10.25.dist-info}/top_level.txt +0 -0
gazu/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.10.
|
|
1
|
+
__version__ = "0.10.25"
|
gazu/asset.py
CHANGED
|
@@ -169,6 +169,7 @@ def new_asset(
|
|
|
169
169
|
description=None,
|
|
170
170
|
extra_data={},
|
|
171
171
|
episode=None,
|
|
172
|
+
is_shared=False,
|
|
172
173
|
client=default,
|
|
173
174
|
):
|
|
174
175
|
"""
|
|
@@ -181,6 +182,7 @@ def new_asset(
|
|
|
181
182
|
description (str): Additional information.
|
|
182
183
|
extra_data (dict): Free field to add any kind of metadata.
|
|
183
184
|
episode (str / dict): The episode this asset is linked to.
|
|
185
|
+
is_shared (bool): True if asset is shared between multiple projects.
|
|
184
186
|
|
|
185
187
|
Returns:
|
|
186
188
|
dict: Created asset.
|
|
@@ -189,7 +191,7 @@ def new_asset(
|
|
|
189
191
|
asset_type = normalize_model_parameter(asset_type)
|
|
190
192
|
episode = normalize_model_parameter(episode)
|
|
191
193
|
|
|
192
|
-
data = {"name": name, "data": extra_data}
|
|
194
|
+
data = {"name": name, "data": extra_data, "is_shared": is_shared}
|
|
193
195
|
|
|
194
196
|
if description is not None:
|
|
195
197
|
data["description"] = description
|
gazu/files.py
CHANGED
|
@@ -147,7 +147,7 @@ def get_preview_file(preview_file_id, client=default):
|
|
|
147
147
|
return raw.fetch_one("preview-files", preview_file_id, client=client)
|
|
148
148
|
|
|
149
149
|
|
|
150
|
-
def remove_preview_file(preview_file, client=default):
|
|
150
|
+
def remove_preview_file(preview_file, force=False, client=default):
|
|
151
151
|
"""
|
|
152
152
|
Remove given preview file from database.
|
|
153
153
|
|
|
@@ -155,8 +155,12 @@ def remove_preview_file(preview_file, client=default):
|
|
|
155
155
|
preview_file (str / dict): The preview_file dict or ID.
|
|
156
156
|
"""
|
|
157
157
|
preview_file = normalize_model_parameter(preview_file)
|
|
158
|
+
params = {}
|
|
159
|
+
if force:
|
|
160
|
+
params = {"force": True}
|
|
158
161
|
return raw.delete(
|
|
159
162
|
"data/preview-files/%s" % preview_file["id"],
|
|
163
|
+
params=params,
|
|
160
164
|
client=client,
|
|
161
165
|
)
|
|
162
166
|
|
gazu/task.py
CHANGED
|
@@ -675,13 +675,15 @@ def remove_task(task, client=default):
|
|
|
675
675
|
raw.delete("data/tasks/%s" % task["id"], {"force": True}, client=client)
|
|
676
676
|
|
|
677
677
|
|
|
678
|
-
def start_task(task, started_task_status=None, client=default):
|
|
678
|
+
def start_task(task, started_task_status=None, person=None, client=default):
|
|
679
679
|
"""
|
|
680
680
|
Create a comment to change task status to started_task_status
|
|
681
681
|
(by default WIP) and set its real start date to now.
|
|
682
682
|
|
|
683
683
|
Args:
|
|
684
684
|
task (str / dict): The task dict or the task ID.
|
|
685
|
+
started_task_status (str / dict): The task status dict or ID.
|
|
686
|
+
person (str / dict): The person dict or the person ID.
|
|
685
687
|
|
|
686
688
|
Returns:
|
|
687
689
|
dict: Created comment.
|
|
@@ -700,7 +702,7 @@ def start_task(task, started_task_status=None, client=default):
|
|
|
700
702
|
)
|
|
701
703
|
)
|
|
702
704
|
|
|
703
|
-
return add_comment(task, started_task_status, client=client)
|
|
705
|
+
return add_comment(task, started_task_status, person=person, client=client)
|
|
704
706
|
|
|
705
707
|
|
|
706
708
|
def task_to_review(
|
|
@@ -1067,20 +1069,22 @@ def publish_preview(
|
|
|
1067
1069
|
return new_comment, preview_file
|
|
1068
1070
|
|
|
1069
1071
|
|
|
1070
|
-
def
|
|
1072
|
+
def batch_comments(comments=[], task=None, client=default):
|
|
1071
1073
|
"""
|
|
1072
1074
|
Publish a list of comments (with attachments and previews) for given task.
|
|
1073
1075
|
Each dict comments may contain a list of attachment files path and preview
|
|
1074
|
-
files path in the keys "attachment_files" and "preview_files".
|
|
1076
|
+
files path in the keys "attachment_files" and "preview_files". If no task is
|
|
1077
|
+
given each comments needs to have a task_id key.
|
|
1075
1078
|
|
|
1076
1079
|
Args:
|
|
1077
|
-
task (str / dict): The task dict or the task ID.
|
|
1078
1080
|
comments (list): List of comments to publish.
|
|
1081
|
+
task (str / dict): The task dict or the task ID.
|
|
1079
1082
|
|
|
1080
1083
|
Returns:
|
|
1081
1084
|
list: List of created comments.
|
|
1082
1085
|
"""
|
|
1083
|
-
task
|
|
1086
|
+
if task is not None:
|
|
1087
|
+
task = normalize_model_parameter(task)
|
|
1084
1088
|
|
|
1085
1089
|
files = {}
|
|
1086
1090
|
for x, comment in enumerate(comments):
|
|
@@ -1093,7 +1097,7 @@ def publish_comments_previews(task, comments=[], client=default):
|
|
|
1093
1097
|
|
|
1094
1098
|
files["comments"] = (None, json.dumps(comments), "application/json")
|
|
1095
1099
|
return raw.upload(
|
|
1096
|
-
"actions/tasks/%s/
|
|
1100
|
+
"actions/tasks/%sbatch-comment" % ("%s/" % task["id"] if task else ""),
|
|
1097
1101
|
file_path=None,
|
|
1098
1102
|
files=files,
|
|
1099
1103
|
client=client,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: gazu
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.25
|
|
4
4
|
Summary: Gazu is a client for Zou, the API to store the data of your CG production.
|
|
5
5
|
Home-page: https://gazu.cg-wire.com/
|
|
6
6
|
Author: CG Wire
|
|
@@ -28,7 +28,7 @@ Requires-Python: >= 2.7, != 3.0.*, != 3.1.*, != 3.2.*, != 3.3.*, != 3.4.*, != 3.
|
|
|
28
28
|
License-File: LICENSE
|
|
29
29
|
Requires-Dist: python-socketio[client]<6,>=5.11.0; python_version != "2.7"
|
|
30
30
|
Requires-Dist: requests>=2.25.1
|
|
31
|
-
Requires-Dist: Deprecated==1.2.
|
|
31
|
+
Requires-Dist: Deprecated==1.2.17
|
|
32
32
|
Requires-Dist: pywin32>=308; sys_platform == "win32" and python_version != "2.7"
|
|
33
33
|
Provides-Extra: dev
|
|
34
34
|
Requires-Dist: wheel; extra == "dev"
|
|
@@ -40,7 +40,8 @@ Requires-Dist: multipart; python_version >= "3.13" and extra == "test"
|
|
|
40
40
|
Provides-Extra: lint
|
|
41
41
|
Requires-Dist: autoflake==2.3.1; python_version >= "3.8" and extra == "lint"
|
|
42
42
|
Requires-Dist: black==24.10.0; python_version >= "3.9" and extra == "lint"
|
|
43
|
-
Requires-Dist: pre-commit==4.0
|
|
43
|
+
Requires-Dist: pre-commit==4.1.0; python_version >= "3.9" and extra == "lint"
|
|
44
|
+
Dynamic: requires-python
|
|
44
45
|
|
|
45
46
|
.. figure:: https://zou.cg-wire.com/kitsu.png
|
|
46
47
|
:alt: Kitsu Logo
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
gazu/__init__.py,sha256=KPAVnFOSbzZnd24ItkZEOv7yQ5w0Pv7k1TFmL8saiqY,2594
|
|
2
|
-
gazu/__version__.py,sha256=
|
|
3
|
-
gazu/asset.py,sha256=
|
|
2
|
+
gazu/__version__.py,sha256=Coyv7MpdI8ZoDeD0fdTND37obhZwJVgcJYjEy24iAso,24
|
|
3
|
+
gazu/asset.py,sha256=ZAc8F-7GPQTU_nVcUpH_xSVf58k6TXudlP6XnFc_LJk,14686
|
|
4
4
|
gazu/cache.py,sha256=MnxrnfYN7wHNTTL7qzkEpYCYzWcolT56fqQ0_RegMbE,5879
|
|
5
5
|
gazu/casting.py,sha256=0LTdsHaCTHSKEflBWFeuraSaYNYetGkMHAIdg6Lv81U,5059
|
|
6
6
|
gazu/client.py,sha256=TNxUOy_kVKnMSLxQFC-fFPqPPE8BaIvL37ExeW2TI5k,22162
|
|
@@ -11,7 +11,7 @@ gazu/encoder.py,sha256=dj8U5mlGVy0GeaA7HIIdPSRdKswUQ8h4DzjFKLhwvR0,394
|
|
|
11
11
|
gazu/entity.py,sha256=Pbc_sbgo8RhQV88nksP1whHyWL4hVyHR3CZ0sVplPY4,3670
|
|
12
12
|
gazu/events.py,sha256=4j8wbF4K-f5Kyu_jI4bklS12huzAN0cjCdY4hcKyhuk,2221
|
|
13
13
|
gazu/exception.py,sha256=Y0kVNm6h-uXLEU1sNIbMSUep7Zxk738uYHOIVs2waM8,1880
|
|
14
|
-
gazu/files.py,sha256=
|
|
14
|
+
gazu/files.py,sha256=3zx6GWRRI9RPc6cN7sUIsj4g-ARfeypUUVUIvxqqNj8,39744
|
|
15
15
|
gazu/helpers.py,sha256=Qa4JlZitiXsfYMJGGuwVaedLvHQVMbIwcqEZ099EjMw,3916
|
|
16
16
|
gazu/person.py,sha256=BFh54J_R6_pIgYxAF_yAxFzjsO98hTLeBAKiZxewiK0,11098
|
|
17
17
|
gazu/playlist.py,sha256=fzrhVY0fhxp5rSlvrowZPWEOqdl4rEYD4TKmnuvyKHg,6740
|
|
@@ -20,10 +20,10 @@ gazu/scene.py,sha256=Q4AVmiMfGhSZfaXwOceyR-taTlpx1WCELe0UBSiHm8o,5357
|
|
|
20
20
|
gazu/shot.py,sha256=mHg-8B7xk3PXMqbPo0oCx2X7br2sGCBmuM7hEhpXRas,18942
|
|
21
21
|
gazu/sorting.py,sha256=qSIO0pOHkj0Tl4gm9BJrYrcifWGGGmsW68Pl86zB_bg,266
|
|
22
22
|
gazu/sync.py,sha256=3clThVFC9pSIQiCyVkNRPnlbYQDA2kfR-lxaWxHbeUk,21611
|
|
23
|
-
gazu/task.py,sha256=
|
|
23
|
+
gazu/task.py,sha256=_b30VF0ZooB-WTNoCYslJWzT0NI0RF8MZ31h8B4A218,38001
|
|
24
24
|
gazu/user.py,sha256=GyJf6mrynHvLllw3Hsiv-6wjaYTHO_PBNkJzyJjJA1A,9556
|
|
25
|
-
gazu-0.10.
|
|
26
|
-
gazu-0.10.
|
|
27
|
-
gazu-0.10.
|
|
28
|
-
gazu-0.10.
|
|
29
|
-
gazu-0.10.
|
|
25
|
+
gazu-0.10.25.dist-info/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
|
|
26
|
+
gazu-0.10.25.dist-info/METADATA,sha256=OPumGBntyFQQrPV4f5Z1F-Jqjjk1WxV6P9lASw_tLjs,5472
|
|
27
|
+
gazu-0.10.25.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
|
|
28
|
+
gazu-0.10.25.dist-info/top_level.txt,sha256=nv7fRIVpYYyIlk_66hBmMyvWcSC7UU-r-GE8uC1u1Go,5
|
|
29
|
+
gazu-0.10.25.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|