vortexpy 4.0.22__tar.gz → 4.0.23__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 (95) hide show
  1. vortexpy-4.0.23/PKG-INFO +43 -0
  2. {vortexpy-4.0.22 → vortexpy-4.0.23}/pyproject.toml +5 -1
  3. vortexpy-4.0.23/setup.cfg +4 -0
  4. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/DeferUtil.py +26 -5
  5. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/Tuple.py +12 -2
  6. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/__init__.py +1 -1
  7. vortexpy-4.0.23/vortexpy.egg-info/PKG-INFO +43 -0
  8. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortexpy.egg-info/SOURCES.txt +0 -1
  9. vortexpy-4.0.22/PKG-INFO +0 -21
  10. vortexpy-4.0.22/setup.cfg +0 -7
  11. vortexpy-4.0.22/vortexpy.egg-info/PKG-INFO +0 -21
  12. {vortexpy-4.0.22 → vortexpy-4.0.23}/LICENSE +0 -0
  13. {vortexpy-4.0.22 → vortexpy-4.0.23}/README.md +0 -0
  14. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/DataWrapTuple.py +0 -0
  15. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/Jsonable.py +0 -0
  16. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/Payload.py +0 -0
  17. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/PayloadEndpoint.py +0 -0
  18. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/PayloadEndpointTest.py +0 -0
  19. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/PayloadEnvelope.py +0 -0
  20. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/PayloadFilterKeys.py +0 -0
  21. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/PayloadIO.py +0 -0
  22. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/PayloadPriority.py +0 -0
  23. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/PayloadResponse.py +0 -0
  24. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/PayloadResponseTest.py +0 -0
  25. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/PayloadTest.py +0 -0
  26. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/PerformTestActionTuple.py +0 -0
  27. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/SerialiseUtil.py +0 -0
  28. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/TestTuple.py +0 -0
  29. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/TupleAction.py +0 -0
  30. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/TupleActionVortex.py +0 -0
  31. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/TupleDataForTest.py +0 -0
  32. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/TuplePerfTest.py +0 -0
  33. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/TuplePolymorphicTupleTypeFieldArgTest.py +0 -0
  34. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/TupleRestfulTest.py +0 -0
  35. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/TupleSelector.py +0 -0
  36. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/TupleTest.py +0 -0
  37. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexABC.py +0 -0
  38. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexClientHttp.py +0 -0
  39. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexClientHttpTest.py +0 -0
  40. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexClientTcp.py +0 -0
  41. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexClientWebsocketFactory.py +0 -0
  42. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexConnectionABC.py +0 -0
  43. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexFactory.py +0 -0
  44. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexPayloadProtocol.py +0 -0
  45. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexServer.py +0 -0
  46. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexServerConnection.py +0 -0
  47. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexServerHttpResource.py +0 -0
  48. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexServerTcp.py +0 -0
  49. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexServerWebsocket.py +0 -0
  50. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexTcpMemoryLeakPayloadTest.py +0 -0
  51. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexTcpMemoryLeakRawTest.py +0 -0
  52. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexTest.py +0 -0
  53. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexUtil.py +0 -0
  54. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/VortexWritePushProducer.py +0 -0
  55. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/data_loader/TupleDataLiveLockManager.py +0 -0
  56. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/data_loader/TupleDataLoader.py +0 -0
  57. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/data_loader/TupleDataLoaderDelegate.py +0 -0
  58. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/data_loader/TupleDataLoaderTupleABC.py +0 -0
  59. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/data_loader/TupleDataLoaderTuples.py +0 -0
  60. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/data_loader/__init__.py +0 -0
  61. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/event_bus/TupleChangeEventABC.py +0 -0
  62. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/event_bus/TupleChangeEventBus.py +0 -0
  63. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/event_bus/TupleChangeEventBusObserverABC.py +0 -0
  64. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/event_bus/__init__.py +0 -0
  65. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/handler/TupleActionProcessor.py +0 -0
  66. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/handler/TupleActionProcessorProxy.py +0 -0
  67. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/handler/TupleActionProcessorTestHandler.py +0 -0
  68. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/handler/TupleDataActionClient.py +0 -0
  69. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/handler/TupleDataObservableCache.py +0 -0
  70. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/handler/TupleDataObservableHandler.py +0 -0
  71. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/handler/TupleDataObservableProxyHandler.py +0 -0
  72. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/handler/TupleDataObservableTestHandler.py +0 -0
  73. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/handler/TupleDataObserverClient.py +0 -0
  74. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/handler/VortexJSTupleLoaderTestHandler.py +0 -0
  75. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/handler/__init__.py +0 -0
  76. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/restful/GzippedDataHttpClient.py +0 -0
  77. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/restful/GzippedDataHttpClientTest.py +0 -0
  78. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/restful/GzippedPayloadHttpClient.py +0 -0
  79. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/restful/RestfulHttpClient.py +0 -0
  80. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/restful/RestfulHttpClientTest.py +0 -0
  81. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/restful/RestfulResource.py +0 -0
  82. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/restful/RestfulResourceTest.py +0 -0
  83. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/restful/__init__.py +0 -0
  84. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/rpc/RPC.py +0 -0
  85. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/rpc/RPCTest.py +0 -0
  86. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/rpc/__init__.py +0 -0
  87. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/sqla_orm/OrmCrudHandler.py +0 -0
  88. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/sqla_orm/TupleProviderForDb.py +0 -0
  89. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/sqla_orm/VortexTupleJson.py +0 -0
  90. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/sqla_orm/__init__.py +0 -0
  91. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/storage/TupleStorageSqlite.py +0 -0
  92. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortex/storage/__init__.py +0 -0
  93. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortexpy.egg-info/dependency_links.txt +0 -0
  94. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortexpy.egg-info/requires.txt +0 -0
  95. {vortexpy-4.0.22 → vortexpy-4.0.23}/vortexpy.egg-info/top_level.txt +0 -0
@@ -0,0 +1,43 @@
1
+ Metadata-Version: 2.2
2
+ Name: vortexpy
3
+ Version: 4.0.23
4
+ Summary: Synertys observable, routable, data serialisation and transport code.
5
+ Author-email: Synerty <contact@synerty.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2016
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Homepage, https://github.com/Synerty/vortexpy
29
+ Project-URL: Download, https://github.com/Synerty/vortexpy/tarball/3.4.6
30
+ Keywords: vortex,observable,http,compressed,synerty
31
+ Classifier: Programming Language :: Python :: 3.5
32
+ License-File: LICENSE
33
+ Requires-Dist: SQLAlchemy>=2.0
34
+ Requires-Dist: GeoAlchemy2
35
+ Requires-Dist: txwebsocket>=1.1.0
36
+ Requires-Dist: autobahn[twisted]
37
+ Requires-Dist: vcversioner
38
+ Requires-Dist: six
39
+ Requires-Dist: pytz
40
+ Requires-Dist: reactivex>=4.0.4
41
+ Requires-Dist: ddt>=1.6.0
42
+ Requires-Dist: psutil
43
+ Requires-Dist: txhttputil>=1.2.0
@@ -2,9 +2,13 @@
2
2
  requires = ["setuptools>=61.2"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
+ [metadata]
6
+ license-file = "LICENSE"
7
+
5
8
  [project]
6
9
  name = "vortexpy"
7
- version = "4.0.22"
10
+ version = "4.0.23"
11
+ license = {file = "LICENSE"}
8
12
  authors = [{name = "Synerty", email = "contact@synerty.com"}]
9
13
  description = "Synertys observable, routable, data serialisation and transport code."
10
14
  keywords = [
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -68,17 +68,38 @@ def ensureDeferredWrap(funcToWrap):
68
68
 
69
69
 
70
70
  def vortexLogFailure(failure, loggerArg, consumeError=False, successValue=True):
71
+ """
72
+ Log a Twisted Failure instance using the provided logger.
73
+
74
+ Args:
75
+ failure: Twisted Failure instance to log
76
+ loggerArg: Logger instance to use for logging
77
+ consumeError: If True, returns successValue instead of the failure
78
+ successValue: Value to return if consumeError is True
79
+
80
+ Returns:
81
+ The original failure or successValue depending on consumeError
82
+ """
71
83
  try:
72
84
  if not hasattr(failure, "_vortexFailureLogged"):
73
- if isinstance(failure.value, Exception):
74
- loggerArg.exception(failure.value)
75
- elif failure.getTraceback():
76
- loggerArg.error(failure.getTraceback())
85
+ exc_info = (
86
+ failure.type,
87
+ failure.value,
88
+ failure.getTracebackObject(),
89
+ )
77
90
 
91
+ # Log with full exception info for better tracebacks
92
+ loggerArg.exception(str(failure.value), exc_info=exc_info)
93
+
94
+ # Mark as logged to prevent duplicate logging
78
95
  failure._vortexFailureLogged = True
96
+
79
97
  return successValue if consumeError else failure
98
+
80
99
  except Exception as e:
81
- logger.exception(e)
100
+ # If something goes wrong in our logging logic, log that error
101
+ loggerArg.exception("Error while logging failure: %s", str(e))
102
+ return failure
82
103
 
83
104
 
84
105
  def vortexLogAndConsumeFailure(failure, loggerArg, successValue=True):
@@ -14,7 +14,7 @@ import re
14
14
  from abc import abstractmethod, ABC
15
15
  from copy import deepcopy
16
16
  from datetime import datetime
17
- from typing import Dict, Optional, Annotated
17
+ from typing import Dict, Optional, Annotated, Any
18
18
  from typing import List
19
19
  from typing import Type
20
20
  from typing import get_args
@@ -850,10 +850,20 @@ class Tuple(Jsonable, _TupleToPlainJsonMixin, _TupleToSqlaJsonMixin):
850
850
  return False
851
851
  return cls.__tupleType__ == other.__tupleType__
852
852
 
853
- def tupleClone(self):
853
+ def tupleClone(self, deep=False):
854
854
  clone = self.__class__()
855
+
856
+ def cloneVal(anyVal: Any):
857
+ if isinstance(anyVal, list):
858
+ return [cloneVal(v) for v in anyVal]
859
+ if isinstance(anyVal, Tuple):
860
+ return anyVal.tupleClone()
861
+ return anyVal
862
+
855
863
  for name in self.__fieldNames__:
856
864
  val = getattr(self, name)
865
+ if deep:
866
+ val = cloneVal(val)
857
867
  if val is not None:
858
868
  setattr(clone, name, val)
859
869
 
@@ -7,4 +7,4 @@
7
7
  * Support : support@synerty.com
8
8
  """
9
9
 
10
- __version__ = '4.0.22'
10
+ __version__ = '4.0.23'
@@ -0,0 +1,43 @@
1
+ Metadata-Version: 2.2
2
+ Name: vortexpy
3
+ Version: 4.0.23
4
+ Summary: Synertys observable, routable, data serialisation and transport code.
5
+ Author-email: Synerty <contact@synerty.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2016
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Homepage, https://github.com/Synerty/vortexpy
29
+ Project-URL: Download, https://github.com/Synerty/vortexpy/tarball/3.4.6
30
+ Keywords: vortex,observable,http,compressed,synerty
31
+ Classifier: Programming Language :: Python :: 3.5
32
+ License-File: LICENSE
33
+ Requires-Dist: SQLAlchemy>=2.0
34
+ Requires-Dist: GeoAlchemy2
35
+ Requires-Dist: txwebsocket>=1.1.0
36
+ Requires-Dist: autobahn[twisted]
37
+ Requires-Dist: vcversioner
38
+ Requires-Dist: six
39
+ Requires-Dist: pytz
40
+ Requires-Dist: reactivex>=4.0.4
41
+ Requires-Dist: ddt>=1.6.0
42
+ Requires-Dist: psutil
43
+ Requires-Dist: txhttputil>=1.2.0
@@ -1,7 +1,6 @@
1
1
  LICENSE
2
2
  README.md
3
3
  pyproject.toml
4
- setup.cfg
5
4
  vortex/DataWrapTuple.py
6
5
  vortex/DeferUtil.py
7
6
  vortex/Jsonable.py
vortexpy-4.0.22/PKG-INFO DELETED
@@ -1,21 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: vortexpy
3
- Version: 4.0.22
4
- Summary: Synertys observable, routable, data serialisation and transport code.
5
- Author-email: Synerty <contact@synerty.com>
6
- Project-URL: Homepage, https://github.com/Synerty/vortexpy
7
- Project-URL: Download, https://github.com/Synerty/vortexpy/tarball/3.4.6
8
- Keywords: vortex,observable,http,compressed,synerty
9
- Classifier: Programming Language :: Python :: 3.5
10
- License-File: LICENSE
11
- Requires-Dist: SQLAlchemy>=2.0
12
- Requires-Dist: GeoAlchemy2
13
- Requires-Dist: txwebsocket>=1.1.0
14
- Requires-Dist: autobahn[twisted]
15
- Requires-Dist: vcversioner
16
- Requires-Dist: six
17
- Requires-Dist: pytz
18
- Requires-Dist: reactivex>=4.0.4
19
- Requires-Dist: ddt>=1.6.0
20
- Requires-Dist: psutil
21
- Requires-Dist: txhttputil>=1.2.0
vortexpy-4.0.22/setup.cfg DELETED
@@ -1,7 +0,0 @@
1
- [metadata]
2
- description-file = README.md
3
-
4
- [egg_info]
5
- tag_build =
6
- tag_date = 0
7
-
@@ -1,21 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: vortexpy
3
- Version: 4.0.22
4
- Summary: Synertys observable, routable, data serialisation and transport code.
5
- Author-email: Synerty <contact@synerty.com>
6
- Project-URL: Homepage, https://github.com/Synerty/vortexpy
7
- Project-URL: Download, https://github.com/Synerty/vortexpy/tarball/3.4.6
8
- Keywords: vortex,observable,http,compressed,synerty
9
- Classifier: Programming Language :: Python :: 3.5
10
- License-File: LICENSE
11
- Requires-Dist: SQLAlchemy>=2.0
12
- Requires-Dist: GeoAlchemy2
13
- Requires-Dist: txwebsocket>=1.1.0
14
- Requires-Dist: autobahn[twisted]
15
- Requires-Dist: vcversioner
16
- Requires-Dist: six
17
- Requires-Dist: pytz
18
- Requires-Dist: reactivex>=4.0.4
19
- Requires-Dist: ddt>=1.6.0
20
- Requires-Dist: psutil
21
- Requires-Dist: txhttputil>=1.2.0
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