gazu 1.0.2__py2.py3-none-any.whl → 1.0.3__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 CHANGED
@@ -1 +1 @@
1
- __version__ = "1.0.2"
1
+ __version__ = "1.0.3"
gazu/events.py CHANGED
@@ -1,19 +1,15 @@
1
- import sys
2
-
3
- if sys.version_info[0] == 2:
4
- raise ImportError(
5
- "The events part of Gazu is not available for Python 2.7"
6
- )
7
- from .exception import AuthFailedException
8
- from .client import default_client, get_event_host
9
- from gazu.client import make_auth_header
10
- from engineio.base_client import signal_handler
11
1
  import socketio
12
2
  import os
13
3
  import inspect
14
4
  import signal
15
5
  import socketio
16
6
 
7
+ from engineio.base_client import signal_handler
8
+ from .exception import AuthFailedException
9
+
10
+ from .client import default_client, get_event_host, make_auth_header
11
+
12
+
17
13
  if os.name == "nt":
18
14
  from win32api import SetConsoleCtrlHandler
19
15
 
gazu/project.py CHANGED
@@ -543,7 +543,7 @@ def get_preview_background_files(project, client=default):
543
543
  """
544
544
  project = normalize_model_parameter(project)
545
545
  return raw.fetch_all(
546
- "projects/%s/preview-background-files" % project["id"], client=client
546
+ "projects/%s/settings/preview-background-files" % project["id"], client=client
547
547
  )
548
548
 
549
549
 
@@ -551,13 +551,20 @@ def add_preview_background_file(project, background_file, client=default):
551
551
  """
552
552
  Add a preview background file to a project.
553
553
 
554
+ The background_file payload must be a dict in the form:
555
+ {"preview_background_file_id": <background file id>}
556
+
554
557
  Args:
555
558
  project (dict / ID): The project dict or id.
556
- background_file (dict): Payload describing the background file to add.
559
+ background_file (dict): A dict with a key of "preview_background_file_id"
560
+ and value of the ID of the preview background to add.
561
+
562
+ Returns:
563
+ (dict): The project dictionary.
557
564
  """
558
565
  project = normalize_model_parameter(project)
559
566
  return raw.post(
560
- "data/projects/%s/preview-background-files" % project["id"],
567
+ "data/projects/%s/settings/preview-background-files" % project["id"],
561
568
  background_file,
562
569
  client=client,
563
570
  )
@@ -574,7 +581,7 @@ def remove_preview_background_file(project, background_file, client=default):
574
581
  project = normalize_model_parameter(project)
575
582
  background_file = normalize_model_parameter(background_file)
576
583
  return raw.delete(
577
- "data/projects/%s/preview-background-files/%s"
584
+ "data/projects/%s/settings/preview-background-files/%s"
578
585
  % (project["id"], background_file["id"]),
579
586
  client=client,
580
587
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gazu
3
- Version: 1.0.2
3
+ Version: 1.0.3
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
@@ -1,5 +1,5 @@
1
1
  gazu/__init__.py,sha256=KPAVnFOSbzZnd24ItkZEOv7yQ5w0Pv7k1TFmL8saiqY,2594
2
- gazu/__version__.py,sha256=Y3LSfRioSl2xch70pq_ULlvyECXyEtN3krVaWeGyaxk,22
2
+ gazu/__version__.py,sha256=2plzdEEb24FLjE2I2XyBBcJEPYWHccNL4SgtLC_6erg,22
3
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
@@ -9,13 +9,13 @@ gazu/context.py,sha256=iUyug8EUz3kkF-kmYlH5JuLp66TUqR3uhAq7CouVd_U,4349
9
9
  gazu/edit.py,sha256=v6Zqbk2tiZlwjHhlzPPbR8GJwfWn7X3GU9LzN-cpHSw,4623
10
10
  gazu/encoder.py,sha256=dj8U5mlGVy0GeaA7HIIdPSRdKswUQ8h4DzjFKLhwvR0,394
11
11
  gazu/entity.py,sha256=p0ZvvRvAjj_B7dOn-pi8_zot_23L9YCsuCsDLPD9d4M,4007
12
- gazu/events.py,sha256=4j8wbF4K-f5Kyu_jI4bklS12huzAN0cjCdY4hcKyhuk,2221
12
+ gazu/events.py,sha256=ZR-q0ms2TDtppx7gBPZwrT5Q9rYJL2gequu2mG1ukzw,2065
13
13
  gazu/exception.py,sha256=Y0kVNm6h-uXLEU1sNIbMSUep7Zxk738uYHOIVs2waM8,1880
14
14
  gazu/files.py,sha256=tEKXY43JRNb00W6IPSt8SWlKtFtk3LI3FfbKTe26aao,40702
15
15
  gazu/helpers.py,sha256=Qa4JlZitiXsfYMJGGuwVaedLvHQVMbIwcqEZ099EjMw,3916
16
16
  gazu/person.py,sha256=jmJ1fdtJKIUqAzTv-wngxSJ_fpbiyTLYu5w9rGATaKw,16480
17
17
  gazu/playlist.py,sha256=JntIAJf9-cqF5fV85VU-J15fC9aladQx_77qg3XU8W0,10928
18
- gazu/project.py,sha256=teHqfJldOO6pJWKm6_dkO-JpPdSmKbj0i4jYxCipL8o,23945
18
+ gazu/project.py,sha256=S3lIgzXzP9i5oRwYF3fHoxh6oAgKdiX6Bgqx9Bs4qZI,24221
19
19
  gazu/scene.py,sha256=Q4AVmiMfGhSZfaXwOceyR-taTlpx1WCELe0UBSiHm8o,5357
20
20
  gazu/search.py,sha256=ZUeRChEMgnOTnNV_xIhXQia3xXcWG3ro1Sl9ZbYnLtY,1045
21
21
  gazu/shot.py,sha256=_cSqm_TvvDnezA5gZTrMf5_RqVLic39bp0IGFwewuy8,18937
@@ -23,8 +23,8 @@ gazu/sorting.py,sha256=qSIO0pOHkj0Tl4gm9BJrYrcifWGGGmsW68Pl86zB_bg,266
23
23
  gazu/sync.py,sha256=3clThVFC9pSIQiCyVkNRPnlbYQDA2kfR-lxaWxHbeUk,21611
24
24
  gazu/task.py,sha256=hCGWz2T323s-E_v70_dfv4vWC-faIG_2lW6ifi08JgM,48217
25
25
  gazu/user.py,sha256=NxHVzmX3KrVqai3WDHzvYlR97ME7tOpYYr99l_WRsck,16502
26
- gazu-1.0.2.dist-info/licenses/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
27
- gazu-1.0.2.dist-info/METADATA,sha256=_AXERmqlGCHGS-anUqemJkVXmvuWhfFL-0jIQJVJHC4,5338
28
- gazu-1.0.2.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
29
- gazu-1.0.2.dist-info/top_level.txt,sha256=nv7fRIVpYYyIlk_66hBmMyvWcSC7UU-r-GE8uC1u1Go,5
30
- gazu-1.0.2.dist-info/RECORD,,
26
+ gazu-1.0.3.dist-info/licenses/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
27
+ gazu-1.0.3.dist-info/METADATA,sha256=k1IouRjzQleI_eiK63ezDdd7q2_8T9zA73acyUqNxC8,5338
28
+ gazu-1.0.3.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
29
+ gazu-1.0.3.dist-info/top_level.txt,sha256=nv7fRIVpYYyIlk_66hBmMyvWcSC7UU-r-GE8uC1u1Go,5
30
+ gazu-1.0.3.dist-info/RECORD,,
File without changes