ayon-python-api 1.0.2__tar.gz → 1.0.4__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.
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/PKG-INFO +1 -1
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_api/constants.py +12 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_api/entity_hub.py +2 -4
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_api/server_api.py +4 -1
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_api/version.py +1 -1
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_python_api.egg-info/PKG-INFO +1 -1
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/pyproject.toml +2 -2
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/LICENSE +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/README.md +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_api/__init__.py +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_api/_api.py +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_api/events.py +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_api/exceptions.py +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_api/graphql.py +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_api/graphql_queries.py +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_api/operations.py +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_api/utils.py +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_python_api.egg-info/SOURCES.txt +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_python_api.egg-info/dependency_links.txt +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_python_api.egg-info/requires.txt +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_python_api.egg-info/top_level.txt +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/setup.cfg +0 -0
- {ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/setup.py +0 -0
|
@@ -72,6 +72,8 @@ DEFAULT_FOLDER_FIELDS = {
|
|
|
72
72
|
"active",
|
|
73
73
|
"thumbnailId",
|
|
74
74
|
"data",
|
|
75
|
+
"status",
|
|
76
|
+
"tags",
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
# --- Tasks ---
|
|
@@ -84,6 +86,8 @@ DEFAULT_TASK_FIELDS = {
|
|
|
84
86
|
"active",
|
|
85
87
|
"assignees",
|
|
86
88
|
"data",
|
|
89
|
+
"status",
|
|
90
|
+
"tags",
|
|
87
91
|
}
|
|
88
92
|
|
|
89
93
|
# --- Products ---
|
|
@@ -94,6 +98,8 @@ DEFAULT_PRODUCT_FIELDS = {
|
|
|
94
98
|
"active",
|
|
95
99
|
"productType",
|
|
96
100
|
"data",
|
|
101
|
+
"status",
|
|
102
|
+
"tags",
|
|
97
103
|
}
|
|
98
104
|
|
|
99
105
|
# --- Versions ---
|
|
@@ -109,6 +115,8 @@ DEFAULT_VERSION_FIELDS = {
|
|
|
109
115
|
"createdAt",
|
|
110
116
|
"updatedAt",
|
|
111
117
|
"data",
|
|
118
|
+
"status",
|
|
119
|
+
"tags",
|
|
112
120
|
}
|
|
113
121
|
|
|
114
122
|
# --- Representations ---
|
|
@@ -120,6 +128,8 @@ DEFAULT_REPRESENTATION_FIELDS = {
|
|
|
120
128
|
"active",
|
|
121
129
|
"versionId",
|
|
122
130
|
"data",
|
|
131
|
+
"status",
|
|
132
|
+
"tags",
|
|
123
133
|
}
|
|
124
134
|
|
|
125
135
|
REPRESENTATION_FILES_FIELDS = {
|
|
@@ -144,6 +154,8 @@ DEFAULT_WORKFILE_INFO_FIELDS = {
|
|
|
144
154
|
"updatedAt",
|
|
145
155
|
"updatedBy",
|
|
146
156
|
"data",
|
|
157
|
+
"status",
|
|
158
|
+
"tags",
|
|
147
159
|
}
|
|
148
160
|
|
|
149
161
|
DEFAULT_EVENT_FIELDS = {
|
|
@@ -219,6 +219,7 @@ class EntityHub(object):
|
|
|
219
219
|
entity_data = self._connection.get_task_by_id(
|
|
220
220
|
self.project_name,
|
|
221
221
|
entity_id,
|
|
222
|
+
fields=self._get_task_fields(),
|
|
222
223
|
own_attributes=True
|
|
223
224
|
)
|
|
224
225
|
else:
|
|
@@ -604,15 +605,12 @@ class EntityHub(object):
|
|
|
604
605
|
folder_fields.add("hasProducts")
|
|
605
606
|
if self._allow_data_changes:
|
|
606
607
|
folder_fields.add("data")
|
|
607
|
-
folder_fields |= {"status", "tags"}
|
|
608
608
|
return folder_fields
|
|
609
609
|
|
|
610
610
|
def _get_task_fields(self):
|
|
611
|
-
|
|
611
|
+
return set(
|
|
612
612
|
self._connection.get_default_fields_for_type("task")
|
|
613
613
|
)
|
|
614
|
-
task_fields |= {"status", "tags"}
|
|
615
|
-
return task_fields
|
|
616
614
|
|
|
617
615
|
def query_entities_from_server(self):
|
|
618
616
|
"""Query whole project at once."""
|
|
@@ -3536,7 +3536,10 @@ class ServerAPI(object):
|
|
|
3536
3536
|
|
|
3537
3537
|
use_rest = self._should_use_rest_project(fields)
|
|
3538
3538
|
if use_rest:
|
|
3539
|
-
|
|
3539
|
+
project = self.get_rest_project(project_name)
|
|
3540
|
+
if own_attributes:
|
|
3541
|
+
fill_own_attribs(project)
|
|
3542
|
+
return project
|
|
3540
3543
|
|
|
3541
3544
|
self._prepare_project_fields(fields, own_attributes)
|
|
3542
3545
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""Package declaring Python API for AYON server."""
|
|
2
|
-
__version__ = "1.0.
|
|
2
|
+
__version__ = "1.0.4"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "ayon-python-api"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.4"
|
|
4
4
|
description = "AYON Python API"
|
|
5
5
|
license = {file = "LICENSE"}
|
|
6
6
|
readme = {file = "README.md", content-type = "text/markdown"}
|
|
@@ -31,7 +31,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
31
31
|
|
|
32
32
|
[tool.poetry]
|
|
33
33
|
name = "ayon-python-api"
|
|
34
|
-
version = "1.0.
|
|
34
|
+
version = "1.0.4"
|
|
35
35
|
description = "AYON Python API"
|
|
36
36
|
authors = [
|
|
37
37
|
"ynput.io <info@ynput.io>"
|
|
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
|
{ayon-python-api-1.0.2 → ayon-python-api-1.0.4}/ayon_python_api.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|