gazu 1.1.1__py2.py3-none-any.whl → 1.1.2__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/user.py CHANGED
@@ -39,7 +39,7 @@ def all_asset_types_for_project(
39
39
  project.
40
40
  """
41
41
  project = normalize_model_parameter(project)
42
- path = "user/projects/%s/asset-types" % project["id"]
42
+ path = f"user/projects/{project['id']}/asset-types"
43
43
  asset_types = raw.fetch_all(path, client=client)
44
44
  return sort_by_name(asset_types)
45
45
 
@@ -59,9 +59,8 @@ def all_assets_for_asset_type_and_project(
59
59
  """
60
60
  project = normalize_model_parameter(project)
61
61
  asset_type = normalize_model_parameter(asset_type)
62
- path = "user/projects/%s/asset-types/%s/assets" % (
63
- project["id"],
64
- asset_type["id"],
62
+ path = (
63
+ f"user/projects/{project['id']}/asset-types/{asset_type['id']}/assets"
65
64
  )
66
65
  assets = raw.fetch_all(path, client=client)
67
66
  return sort_by_name(assets)
@@ -79,7 +78,7 @@ def all_tasks_for_asset(
79
78
  list: Tasks for given asset and current user.
80
79
  """
81
80
  asset = normalize_model_parameter(asset)
82
- path = "user/assets/%s/tasks" % asset["id"]
81
+ path = f"user/assets/{asset['id']}/tasks"
83
82
  tasks = raw.fetch_all(path, client=client)
84
83
  return sort_by_name(tasks)
85
84
 
@@ -96,7 +95,7 @@ def all_tasks_for_shot(
96
95
  list: Tasks assigned to current user for given shot.
97
96
  """
98
97
  shot = normalize_model_parameter(shot)
99
- path = "user/shots/%s/tasks" % shot["id"]
98
+ path = f"user/shots/{shot['id']}/tasks"
100
99
  tasks = raw.fetch_all(path, client=client)
101
100
  return sort_by_name(tasks)
102
101
 
@@ -113,7 +112,7 @@ def all_tasks_for_scene(
113
112
  list: Tasks assigned to current user for given scene.
114
113
  """
115
114
  scene = normalize_model_parameter(scene)
116
- path = "user/scenes/%s/tasks" % scene["id"]
115
+ path = f"user/scenes/{scene['id']}/tasks"
117
116
  tasks = raw.fetch_all(path, client=client)
118
117
  return sort_by_name(tasks)
119
118
 
@@ -126,7 +125,7 @@ def all_tasks_for_sequence(
126
125
  Return the list of tasks for given asset and current user.
127
126
  """
128
127
  sequence = normalize_model_parameter(sequence)
129
- path = "user/sequences/%s/tasks" % sequence["id"]
128
+ path = f"user/sequences/{sequence['id']}/tasks"
130
129
  tasks = raw.fetch_all(path, client=client)
131
130
  return sort_by_name(tasks)
132
131
 
@@ -143,7 +142,7 @@ def all_task_types_for_asset(
143
142
  list: Task Types of tasks assigned to current user for given asset.
144
143
  """
145
144
  asset = normalize_model_parameter(asset)
146
- path = "user/assets/%s/task-types" % asset["id"]
145
+ path = f"user/assets/{asset['id']}/task-types"
147
146
  tasks = raw.fetch_all(path, client=client)
148
147
  return sort_by_name(tasks)
149
148
 
@@ -160,7 +159,7 @@ def all_task_types_for_shot(
160
159
  list: Task Types of tasks assigned to current user for given shot.
161
160
  """
162
161
  shot = normalize_model_parameter(shot)
163
- path = "user/shots/%s/task-types" % shot["id"]
162
+ path = f"user/shots/{shot['id']}/task-types"
164
163
  task_types = raw.fetch_all(path, client=client)
165
164
  return sort_by_name(task_types)
166
165
 
@@ -177,7 +176,7 @@ def all_task_types_for_scene(
177
176
  list: Task types of tasks assigned to current user for given scene.
178
177
  """
179
178
  scene = normalize_model_parameter(scene)
180
- path = "user/scenes/%s/task-types" % scene["id"]
179
+ path = f"user/scenes/{scene['id']}/task-types"
181
180
  task_types = raw.fetch_all(path, client=client)
182
181
  return sort_by_name(task_types)
183
182
 
@@ -191,7 +190,7 @@ def all_task_types_for_sequence(
191
190
  list: Task types for given asset and current user.
192
191
  """
193
192
  sequence = normalize_model_parameter(sequence)
194
- path = "user/sequences/%s/task-types" % sequence["id"]
193
+ path = f"user/sequences/{sequence['id']}/task-types"
195
194
  task_types = raw.fetch_all(path, client=client)
196
195
  return sort_by_name(task_types)
197
196
 
@@ -208,7 +207,7 @@ def all_sequences_for_project(
208
207
  list: Sequences for which user has tasks assigned for given project.
209
208
  """
210
209
  project = normalize_model_parameter(project)
211
- path = "user/projects/%s/sequences" % project["id"]
210
+ path = f"user/projects/{project['id']}/sequences"
212
211
  sequences = raw.fetch_all(path, client=client)
213
212
  return sort_by_name(sequences)
214
213
 
@@ -224,7 +223,7 @@ def all_episodes_for_project(
224
223
  Returns:
225
224
  list: Episodes for which user has tasks assigned for given project.
226
225
  """
227
- path = "user/projects/%s/episodes" % project["id"]
226
+ path = f"user/projects/{project['id']}/episodes"
228
227
  asset_types = raw.fetch_all(path, client=client)
229
228
  return sort_by_name(asset_types)
230
229
 
@@ -241,7 +240,7 @@ def all_shots_for_sequence(
241
240
  list: Shots for which user has tasks assigned for given sequence.
242
241
  """
243
242
  sequence = normalize_model_parameter(sequence)
244
- path = "user/sequences/%s/shots" % sequence["id"]
243
+ path = f"user/sequences/{sequence['id']}/shots"
245
244
  shots = raw.fetch_all(path, client=client)
246
245
  return sort_by_name(shots)
247
246
 
@@ -258,7 +257,7 @@ def all_scenes_for_sequence(
258
257
  list: Scenes for which user has tasks assigned for given sequence.
259
258
  """
260
259
  sequence = normalize_model_parameter(sequence)
261
- path = "user/sequences/%s/scenes" % sequence["id"]
260
+ path = f"user/sequences/{sequence['id']}/scenes"
262
261
  scenes = raw.fetch_all(path, client=client)
263
262
  return sort_by_name(scenes)
264
263
 
@@ -381,7 +380,7 @@ def remove_filter(filter: str | dict, client: KitsuClient = default) -> str:
381
380
  filter (str / dict): The filter dict or the filter ID.
382
381
  """
383
382
  filter = normalize_model_parameter(filter)
384
- return raw.delete("data/user/filters/%s" % filter["id"], client=client)
383
+ return raw.delete(f"data/user/filters/{filter['id']}", client=client)
385
384
 
386
385
 
387
386
  def update_filter(filter: dict, client: KitsuClient = default) -> dict:
@@ -391,9 +390,7 @@ def update_filter(filter: dict, client: KitsuClient = default) -> dict:
391
390
  Args:
392
391
  filter (dict): Filter to save.
393
392
  """
394
- return raw.put(
395
- "data/user/filters/%s" % filter["id"], filter, client=client
396
- )
393
+ return raw.put(f"data/user/filters/{filter['id']}", filter, client=client)
397
394
 
398
395
 
399
396
  @cache
@@ -421,7 +418,7 @@ def all_project_assets(
421
418
  list: Assets for the project.
422
419
  """
423
420
  project = normalize_model_parameter(project)
424
- path = "user/projects/%s/assets" % project["id"]
421
+ path = f"user/projects/{project['id']}/assets"
425
422
  return raw.fetch_all(path, client=client)
426
423
 
427
424
 
@@ -504,7 +501,7 @@ def update_filter_group(
504
501
  dict: Updated filter group.
505
502
  """
506
503
  return raw.put(
507
- "data/user/filter-groups/%s" % filter_group["id"],
504
+ f"data/user/filter-groups/{filter_group['id']}",
508
505
  filter_group,
509
506
  client=client,
510
507
  )
@@ -521,7 +518,7 @@ def remove_filter_group(
521
518
  """
522
519
  filter_group = normalize_model_parameter(filter_group)
523
520
  return raw.delete(
524
- "data/user/filter-groups/%s" % filter_group["id"], client=client
521
+ f"data/user/filter-groups/{filter_group['id']}", client=client
525
522
  )
526
523
 
527
524
 
@@ -566,7 +563,7 @@ def get_task_time_spent(
566
563
  dict: Time spent information for the task.
567
564
  """
568
565
  task = normalize_model_parameter(task)
569
- path = "data/user/tasks/%s/time-spent" % task["id"]
566
+ path = f"data/user/tasks/{task['id']}/time-spent"
570
567
  return raw.get(path, client=client)
571
568
 
572
569
 
@@ -624,7 +621,7 @@ def update_notification(
624
621
  dict: Updated notification.
625
622
  """
626
623
  return raw.put(
627
- "data/user/notifications/%s" % notification["id"],
624
+ f"data/user/notifications/{notification['id']}",
628
625
  notification,
629
626
  client=client,
630
627
  )
@@ -644,7 +641,7 @@ def check_task_subscription(
644
641
  dict: Subscription status.
645
642
  """
646
643
  task = normalize_model_parameter(task)
647
- path = "data/user/tasks/%s/subscription" % task["id"]
644
+ path = f"data/user/tasks/{task['id']}/subscription"
648
645
  return raw.get(path, client=client)
649
646
 
650
647
 
@@ -659,7 +656,7 @@ def subscribe_to_task(task: str | dict, client: KitsuClient = default) -> dict:
659
656
  dict: Subscription information.
660
657
  """
661
658
  task = normalize_model_parameter(task)
662
- path = "data/user/tasks/%s/subscribe" % task["id"]
659
+ path = f"data/user/tasks/{task['id']}/subscribe"
663
660
  return raw.post(path, {}, client=client)
664
661
 
665
662
 
@@ -673,7 +670,7 @@ def unsubscribe_from_task(
673
670
  task (str / dict): The task dict or id.
674
671
  """
675
672
  task = normalize_model_parameter(task)
676
- path = "data/user/tasks/%s/unsubscribe" % task["id"]
673
+ path = f"data/user/tasks/{task['id']}/unsubscribe"
677
674
  return raw.delete(path, client=client)
678
675
 
679
676
 
@@ -699,7 +696,7 @@ def join_chat(chat: str | dict, client: KitsuClient = default) -> dict:
699
696
  dict: Chat information.
700
697
  """
701
698
  chat = normalize_model_parameter(chat)
702
- path = "data/user/chats/%s/join" % chat["id"]
699
+ path = f"data/user/chats/{chat['id']}/join"
703
700
  return raw.post(path, {}, client=client)
704
701
 
705
702
 
@@ -711,7 +708,7 @@ def leave_chat(chat: str | dict, client: KitsuClient = default) -> str:
711
708
  chat (str / dict): The chat dict or id.
712
709
  """
713
710
  chat = normalize_model_parameter(chat)
714
- path = "data/user/chats/%s/leave" % chat["id"]
711
+ path = f"data/user/chats/{chat['id']}/leave"
715
712
  return raw.delete(path, client=client)
716
713
 
717
714
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gazu
3
- Version: 1.1.1
3
+ Version: 1.1.2
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
@@ -39,7 +39,7 @@ Requires-Dist: requests_mock; extra == "test"
39
39
  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
- Requires-Dist: black==25.12.0; python_version >= "3.10" and extra == "lint"
42
+ Requires-Dist: black==26.1.0; python_version >= "3.10" and extra == "lint"
43
43
  Requires-Dist: pre-commit==4.5.1; python_version >= "3.10" and extra == "lint"
44
44
  Dynamic: license-file
45
45
  Dynamic: requires-python
@@ -0,0 +1,31 @@
1
+ gazu/__init__.py,sha256=KPAVnFOSbzZnd24ItkZEOv7yQ5w0Pv7k1TFmL8saiqY,2594
2
+ gazu/__version__.py,sha256=5SgGjThsHu_ITn8V83BvCziqCwxdXxTQqcC3KQMHPfM,22
3
+ gazu/asset.py,sha256=dTTv4_VE043eLPezFAvJUesCScMOhu9BC8SvBx1Z8H8,17995
4
+ gazu/cache.py,sha256=6CR_1gYVPrGDGYaFQLlPQFIQSeS_PCC37euYow5U7vk,6306
5
+ gazu/casting.py,sha256=BiY2ASFvpWP80LnJT3C-XgM7U3ScT8wbLtB51V47dZ4,10529
6
+ gazu/client.py,sha256=ebWswhdEiZSAGq217X2nFgmpuXq_by1Qbh8Px9fvuA8,24266
7
+ gazu/concept.py,sha256=GJoL5ss2wz8Vrp4lqY0RTXqgfMSK0EeM6gUBIVJuQBU,4454
8
+ gazu/context.py,sha256=oXlQYGR9NJ8UaAMPrNhUAGlT63S15aRk1zT7LEhnFEE,4933
9
+ gazu/edit.py,sha256=dArbzkxIwtHO48zOqaYh6KYqQQtjhxV7EBprGy-xPHs,5370
10
+ gazu/encoder.py,sha256=DSnz8RmZt-G1dbn_sj2iyoy5JeaKYGkxqSFI1bt5Suo,430
11
+ gazu/entity.py,sha256=2CwZZA8tU42hMZvz5Crz115Xi9sW3ks5pvHzCMnhukI,4902
12
+ gazu/events.py,sha256=IJsmt6ZmEjE-RkqJawGN4a2gjLOGttSJdnyRan4JUfo,2329
13
+ gazu/exception.py,sha256=Y0kVNm6h-uXLEU1sNIbMSUep7Zxk738uYHOIVs2waM8,1880
14
+ gazu/files.py,sha256=c14dHYile5IDUabecfi2TKqjR4OfnPIsjlZUeilMJXQ,53797
15
+ gazu/helpers.py,sha256=TcZJcFj2h6nNGKk3CvG54QdhMxfi0BC2-JW72hmuYw8,4055
16
+ gazu/person.py,sha256=Xl3XfWLO4K3oi7OF0Pi1N6BOhgjPZ6z342PdJS5twwc,19570
17
+ gazu/playlist.py,sha256=a1zRE_W-USn0rFTgsNoASnu1Gnmb8KdX21pRSvy9TUA,12554
18
+ gazu/project.py,sha256=fve5LLHZfex8wUqrHTC4qlf1KnN0BowD_p5-WUSD4Jc,26917
19
+ gazu/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
+ gazu/scene.py,sha256=3XXlLYHG_dCe8ItPGeeX-7lyXfx-V5KF4o-QB3KDUHM,6264
21
+ gazu/search.py,sha256=9A7MzfavrR2XiJwB4FRKQnfpHI0wwZLx6k1wHLMw934,1219
22
+ gazu/shot.py,sha256=5goOOgSPri5rt5qBdnzeZzBneKiiT9Fet4KvKeHVnfE,23231
23
+ gazu/sorting.py,sha256=NccSw_ENDAGfWSqVi2GPMg5SIh7IBhMY3F0tkalBdMU,329
24
+ gazu/sync.py,sha256=iwZX4Ec5qA-ICLp5LhZ-3yglDgz47nb07Mw3qYyWWLQ,23773
25
+ gazu/task.py,sha256=_-0KCkHP5RNIy2BlsTnRgjgBES7A8g_pN83Yg1mXmho,57705
26
+ gazu/user.py,sha256=4hTzYnrON_KlQLak6R6HsD46LEW-t8V1WLwsvk1_sF8,18394
27
+ gazu-1.1.2.dist-info/licenses/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
28
+ gazu-1.1.2.dist-info/METADATA,sha256=BCDEh7psBpOKjkfnotOYxUjhOQYYATiC5DtkbH5YFnA,5350
29
+ gazu-1.1.2.dist-info/WHEEL,sha256=Mk1ST5gDzEO5il5kYREiBnzzM469m5sI8ESPl7TRhJY,110
30
+ gazu-1.1.2.dist-info/top_level.txt,sha256=nv7fRIVpYYyIlk_66hBmMyvWcSC7UU-r-GE8uC1u1Go,5
31
+ gazu-1.1.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any
@@ -1,31 +0,0 @@
1
- gazu/__init__.py,sha256=KPAVnFOSbzZnd24ItkZEOv7yQ5w0Pv7k1TFmL8saiqY,2594
2
- gazu/__version__.py,sha256=q8_5C0f-8mHWNb6mMw02zlYPnEGXBqvOmP3z0CEwZKM,22
3
- gazu/asset.py,sha256=5FThof1lbl12yEbfUE68GtYFX1e7Z-l6EUj4v_AX1a8,18193
4
- gazu/cache.py,sha256=6CR_1gYVPrGDGYaFQLlPQFIQSeS_PCC37euYow5U7vk,6306
5
- gazu/casting.py,sha256=A0E5D8E7c2rcktuRJbQkpjD1H0D-CRxRVJPGTdjQZ7c,10790
6
- gazu/client.py,sha256=RFhcjEPEF7O38CLfgtlgjCG1gOkLUbyJc6xt9GNU3wE,24276
7
- gazu/concept.py,sha256=ddzfcEFFszaLCzt30leLfkxmxQH-DQfDpz9gFBbfxpA,4464
8
- gazu/context.py,sha256=oXlQYGR9NJ8UaAMPrNhUAGlT63S15aRk1zT7LEhnFEE,4933
9
- gazu/edit.py,sha256=9bDEhTnfh7fjdUCUrKmt4QhgwfHvLaMh1H1jxI706iY,5400
10
- gazu/encoder.py,sha256=DSnz8RmZt-G1dbn_sj2iyoy5JeaKYGkxqSFI1bt5Suo,430
11
- gazu/entity.py,sha256=eXeM2_5xGe70U7ROseOXdaNzpOr61m_nq5tIGh-nBVA,4908
12
- gazu/events.py,sha256=IJsmt6ZmEjE-RkqJawGN4a2gjLOGttSJdnyRan4JUfo,2329
13
- gazu/exception.py,sha256=Y0kVNm6h-uXLEU1sNIbMSUep7Zxk738uYHOIVs2waM8,1880
14
- gazu/files.py,sha256=0h3aNVKuD3m5122pVcxihw_m5Krx0nyUu8bpoWr1qug,54649
15
- gazu/helpers.py,sha256=HcH1q9BQvcDzPo2O7WE-6bJZPf_ekLtwdwfPDIhwFRg,4097
16
- gazu/person.py,sha256=XTKx6QXAXSaRoyERMkboVKsNcJL3vFYfhU1UPhSsN48,19711
17
- gazu/playlist.py,sha256=4dNoz1tn9a0ZJJBomXmtI4sauZjjK3r6X4IAWKI-oZ8,12698
18
- gazu/project.py,sha256=0Sp3T61_m61X8VIOgDoydk8AHJOdgxe55mIuR7ezMEM,27173
19
- gazu/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
- gazu/scene.py,sha256=Jry6J7x6pUOQrSMrLOJDTH5b8-7ezUxQ-VS_o6sazWE,6308
21
- gazu/search.py,sha256=9A7MzfavrR2XiJwB4FRKQnfpHI0wwZLx6k1wHLMw934,1219
22
- gazu/shot.py,sha256=qEw6DwzH-k_8Y48aIauL7XmORTOg54tekdnnQbK3fXw,23380
23
- gazu/sorting.py,sha256=NccSw_ENDAGfWSqVi2GPMg5SIh7IBhMY3F0tkalBdMU,329
24
- gazu/sync.py,sha256=iwZX4Ec5qA-ICLp5LhZ-3yglDgz47nb07Mw3qYyWWLQ,23773
25
- gazu/task.py,sha256=eu3aNdoJzXbeTYEjnFyw4MOX9iwFJ7MHp1L0-ooxzvg,58123
26
- gazu/user.py,sha256=3v72ZG7dW8VByZMF6zrbMXZh34ppKNKXcWXkZO608HQ,18471
27
- gazu-1.1.1.dist-info/licenses/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
28
- gazu-1.1.1.dist-info/METADATA,sha256=F-SWVGxKKgW33wDZCd2UK-DSKwiWL5T8sN4lAglhCdM,5351
29
- gazu-1.1.1.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
30
- gazu-1.1.1.dist-info/top_level.txt,sha256=nv7fRIVpYYyIlk_66hBmMyvWcSC7UU-r-GE8uC1u1Go,5
31
- gazu-1.1.1.dist-info/RECORD,,