vortexpy 4.0.23__py3-none-any.whl
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.
- vortex/DataWrapTuple.py +27 -0
- vortex/DeferUtil.py +224 -0
- vortex/Jsonable.py +304 -0
- vortex/Payload.py +115 -0
- vortex/PayloadEndpoint.py +216 -0
- vortex/PayloadEndpointTest.py +164 -0
- vortex/PayloadEnvelope.py +166 -0
- vortex/PayloadFilterKeys.py +15 -0
- vortex/PayloadIO.py +152 -0
- vortex/PayloadPriority.py +11 -0
- vortex/PayloadResponse.py +173 -0
- vortex/PayloadResponseTest.py +39 -0
- vortex/PayloadTest.py +136 -0
- vortex/PerformTestActionTuple.py +30 -0
- vortex/SerialiseUtil.py +273 -0
- vortex/TestTuple.py +61 -0
- vortex/Tuple.py +968 -0
- vortex/TupleAction.py +72 -0
- vortex/TupleActionVortex.py +5 -0
- vortex/TupleDataForTest.py +25 -0
- vortex/TuplePerfTest.py +71 -0
- vortex/TuplePolymorphicTupleTypeFieldArgTest.py +74 -0
- vortex/TupleRestfulTest.py +140 -0
- vortex/TupleSelector.py +105 -0
- vortex/TupleTest.py +127 -0
- vortex/VortexABC.py +55 -0
- vortex/VortexClientHttp.py +308 -0
- vortex/VortexClientHttpTest.py +71 -0
- vortex/VortexClientTcp.py +355 -0
- vortex/VortexClientWebsocketFactory.py +383 -0
- vortex/VortexConnectionABC.py +88 -0
- vortex/VortexFactory.py +932 -0
- vortex/VortexPayloadProtocol.py +180 -0
- vortex/VortexServer.py +367 -0
- vortex/VortexServerConnection.py +127 -0
- vortex/VortexServerHttpResource.py +193 -0
- vortex/VortexServerTcp.py +104 -0
- vortex/VortexServerWebsocket.py +287 -0
- vortex/VortexTcpMemoryLeakPayloadTest.py +611 -0
- vortex/VortexTcpMemoryLeakRawTest.py +87 -0
- vortex/VortexTest.py +22 -0
- vortex/VortexUtil.py +314 -0
- vortex/VortexWritePushProducer.py +321 -0
- vortex/__init__.py +10 -0
- vortex/data_loader/TupleDataLiveLockManager.py +383 -0
- vortex/data_loader/TupleDataLoader.py +326 -0
- vortex/data_loader/TupleDataLoaderDelegate.py +90 -0
- vortex/data_loader/TupleDataLoaderTupleABC.py +10 -0
- vortex/data_loader/TupleDataLoaderTuples.py +53 -0
- vortex/data_loader/__init__.py +0 -0
- vortex/event_bus/TupleChangeEventABC.py +15 -0
- vortex/event_bus/TupleChangeEventBus.py +192 -0
- vortex/event_bus/TupleChangeEventBusObserverABC.py +11 -0
- vortex/event_bus/__init__.py +0 -0
- vortex/handler/TupleActionProcessor.py +270 -0
- vortex/handler/TupleActionProcessorProxy.py +218 -0
- vortex/handler/TupleActionProcessorTestHandler.py +27 -0
- vortex/handler/TupleDataActionClient.py +67 -0
- vortex/handler/TupleDataObservableCache.py +201 -0
- vortex/handler/TupleDataObservableHandler.py +371 -0
- vortex/handler/TupleDataObservableProxyHandler.py +340 -0
- vortex/handler/TupleDataObservableTestHandler.py +60 -0
- vortex/handler/TupleDataObserverClient.py +158 -0
- vortex/handler/VortexJSTupleLoaderTestHandler.py +42 -0
- vortex/handler/__init__.py +0 -0
- vortex/restful/GzippedDataHttpClient.py +170 -0
- vortex/restful/GzippedDataHttpClientTest.py +103 -0
- vortex/restful/GzippedPayloadHttpClient.py +181 -0
- vortex/restful/RestfulHttpClient.py +107 -0
- vortex/restful/RestfulHttpClientTest.py +60 -0
- vortex/restful/RestfulResource.py +153 -0
- vortex/restful/RestfulResourceTest.py +100 -0
- vortex/restful/__init__.py +0 -0
- vortex/rpc/RPC.py +446 -0
- vortex/rpc/RPCTest.py +12 -0
- vortex/rpc/__init__.py +0 -0
- vortex/sqla_orm/OrmCrudHandler.py +431 -0
- vortex/sqla_orm/TupleProviderForDb.py +42 -0
- vortex/sqla_orm/VortexTupleJson.py +24 -0
- vortex/sqla_orm/__init__.py +0 -0
- vortex/storage/TupleStorageSqlite.py +359 -0
- vortex/storage/__init__.py +0 -0
- vortexpy-4.0.23.dist-info/LICENSE +21 -0
- vortexpy-4.0.23.dist-info/METADATA +43 -0
- vortexpy-4.0.23.dist-info/RECORD +87 -0
- vortexpy-4.0.23.dist-info/WHEEL +5 -0
- vortexpy-4.0.23.dist-info/top_level.txt +1 -0
vortex/TestTuple.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""
|
|
2
|
+
*
|
|
3
|
+
* Copyright Synerty Pty Ltd 2013
|
|
4
|
+
*
|
|
5
|
+
* This software is proprietary, you are not free to copy
|
|
6
|
+
* or redistribute this code in any format.
|
|
7
|
+
*
|
|
8
|
+
* All rights to this software are reserved by
|
|
9
|
+
* Synerty Pty Ltd
|
|
10
|
+
*
|
|
11
|
+
* Website : http://www.synerty.com
|
|
12
|
+
* Support : support@synerty.com
|
|
13
|
+
*
|
|
14
|
+
"""
|
|
15
|
+
import logging
|
|
16
|
+
from datetime import datetime
|
|
17
|
+
from typing import Dict
|
|
18
|
+
from typing import List
|
|
19
|
+
from typing import Union
|
|
20
|
+
|
|
21
|
+
from vortex.Tuple import Tuple
|
|
22
|
+
from vortex.Tuple import TupleField
|
|
23
|
+
from vortex.Tuple import addTupleType
|
|
24
|
+
|
|
25
|
+
logger = logging.getLogger(__name__)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@addTupleType
|
|
29
|
+
class TestTuple(Tuple):
|
|
30
|
+
"""
|
|
31
|
+
classdocs
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
__tupleType__ = "synerty.vortex.TestTuple"
|
|
35
|
+
aInt: bool = TupleField()
|
|
36
|
+
aFloat: float = TupleField()
|
|
37
|
+
aString: str = TupleField()
|
|
38
|
+
aStrWithUnicode: str = TupleField()
|
|
39
|
+
aDate: datetime = TupleField()
|
|
40
|
+
aBoolTrue: bool = TupleField()
|
|
41
|
+
aBoolFalse: bool = TupleField()
|
|
42
|
+
aSet: List[Union[str, int, bool]] = TupleField()
|
|
43
|
+
aList: List[Union[str, int, bool, float]] = TupleField()
|
|
44
|
+
aDict: Dict[Union[str, int], Union[str, float]] = TupleField()
|
|
45
|
+
aSubTuple: "TestSubTuple" = TupleField()
|
|
46
|
+
aListOfSubTuples: List["TestSubTuple"] = TupleField()
|
|
47
|
+
|
|
48
|
+
def __init__(self, *args, **kwargs):
|
|
49
|
+
# logger.debug("TestTuple constructed")
|
|
50
|
+
Tuple.__init__(self, *args, **kwargs)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@addTupleType
|
|
54
|
+
class TestSubTuple(Tuple):
|
|
55
|
+
"""Test Sub Tuple
|
|
56
|
+
This tuple will test if we can have tuples in tuples and still serialise and
|
|
57
|
+
deserialise them.
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
__tupleType__ = "rapui.synerty.TestSubTuple"
|
|
61
|
+
subInt: int = TupleField()
|