Ayon-Python-Api 1.0.0rc1__tar.gz → 1.0.0rc2__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.
Files changed (23) hide show
  1. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/PKG-INFO +1 -1
  2. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_api/entity_hub.py +19 -4
  3. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_api/version.py +1 -1
  4. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_python_api.egg-info/PKG-INFO +1 -1
  5. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/pyproject.toml +1 -1
  6. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/LICENSE +0 -0
  7. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/README.md +0 -0
  8. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_api/__init__.py +0 -0
  9. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_api/_api.py +0 -0
  10. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_api/constants.py +0 -0
  11. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_api/events.py +0 -0
  12. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_api/exceptions.py +0 -0
  13. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_api/graphql.py +0 -0
  14. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_api/graphql_queries.py +0 -0
  15. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_api/operations.py +0 -0
  16. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_api/server_api.py +0 -0
  17. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_api/utils.py +0 -0
  18. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_python_api.egg-info/SOURCES.txt +0 -0
  19. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_python_api.egg-info/dependency_links.txt +0 -0
  20. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_python_api.egg-info/requires.txt +0 -0
  21. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/ayon_python_api.egg-info/top_level.txt +0 -0
  22. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/setup.cfg +0 -0
  23. {ayon-python-api-1.0.0rc1 → ayon-python-api-1.0.0rc2}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ayon-python-api
3
- Version: 1.0.0rc1
3
+ Version: 1.0.0rc2
4
4
  Summary: AYON Python API
5
5
  Home-page: https://github.com/ynput/ayon-python-api
6
6
  Author: ynput.io
@@ -7,9 +7,21 @@ import six
7
7
  from ._api import get_server_api_connection
8
8
  from .utils import create_entity_id, convert_entity_id, slugify_string
9
9
 
10
- UNKNOWN_VALUE = object()
11
- PROJECT_PARENT_ID = object()
12
- _NOT_SET = object()
10
+
11
+ class _CustomNone(object):
12
+ def __init__(self, name=None):
13
+ self._name = name or "CustomNone"
14
+
15
+ def __repr__(self):
16
+ return "<{}>".format(self._name)
17
+
18
+ def __bool__(self):
19
+ return False
20
+
21
+
22
+ UNKNOWN_VALUE = _CustomNone("UNKNOWN_VALUE")
23
+ PROJECT_PARENT_ID = _CustomNone("PROJECT_PARENT_ID")
24
+ _NOT_SET = _CustomNone("_NOT_SET")
13
25
 
14
26
 
15
27
  class EntityHub(object):
@@ -1284,7 +1296,10 @@ class BaseEntity(object):
1284
1296
  changes["name"] = self._name
1285
1297
 
1286
1298
  if self._entity_hub.allow_data_changes:
1287
- if self._orig_data != self._data:
1299
+ if (
1300
+ self._data is not UNKNOWN_VALUE
1301
+ and self._orig_data != self._data
1302
+ ):
1288
1303
  changes["data"] = self._data
1289
1304
 
1290
1305
  if self._orig_thumbnail_id != self._thumbnail_id:
@@ -1,2 +1,2 @@
1
1
  """Package declaring Python API for Ayon server."""
2
- __version__ = "1.0.0-rc.1"
2
+ __version__ = "1.0.0-rc.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ayon-python-api
3
- Version: 1.0.0rc1
3
+ Version: 1.0.0rc2
4
4
  Summary: AYON Python API
5
5
  Home-page: https://github.com/ynput/ayon-python-api
6
6
  Author: ynput.io
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ayon-python-api"
3
- version = "1.0.0-rc.1"
3
+ version = "1.0.0-rc.2"
4
4
  description = "AYON Python API"
5
5
  license = {file = "LICENSE"}
6
6
  readme = {file = "README.md", content-type = "text/markdown"}