funcnodes 0.2.2__tar.gz → 0.2.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.
Files changed (50) hide show
  1. {funcnodes-0.2.2 → funcnodes-0.2.3}/PKG-INFO +1 -1
  2. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/__init__.py +1 -1
  3. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/data.py +10 -1
  4. {funcnodes-0.2.2 → funcnodes-0.2.3}/pyproject.toml +1 -1
  5. {funcnodes-0.2.2 → funcnodes-0.2.3}/LICENSE +0 -0
  6. {funcnodes-0.2.2 → funcnodes-0.2.3}/README.md +0 -0
  7. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/__main__.py +0 -0
  8. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/_logging.py +0 -0
  9. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/basic_nodes/__init__.py +0 -0
  10. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/basic_nodes/files.py +0 -0
  11. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/basic_nodes/logic.py +0 -0
  12. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/basic_nodes/math.py +0 -0
  13. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/config.py +0 -0
  14. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/eventmanager.py +0 -0
  15. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/exceptions.py +0 -0
  16. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/__init__.py +0 -0
  17. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/funcnodes_react/__init__.py +0 -0
  18. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/funcnodes_react/asset-manifest.json +0 -0
  19. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/funcnodes_react/css/style.css +0 -0
  20. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/funcnodes_react/favicon.ico +0 -0
  21. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/funcnodes_react/index.html +0 -0
  22. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/funcnodes_react/js/424.js +0 -0
  23. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/funcnodes_react/js/424.js.LICENSE.txt +0 -0
  24. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/funcnodes_react/js/main.js +0 -0
  25. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/funcnodes_react/js/main.js.LICENSE.txt +0 -0
  26. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/funcnodes_react/logo192.png +0 -0
  27. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/funcnodes_react/logo512.png +0 -0
  28. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/funcnodes_react/manifest.json +0 -0
  29. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/funcnodes_react/robots.txt +0 -0
  30. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/frontends/funcnodes_react/run.py +0 -0
  31. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/io.py +0 -0
  32. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/lib/__init__.py +0 -0
  33. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/lib/lib.py +0 -0
  34. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/lib/libfinder.py +0 -0
  35. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/lib/libparser.py +0 -0
  36. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/node.py +0 -0
  37. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/nodemaker.py +0 -0
  38. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/nodespace.py +0 -0
  39. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/triggerstack.py +0 -0
  40. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/utils/__init__.py +0 -0
  41. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/utils/data.py +0 -0
  42. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/utils/nodeutils.py +0 -0
  43. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/utils/serialization.py +0 -0
  44. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/worker/__init__.py +0 -0
  45. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/worker/external_worker.py +0 -0
  46. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/worker/loop.py +0 -0
  47. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/worker/remote_worker.py +0 -0
  48. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/worker/websocket.py +0 -0
  49. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/worker/worker.py +0 -0
  50. {funcnodes-0.2.2 → funcnodes-0.2.3}/funcnodes/worker/worker_manager.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: funcnodes
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: funcnodes
5
5
  Author: Julian Kimmig
6
6
  Author-email: julian.kimmig@linkdlab.de
@@ -66,6 +66,6 @@ __all__ = [
66
66
  "DataEnum",
67
67
  ]
68
68
 
69
- __version__ = "0.2.2"
69
+ __version__ = "0.2.3"
70
70
 
71
71
  DEBUG = True
@@ -40,7 +40,16 @@ class DataEnum(enum.Enum):
40
40
  elif isinstance(a, cls):
41
41
  return a
42
42
  else:
43
- return cls(a)
43
+ try:
44
+ return cls(a)
45
+ except ValueError as e:
46
+ if isinstance(a, str):
47
+ if a.startswith(cls.__name__ + "."):
48
+ a = a[len(cls.__name__) + 1 :]
49
+ if a in cls.__members__:
50
+ return cls[a]
51
+
52
+ raise e
44
53
 
45
54
  @classmethod
46
55
  def v(cls: Type[ET], a: Union[ET, str, Any]) -> Any:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "funcnodes"
3
- version = "0.2.2"
3
+ version = "0.2.3"
4
4
  description = "funcnodes"
5
5
  authors = ["Julian Kimmig <julian.kimmig@linkdlab.de>"]
6
6
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes