vortexpy 4.0.4__tar.gz → 4.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.
- {vortexpy-4.0.4 → vortexpy-4.0.6}/PKG-INFO +1 -1
- {vortexpy-4.0.4 → vortexpy-4.0.6}/pyproject.toml +1 -1
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/__init__.py +1 -1
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/data_loader/TupleDataLiveLockManager.py +19 -1
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/data_loader/TupleDataLoader.py +9 -1
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortexpy.egg-info/PKG-INFO +1 -1
- {vortexpy-4.0.4 → vortexpy-4.0.6}/LICENSE +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/README.md +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/setup.cfg +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/DataWrapTuple.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/DeferUtil.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/Jsonable.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/Payload.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/PayloadEndpoint.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/PayloadEndpointTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/PayloadEnvelope.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/PayloadFilterKeys.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/PayloadIO.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/PayloadPriority.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/PayloadResponse.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/PayloadResponseTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/PayloadTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/PerformTestActionTuple.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/SerialiseUtil.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/TestTuple.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/Tuple.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/TupleAction.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/TupleActionVortex.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/TupleDataForTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/TuplePerfTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/TuplePolymorphicTupleTypeFieldArgTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/TupleRestfulTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/TupleSelector.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/TupleTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexABC.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexClientHttp.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexClientHttpTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexClientTcp.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexClientWebsocketFactory.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexConnectionABC.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexFactory.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexPayloadProtocol.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexServer.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexServerConnection.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexServerHttpResource.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexServerTcp.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexServerWebsocket.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexTcpMemoryLeakPayloadTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexTcpMemoryLeakRawTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexUtil.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/VortexWritePushProducer.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/data_loader/TupleDataLoaderDelegate.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/data_loader/TupleDataLoaderTupleABC.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/data_loader/TupleDataLoaderTuples.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/data_loader/__init__.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/handler/TupleActionProcessor.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/handler/TupleActionProcessorProxy.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/handler/TupleActionProcessorTestHandler.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/handler/TupleChangeEventBus.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/handler/TupleChangeEventBusObserverABC.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/handler/TupleDataActionClient.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/handler/TupleDataObservableCache.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/handler/TupleDataObservableHandler.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/handler/TupleDataObservableProxyHandler.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/handler/TupleDataObservableTestHandler.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/handler/TupleDataObserverClient.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/handler/VortexJSTupleLoaderTestHandler.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/handler/__init__.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/restful/GzippedDataHttpClient.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/restful/GzippedDataHttpClientTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/restful/GzippedPayloadHttpClient.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/restful/RestfulHttpClient.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/restful/RestfulHttpClientTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/restful/RestfulResource.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/restful/RestfulResourceTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/restful/__init__.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/rpc/RPC.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/rpc/RPCTest.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/rpc/__init__.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/sqla_orm/OrmCrudHandler.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/sqla_orm/TupleProviderForDb.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/sqla_orm/VortexTupleJson.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/sqla_orm/__init__.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/storage/TupleStorageSqlite.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortex/storage/__init__.py +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortexpy.egg-info/SOURCES.txt +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortexpy.egg-info/dependency_links.txt +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortexpy.egg-info/requires.txt +0 -0
- {vortexpy-4.0.4 → vortexpy-4.0.6}/vortexpy.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "vortexpy"
|
|
7
|
-
version = "4.0.
|
|
7
|
+
version = "4.0.6"
|
|
8
8
|
authors = [{name = "Synerty", email = "contact@synerty.com"}]
|
|
9
9
|
description = "Synertys observable, routable, data serialisation and transport code."
|
|
10
10
|
keywords = [
|
|
@@ -196,7 +196,7 @@ class TupleDataLiveLockManager:
|
|
|
196
196
|
)
|
|
197
197
|
|
|
198
198
|
@deferToThreadWrapWithLogger(logger)
|
|
199
|
-
def
|
|
199
|
+
def makeLockVortexMsg(
|
|
200
200
|
self, filt: dict, lockTupleSelector: TupleSelector
|
|
201
201
|
) -> bytes:
|
|
202
202
|
dataTupleSelector = _DataLockStatusTupleSelector.getDataTupleSelector(
|
|
@@ -227,6 +227,24 @@ class TupleDataLiveLockManager:
|
|
|
227
227
|
).toEncodedPayload()
|
|
228
228
|
return payloadEnvelope.toVortexMsg()
|
|
229
229
|
|
|
230
|
+
@deferToThreadWrapWithLogger(logger)
|
|
231
|
+
def makeDataVortexMsg(
|
|
232
|
+
self, filt: dict, dataTupleSelector: TupleSelector
|
|
233
|
+
) -> bytes:
|
|
234
|
+
dataTupleType = dataTupleSelector.name
|
|
235
|
+
lockStateByDataSelector = self._lockStateByDataSelectorByDataTupleType[
|
|
236
|
+
dataTupleType
|
|
237
|
+
]
|
|
238
|
+
lockState = lockStateByDataSelector.get(dataTupleSelector.toJsonStr())
|
|
239
|
+
|
|
240
|
+
results = lockState.liveUpdateDataTuple
|
|
241
|
+
|
|
242
|
+
payloadEnvelope = PayloadEnvelope(filt=filt)
|
|
243
|
+
payloadEnvelope.encodedPayload = Payload(
|
|
244
|
+
filt=filt, tuples=results
|
|
245
|
+
).toEncodedPayload()
|
|
246
|
+
return payloadEnvelope.toVortexMsg()
|
|
247
|
+
|
|
230
248
|
@deferToThreadWrapWithLogger(logger)
|
|
231
249
|
def processLockTupleAction(
|
|
232
250
|
self,
|
|
@@ -143,7 +143,15 @@ class TupleDataLoader(TupleActionProcessorDelegateABC, TuplesProviderABC):
|
|
|
143
143
|
self, filt: dict, tupleSelector: TupleSelector
|
|
144
144
|
) -> Union[Deferred, bytes]:
|
|
145
145
|
if tupleSelector.name == _DataLockStatusTuple.tupleType():
|
|
146
|
-
return (
|
|
146
|
+
return (
|
|
147
|
+
yield self._lockManager.makeLockVortexMsg(filt, tupleSelector)
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
# If we have the lock, then return the live data.
|
|
151
|
+
if self._lockManager.isLocked(tupleSelector):
|
|
152
|
+
return (
|
|
153
|
+
yield self._lockManager.makeDataVortexMsg(filt, tupleSelector)
|
|
154
|
+
)
|
|
147
155
|
|
|
148
156
|
# noinspection PyArgumentList
|
|
149
157
|
return (yield self._makeVortexMsgFromDelegate(filt, tupleSelector))
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|