ayon-python-api 1.0.4__tar.gz → 1.0.6__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.4 → ayon-python-api-1.0.6}/PKG-INFO +2 -3
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/README.md +1 -1
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_api/__init__.py +22 -0
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_api/_api.py +304 -42
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_api/entity_hub.py +167 -45
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_api/graphql.py +5 -8
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_api/graphql_queries.py +53 -23
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_api/operations.py +2 -5
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_api/server_api.py +611 -157
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_api/utils.py +6 -7
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_api/version.py +1 -1
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_python_api.egg-info/PKG-INFO +2 -3
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_python_api.egg-info/requires.txt +1 -2
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/pyproject.toml +6 -9
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/setup.py +1 -3
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/LICENSE +0 -0
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_api/constants.py +0 -0
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_api/events.py +0 -0
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_api/exceptions.py +0 -0
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_python_api.egg-info/SOURCES.txt +0 -0
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_python_api.egg-info/dependency_links.txt +0 -0
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/ayon_python_api.egg-info/top_level.txt +0 -0
- {ayon-python-api-1.0.4 → ayon-python-api-1.0.6}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ayon-python-api
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.6
|
|
4
4
|
Summary: AYON Python API
|
|
5
5
|
Home-page: https://github.com/ynput/ayon-python-api
|
|
6
6
|
Author: ynput.io
|
|
@@ -212,13 +212,12 @@ Project-URL: Changelog, https://github.com/ynput/ayon-python-api/releases
|
|
|
212
212
|
Keywords: AYON,ynput,OpenPype,vfx
|
|
213
213
|
Classifier: Development Status :: 5 - Production/Stable
|
|
214
214
|
Classifier: Programming Language :: Python
|
|
215
|
-
Classifier: Programming Language :: Python :: 2
|
|
216
215
|
Classifier: Programming Language :: Python :: 3
|
|
217
216
|
Description-Content-Type: text/markdown
|
|
218
217
|
License-File: LICENSE
|
|
219
218
|
|
|
220
219
|
# AYON server API
|
|
221
|
-
Python client for connection server.
|
|
220
|
+
Python client for connection server. The client is using REST and GraphQl to communicate with server with `requests` module.
|
|
222
221
|
|
|
223
222
|
AYON Python api should support connection to server with raw REST functions and prepared functionality for work with entities. Must not contain only functionality that can be used with core server functionality.
|
|
224
223
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# AYON server API
|
|
2
|
-
Python client for connection server.
|
|
2
|
+
Python client for connection server. The client is using REST and GraphQl to communicate with server with `requests` module.
|
|
3
3
|
|
|
4
4
|
AYON Python api should support connection to server with raw REST functions and prepared functionality for work with entities. Must not contain only functionality that can be used with core server functionality.
|
|
5
5
|
|
|
@@ -5,6 +5,7 @@ from .utils import (
|
|
|
5
5
|
create_dependency_package_basename,
|
|
6
6
|
)
|
|
7
7
|
from .server_api import (
|
|
8
|
+
RequestTypes,
|
|
8
9
|
ServerAPI,
|
|
9
10
|
)
|
|
10
11
|
|
|
@@ -32,6 +33,7 @@ from ._api import (
|
|
|
32
33
|
set_timeout,
|
|
33
34
|
get_max_retries,
|
|
34
35
|
set_max_retries,
|
|
36
|
+
is_service_user,
|
|
35
37
|
get_site_id,
|
|
36
38
|
set_site_id,
|
|
37
39
|
get_client_version,
|
|
@@ -60,7 +62,9 @@ from ._api import (
|
|
|
60
62
|
update_event,
|
|
61
63
|
dispatch_event,
|
|
62
64
|
enroll_event_job,
|
|
65
|
+
download_file_to_stream,
|
|
63
66
|
download_file,
|
|
67
|
+
upload_file_from_stream,
|
|
64
68
|
upload_file,
|
|
65
69
|
trigger_server_restart,
|
|
66
70
|
query_graphql,
|
|
@@ -98,8 +102,12 @@ from ._api import (
|
|
|
98
102
|
get_default_anatomy_preset_name,
|
|
99
103
|
get_project_anatomy_preset,
|
|
100
104
|
get_build_in_anatomy_preset,
|
|
105
|
+
get_project_root_overrides,
|
|
101
106
|
get_project_roots_by_site,
|
|
107
|
+
get_project_root_overrides_by_site_id,
|
|
102
108
|
get_project_roots_for_site,
|
|
109
|
+
get_project_roots_by_site_id,
|
|
110
|
+
get_project_roots_by_platform,
|
|
103
111
|
get_addon_settings_schema,
|
|
104
112
|
get_addon_site_settings_schema,
|
|
105
113
|
get_addon_studio_settings,
|
|
@@ -118,6 +126,7 @@ from ._api import (
|
|
|
118
126
|
get_rest_projects,
|
|
119
127
|
get_rest_entity_by_id,
|
|
120
128
|
get_rest_folder,
|
|
129
|
+
get_rest_folders,
|
|
121
130
|
get_rest_task,
|
|
122
131
|
get_rest_product,
|
|
123
132
|
get_rest_version,
|
|
@@ -169,6 +178,8 @@ from ._api import (
|
|
|
169
178
|
get_representations,
|
|
170
179
|
get_representation_by_id,
|
|
171
180
|
get_representation_by_name,
|
|
181
|
+
get_representations_hierarchy,
|
|
182
|
+
get_representation_hierarchy,
|
|
172
183
|
get_representations_parents,
|
|
173
184
|
get_representation_parents,
|
|
174
185
|
get_repre_ids_by_context_filters,
|
|
@@ -218,6 +229,7 @@ __all__ = (
|
|
|
218
229
|
"slugify_string",
|
|
219
230
|
"create_dependency_package_basename",
|
|
220
231
|
|
|
232
|
+
"RequestTypes",
|
|
221
233
|
"ServerAPI",
|
|
222
234
|
|
|
223
235
|
"GlobalServerAPI",
|
|
@@ -243,6 +255,7 @@ __all__ = (
|
|
|
243
255
|
"set_timeout",
|
|
244
256
|
"get_max_retries",
|
|
245
257
|
"set_max_retries",
|
|
258
|
+
"is_service_user",
|
|
246
259
|
"get_site_id",
|
|
247
260
|
"set_site_id",
|
|
248
261
|
"get_client_version",
|
|
@@ -271,7 +284,9 @@ __all__ = (
|
|
|
271
284
|
"update_event",
|
|
272
285
|
"dispatch_event",
|
|
273
286
|
"enroll_event_job",
|
|
287
|
+
"download_file_to_stream",
|
|
274
288
|
"download_file",
|
|
289
|
+
"upload_file_from_stream",
|
|
275
290
|
"upload_file",
|
|
276
291
|
"trigger_server_restart",
|
|
277
292
|
"query_graphql",
|
|
@@ -309,8 +324,12 @@ __all__ = (
|
|
|
309
324
|
"get_default_anatomy_preset_name",
|
|
310
325
|
"get_project_anatomy_preset",
|
|
311
326
|
"get_build_in_anatomy_preset",
|
|
327
|
+
"get_project_root_overrides",
|
|
312
328
|
"get_project_roots_by_site",
|
|
329
|
+
"get_project_root_overrides_by_site_id",
|
|
313
330
|
"get_project_roots_for_site",
|
|
331
|
+
"get_project_roots_by_site_id",
|
|
332
|
+
"get_project_roots_by_platform",
|
|
314
333
|
"get_addon_settings_schema",
|
|
315
334
|
"get_addon_site_settings_schema",
|
|
316
335
|
"get_addon_studio_settings",
|
|
@@ -329,6 +348,7 @@ __all__ = (
|
|
|
329
348
|
"get_rest_projects",
|
|
330
349
|
"get_rest_entity_by_id",
|
|
331
350
|
"get_rest_folder",
|
|
351
|
+
"get_rest_folders",
|
|
332
352
|
"get_rest_task",
|
|
333
353
|
"get_rest_product",
|
|
334
354
|
"get_rest_version",
|
|
@@ -380,6 +400,8 @@ __all__ = (
|
|
|
380
400
|
"get_representations",
|
|
381
401
|
"get_representation_by_id",
|
|
382
402
|
"get_representation_by_name",
|
|
403
|
+
"get_representations_hierarchy",
|
|
404
|
+
"get_representation_hierarchy",
|
|
383
405
|
"get_representations_parents",
|
|
384
406
|
"get_representation_parents",
|
|
385
407
|
"get_repre_ids_by_context_filters",
|