gazu 1.0.2__tar.gz → 1.0.3__tar.gz
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-1.0.2 → gazu-1.0.3}/PKG-INFO +1 -1
- gazu-1.0.3/gazu/__version__.py +1 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/events.py +6 -10
- {gazu-1.0.2 → gazu-1.0.3}/gazu/project.py +11 -4
- {gazu-1.0.2 → gazu-1.0.3}/gazu.egg-info/PKG-INFO +1 -1
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_project.py +1 -1
- gazu-1.0.2/gazu/__version__.py +0 -1
- {gazu-1.0.2 → gazu-1.0.3}/LICENSE +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/README.rst +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/__init__.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/asset.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/cache.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/casting.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/client.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/concept.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/context.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/edit.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/encoder.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/entity.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/exception.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/files.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/helpers.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/person.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/playlist.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/scene.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/search.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/shot.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/sorting.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/sync.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/task.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu/user.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu.egg-info/SOURCES.txt +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu.egg-info/dependency_links.txt +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu.egg-info/not-zip-safe +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu.egg-info/requires.txt +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/gazu.egg-info/top_level.txt +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/pyproject.toml +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/setup.cfg +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/setup.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_asset.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_cache.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_casting.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_client.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_concept.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_context.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_edit.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_entity.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_files.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_helpers.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_person.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_playlist.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_scene.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_search.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_shot.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_sync.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_task.py +0 -0
- {gazu-1.0.2 → gazu-1.0.3}/tests/test_user.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.0.3"
|
|
@@ -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
|
|
|
@@ -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):
|
|
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
|
)
|
|
@@ -548,7 +548,7 @@ class ProjectTestCase(unittest.TestCase):
|
|
|
548
548
|
def test_preview_background_files(self):
|
|
549
549
|
with requests_mock.mock() as mock:
|
|
550
550
|
project_id = fakeid("project-1")
|
|
551
|
-
base_path = "data/projects/%s/preview-background-files" % project_id
|
|
551
|
+
base_path = "data/projects/%s/settings/preview-background-files" % project_id
|
|
552
552
|
|
|
553
553
|
mock_route(
|
|
554
554
|
mock,
|
gazu-1.0.2/gazu/__version__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.0.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|