logs-py 2.9.3__py3-none-any.whl → 2.9.5__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.
Potentially problematic release.
This version of logs-py might be problematic. Click here for more details.
- LOGS/Entity/EntityConnector.py +6 -4
- LOGS/LOGS.py +19 -26
- {logs_py-2.9.3.dist-info → logs_py-2.9.5.dist-info}/METADATA +1 -1
- {logs_py-2.9.3.dist-info → logs_py-2.9.5.dist-info}/RECORD +6 -6
- {logs_py-2.9.3.dist-info → logs_py-2.9.5.dist-info}/WHEEL +1 -1
- {logs_py-2.9.3.dist-info → logs_py-2.9.5.dist-info}/top_level.txt +0 -0
LOGS/Entity/EntityConnector.py
CHANGED
|
@@ -50,11 +50,13 @@ class EntityConnector(Generic[_T]):
|
|
|
50
50
|
return (
|
|
51
51
|
self._firstUrl
|
|
52
52
|
if self._firstUrl
|
|
53
|
-
else
|
|
54
|
-
|
|
53
|
+
else (
|
|
54
|
+
self._connection.getEndpointUrl(
|
|
55
|
+
endpoint=self._endpoint if self._endpoint else ""
|
|
56
|
+
)
|
|
57
|
+
if self._connection
|
|
58
|
+
else ""
|
|
55
59
|
)
|
|
56
|
-
if self._connection
|
|
57
|
-
else ""
|
|
58
60
|
)
|
|
59
61
|
|
|
60
62
|
@property
|
LOGS/LOGS.py
CHANGED
|
@@ -113,6 +113,7 @@ from LOGS.Entity.ConnectedEntity import ConnectedEntity
|
|
|
113
113
|
from LOGS.Interfaces.ISoftDeletable import ISoftDeletable
|
|
114
114
|
from LOGS.Interfaces.IUniqueEntity import IUniqueEntity
|
|
115
115
|
from LOGS.LOGSConnection import LOGSConnection
|
|
116
|
+
from LOGS.ServerMetaData import ServerMetaData
|
|
116
117
|
|
|
117
118
|
_T = TypeVar(
|
|
118
119
|
"_T",
|
|
@@ -590,12 +591,10 @@ class LOGS:
|
|
|
590
591
|
self._connection.printServerStatus()
|
|
591
592
|
|
|
592
593
|
@overload
|
|
593
|
-
def restore(self, entities: Constants.ENTITIES):
|
|
594
|
-
...
|
|
594
|
+
def restore(self, entities: Constants.ENTITIES): ...
|
|
595
595
|
|
|
596
596
|
@overload
|
|
597
|
-
def restore(self, entities: List[Constants.ENTITIES]):
|
|
598
|
-
...
|
|
597
|
+
def restore(self, entities: List[Constants.ENTITIES]): ...
|
|
599
598
|
|
|
600
599
|
# Implementation of overload
|
|
601
600
|
def restore(self, entities: Any):
|
|
@@ -617,12 +616,10 @@ class LOGS:
|
|
|
617
616
|
return decorator(entities)
|
|
618
617
|
|
|
619
618
|
@overload
|
|
620
|
-
def update(self, entities: Constants.ENTITIES):
|
|
621
|
-
...
|
|
619
|
+
def update(self, entities: Constants.ENTITIES): ...
|
|
622
620
|
|
|
623
621
|
@overload
|
|
624
|
-
def update(self, entities: List[Constants.ENTITIES]):
|
|
625
|
-
...
|
|
622
|
+
def update(self, entities: List[Constants.ENTITIES]): ...
|
|
626
623
|
|
|
627
624
|
# Implementation of overload
|
|
628
625
|
def update(self, entities: Any):
|
|
@@ -644,12 +641,10 @@ class LOGS:
|
|
|
644
641
|
return decorator(entities)
|
|
645
642
|
|
|
646
643
|
@overload
|
|
647
|
-
def create(self, entities: _T):
|
|
648
|
-
...
|
|
644
|
+
def create(self, entities: _T): ...
|
|
649
645
|
|
|
650
646
|
@overload
|
|
651
|
-
def create(self, entities: List[_T]):
|
|
652
|
-
...
|
|
647
|
+
def create(self, entities: List[_T]): ...
|
|
653
648
|
|
|
654
649
|
# Implementation of overload
|
|
655
650
|
def create(self, entities: Any):
|
|
@@ -671,12 +666,10 @@ class LOGS:
|
|
|
671
666
|
decorator(entities)
|
|
672
667
|
|
|
673
668
|
@overload
|
|
674
|
-
def delete(self, entities: Constants.ENTITIES, permanently=False):
|
|
675
|
-
...
|
|
669
|
+
def delete(self, entities: Constants.ENTITIES, permanently=False): ...
|
|
676
670
|
|
|
677
671
|
@overload
|
|
678
|
-
def delete(self, entities: List[Constants.ENTITIES], permanently=False):
|
|
679
|
-
...
|
|
672
|
+
def delete(self, entities: List[Constants.ENTITIES], permanently=False): ...
|
|
680
673
|
|
|
681
674
|
# Implementation of overload
|
|
682
675
|
def delete(self, entities: Any = None, permanently=False):
|
|
@@ -718,14 +711,12 @@ class LOGS:
|
|
|
718
711
|
@overload
|
|
719
712
|
def deleteById(
|
|
720
713
|
self, entityType: Type[Constants.ENTITIES], ids: int, permanently: bool = False
|
|
721
|
-
):
|
|
722
|
-
...
|
|
714
|
+
): ...
|
|
723
715
|
|
|
724
716
|
@overload
|
|
725
717
|
def deleteById(
|
|
726
718
|
self, entityType: Type[Constants.ENTITIES], ids: str, permanently: bool = False
|
|
727
|
-
):
|
|
728
|
-
...
|
|
719
|
+
): ...
|
|
729
720
|
|
|
730
721
|
@overload
|
|
731
722
|
def deleteById(
|
|
@@ -733,8 +724,7 @@ class LOGS:
|
|
|
733
724
|
entityType: Type[Constants.ENTITIES],
|
|
734
725
|
ids: List[int],
|
|
735
726
|
permanently: bool = False,
|
|
736
|
-
):
|
|
737
|
-
...
|
|
727
|
+
): ...
|
|
738
728
|
|
|
739
729
|
@overload
|
|
740
730
|
def deleteById(
|
|
@@ -742,8 +732,7 @@ class LOGS:
|
|
|
742
732
|
entityType: Type[Constants.ENTITIES],
|
|
743
733
|
ids: List[str],
|
|
744
734
|
permanently: bool = False,
|
|
745
|
-
):
|
|
746
|
-
...
|
|
735
|
+
): ...
|
|
747
736
|
|
|
748
737
|
# Implementation of overload
|
|
749
738
|
def deleteById(self, entityType=None, ids: Any = None, permanently: bool = False):
|
|
@@ -1137,8 +1126,12 @@ class LOGS:
|
|
|
1137
1126
|
return self._currentUser
|
|
1138
1127
|
|
|
1139
1128
|
@property
|
|
1140
|
-
def version(self) -> str:
|
|
1141
|
-
return self._connection.version
|
|
1129
|
+
def version(self) -> Optional[str]:
|
|
1130
|
+
return self._connection.metadata.version
|
|
1131
|
+
|
|
1132
|
+
@property
|
|
1133
|
+
def metadata(self) -> ServerMetaData:
|
|
1134
|
+
return self._connection.metadata
|
|
1142
1135
|
|
|
1143
1136
|
|
|
1144
1137
|
if __name__ == "__main__":
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
LOGS/LOGS.py,sha256=
|
|
1
|
+
LOGS/LOGS.py,sha256=qprzwI6wXx2xePkT6EBmWYYiCxwMIPnC9LNa-3NnBIE,41826
|
|
2
2
|
LOGS/LOGSConnection.py,sha256=GOkmFj7CtCinn9SmRkzzdToaZqnmUaiqwuMI0mQGvCo,19845
|
|
3
3
|
LOGS/ServerMetaData.py,sha256=WdXCCiCSFqER6s9c3N3v0O273OvxygxBzmE6_C8FmXs,3361
|
|
4
4
|
LOGS/__init__.py,sha256=faGD87i0eeKbqEq6DTcteF6KoNa2O0BH1RnjxEvuGbQ,253
|
|
@@ -148,7 +148,7 @@ LOGS/Entities/TrackXYData.py,sha256=6AbwG2qa2HN858ROLaLpzkuIlwsb8tN8wznaiKplRdo,
|
|
|
148
148
|
LOGS/Entities/__init__.py,sha256=H2E_6M3VRrGPqPcJ3UuQIjeNyNPYuSIISwfaROei9uA,3237
|
|
149
149
|
LOGS/Entity/ConnectedEntity.py,sha256=RIaOcOJWCrWooc9H8CkN4tbrLD0q4pM4CAeBX3ZRIVg,1617
|
|
150
150
|
LOGS/Entity/Entity.py,sha256=uF7lCp-4HwUJ90ocRX_GCPu9KAZg2VAF5bCMlVfDtDs,6605
|
|
151
|
-
LOGS/Entity/EntityConnector.py,sha256=
|
|
151
|
+
LOGS/Entity/EntityConnector.py,sha256=kjCoieYABujwX1hIaldJVHmg_Js2OdWdbkvNwgBLeNo,2109
|
|
152
152
|
LOGS/Entity/EntityIterator.py,sha256=3gUZx28451sxsHrUT0qYlPRmi03U8rVAcJs0KHXmrEs,7721
|
|
153
153
|
LOGS/Entity/EntityMinimal.py,sha256=GysThwk8YbT8xqbHvJqmYKgPf8ckALO5pG-J_SNT0vw,3237
|
|
154
154
|
LOGS/Entity/EntityMinimalWithIntId.py,sha256=6eVhFFbXKdH3LPj-fAzQLpnzbkWqh1AmV_uRksTi7Ho,1045
|
|
@@ -177,7 +177,7 @@ LOGS/Interfaces/ISoftDeletable.py,sha256=urnmSfcYJrEm1iIo0k3nyBvMMnpomJWAYAON_uv
|
|
|
177
177
|
LOGS/Interfaces/ITypedEntity.py,sha256=hMlzGuca8vW1qT5Dop-b-6_gteAeXjK0sz85eRjOZrY,724
|
|
178
178
|
LOGS/Interfaces/IUniqueEntity.py,sha256=K-Q80qZX1wTjPnjbs-1PF85BbzYre2su_2xMnescYi4,1894
|
|
179
179
|
LOGS/Interfaces/__init__.py,sha256=tGykqoQeT2_HV-oLYVKJJ9Z0a_Li8_y3AOJjG1btKYw,172
|
|
180
|
-
logs_py-2.9.
|
|
181
|
-
logs_py-2.9.
|
|
182
|
-
logs_py-2.9.
|
|
183
|
-
logs_py-2.9.
|
|
180
|
+
logs_py-2.9.5.dist-info/METADATA,sha256=6bkXJDjYrX9PmjMj7EdqAzJASSnuZ0DdBKnEh4glNEs,2053
|
|
181
|
+
logs_py-2.9.5.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
|
|
182
|
+
logs_py-2.9.5.dist-info/top_level.txt,sha256=Ckn2LiAmGaR7k3tdEnKAc04z_uboMD4gLreYghRNdCs,5
|
|
183
|
+
logs_py-2.9.5.dist-info/RECORD,,
|
|
File without changes
|