e6data-python-connector 1.0.0__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.
@@ -0,0 +1 @@
1
+ __all__ = ['ttypes', 'constants', 'QueryEngineService']
@@ -0,0 +1,14 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.17.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+ # options string: py
7
+ #
8
+
9
+ from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
10
+ from thrift.protocol.TProtocol import TProtocolException
11
+ from thrift.TRecursive import fix_spec
12
+
13
+ import sys
14
+ from .ttypes import *
e6xdb/server/ttypes.py ADDED
@@ -0,0 +1,342 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.17.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+ # options string: py
7
+ #
8
+
9
+ from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
10
+ from thrift.protocol.TProtocol import TProtocolException
11
+ from thrift.TRecursive import fix_spec
12
+
13
+ import sys
14
+
15
+ from thrift.transport import TTransport
16
+ all_structs = []
17
+
18
+
19
+ class QueryProcessingException(TException):
20
+ """
21
+ Attributes:
22
+ - reason
23
+
24
+ """
25
+
26
+
27
+ def __init__(self, reason=None,):
28
+ super(QueryProcessingException, self).__setattr__('reason', reason)
29
+
30
+ def __setattr__(self, *args):
31
+ raise TypeError("can't modify immutable instance")
32
+
33
+ def __delattr__(self, *args):
34
+ raise TypeError("can't modify immutable instance")
35
+
36
+ def __hash__(self):
37
+ return hash(self.__class__) ^ hash((self.reason, ))
38
+
39
+ @classmethod
40
+ def read(cls, iprot):
41
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None:
42
+ return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec])
43
+ iprot.readStructBegin()
44
+ reason = None
45
+ while True:
46
+ (fname, ftype, fid) = iprot.readFieldBegin()
47
+ if ftype == TType.STOP:
48
+ break
49
+ if fid == 1:
50
+ if ftype == TType.STRING:
51
+ reason = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
52
+ else:
53
+ iprot.skip(ftype)
54
+ else:
55
+ iprot.skip(ftype)
56
+ iprot.readFieldEnd()
57
+ iprot.readStructEnd()
58
+ return cls(
59
+ reason=reason,
60
+ )
61
+
62
+ def write(self, oprot):
63
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
64
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
65
+ return
66
+ oprot.writeStructBegin('QueryProcessingException')
67
+ if self.reason is not None:
68
+ oprot.writeFieldBegin('reason', TType.STRING, 1)
69
+ oprot.writeString(self.reason.encode('utf-8') if sys.version_info[0] == 2 else self.reason)
70
+ oprot.writeFieldEnd()
71
+ oprot.writeFieldStop()
72
+ oprot.writeStructEnd()
73
+
74
+ def validate(self):
75
+ return
76
+
77
+ def __str__(self):
78
+ return repr(self)
79
+
80
+ def __repr__(self):
81
+ L = ['%s=%r' % (key, value)
82
+ for key, value in self.__dict__.items()]
83
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
84
+
85
+ def __eq__(self, other):
86
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
87
+
88
+ def __ne__(self, other):
89
+ return not (self == other)
90
+
91
+
92
+ class AccessDeniedException(TException):
93
+ """
94
+ Attributes:
95
+ - reason
96
+
97
+ """
98
+
99
+
100
+ def __init__(self, reason=None,):
101
+ super(AccessDeniedException, self).__setattr__('reason', reason)
102
+
103
+ def __setattr__(self, *args):
104
+ raise TypeError("can't modify immutable instance")
105
+
106
+ def __delattr__(self, *args):
107
+ raise TypeError("can't modify immutable instance")
108
+
109
+ def __hash__(self):
110
+ return hash(self.__class__) ^ hash((self.reason, ))
111
+
112
+ @classmethod
113
+ def read(cls, iprot):
114
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None:
115
+ return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec])
116
+ iprot.readStructBegin()
117
+ reason = None
118
+ while True:
119
+ (fname, ftype, fid) = iprot.readFieldBegin()
120
+ if ftype == TType.STOP:
121
+ break
122
+ if fid == 1:
123
+ if ftype == TType.STRING:
124
+ reason = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
125
+ else:
126
+ iprot.skip(ftype)
127
+ else:
128
+ iprot.skip(ftype)
129
+ iprot.readFieldEnd()
130
+ iprot.readStructEnd()
131
+ return cls(
132
+ reason=reason,
133
+ )
134
+
135
+ def write(self, oprot):
136
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
137
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
138
+ return
139
+ oprot.writeStructBegin('AccessDeniedException')
140
+ if self.reason is not None:
141
+ oprot.writeFieldBegin('reason', TType.STRING, 1)
142
+ oprot.writeString(self.reason.encode('utf-8') if sys.version_info[0] == 2 else self.reason)
143
+ oprot.writeFieldEnd()
144
+ oprot.writeFieldStop()
145
+ oprot.writeStructEnd()
146
+
147
+ def validate(self):
148
+ return
149
+
150
+ def __str__(self):
151
+ return repr(self)
152
+
153
+ def __repr__(self):
154
+ L = ['%s=%r' % (key, value)
155
+ for key, value in self.__dict__.items()]
156
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
157
+
158
+ def __eq__(self, other):
159
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
160
+
161
+ def __ne__(self, other):
162
+ return not (self == other)
163
+
164
+
165
+ class TFieldInfo(object):
166
+ """
167
+ Attributes:
168
+ - fieldName
169
+ - fieldType
170
+
171
+ """
172
+
173
+
174
+ def __init__(self, fieldName=None, fieldType=None,):
175
+ self.fieldName = fieldName
176
+ self.fieldType = fieldType
177
+
178
+ def read(self, iprot):
179
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
180
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
181
+ return
182
+ iprot.readStructBegin()
183
+ while True:
184
+ (fname, ftype, fid) = iprot.readFieldBegin()
185
+ if ftype == TType.STOP:
186
+ break
187
+ if fid == 1:
188
+ if ftype == TType.STRING:
189
+ self.fieldName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
190
+ else:
191
+ iprot.skip(ftype)
192
+ elif fid == 2:
193
+ if ftype == TType.STRING:
194
+ self.fieldType = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
195
+ else:
196
+ iprot.skip(ftype)
197
+ else:
198
+ iprot.skip(ftype)
199
+ iprot.readFieldEnd()
200
+ iprot.readStructEnd()
201
+
202
+ def write(self, oprot):
203
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
204
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
205
+ return
206
+ oprot.writeStructBegin('TFieldInfo')
207
+ if self.fieldName is not None:
208
+ oprot.writeFieldBegin('fieldName', TType.STRING, 1)
209
+ oprot.writeString(self.fieldName.encode('utf-8') if sys.version_info[0] == 2 else self.fieldName)
210
+ oprot.writeFieldEnd()
211
+ if self.fieldType is not None:
212
+ oprot.writeFieldBegin('fieldType', TType.STRING, 2)
213
+ oprot.writeString(self.fieldType.encode('utf-8') if sys.version_info[0] == 2 else self.fieldType)
214
+ oprot.writeFieldEnd()
215
+ oprot.writeFieldStop()
216
+ oprot.writeStructEnd()
217
+
218
+ def validate(self):
219
+ return
220
+
221
+ def __repr__(self):
222
+ L = ['%s=%r' % (key, value)
223
+ for key, value in self.__dict__.items()]
224
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
225
+
226
+ def __eq__(self, other):
227
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
228
+
229
+ def __ne__(self, other):
230
+ return not (self == other)
231
+
232
+
233
+ class UserAccessInfo(object):
234
+ """
235
+ Attributes:
236
+ - uuid
237
+ - userName
238
+ - tokens
239
+
240
+ """
241
+
242
+
243
+ def __init__(self, uuid=None, userName=None, tokens=None,):
244
+ self.uuid = uuid
245
+ self.userName = userName
246
+ self.tokens = tokens
247
+
248
+ def read(self, iprot):
249
+ if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
250
+ iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
251
+ return
252
+ iprot.readStructBegin()
253
+ while True:
254
+ (fname, ftype, fid) = iprot.readFieldBegin()
255
+ if ftype == TType.STOP:
256
+ break
257
+ if fid == 1:
258
+ if ftype == TType.STRING:
259
+ self.uuid = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
260
+ else:
261
+ iprot.skip(ftype)
262
+ elif fid == 2:
263
+ if ftype == TType.STRING:
264
+ self.userName = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
265
+ else:
266
+ iprot.skip(ftype)
267
+ elif fid == 3:
268
+ if ftype == TType.LIST:
269
+ self.tokens = []
270
+ (_etype3, _size0) = iprot.readListBegin()
271
+ for _i4 in range(_size0):
272
+ _elem5 = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
273
+ self.tokens.append(_elem5)
274
+ iprot.readListEnd()
275
+ else:
276
+ iprot.skip(ftype)
277
+ else:
278
+ iprot.skip(ftype)
279
+ iprot.readFieldEnd()
280
+ iprot.readStructEnd()
281
+
282
+ def write(self, oprot):
283
+ if oprot._fast_encode is not None and self.thrift_spec is not None:
284
+ oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
285
+ return
286
+ oprot.writeStructBegin('UserAccessInfo')
287
+ if self.uuid is not None:
288
+ oprot.writeFieldBegin('uuid', TType.STRING, 1)
289
+ oprot.writeString(self.uuid.encode('utf-8') if sys.version_info[0] == 2 else self.uuid)
290
+ oprot.writeFieldEnd()
291
+ if self.userName is not None:
292
+ oprot.writeFieldBegin('userName', TType.STRING, 2)
293
+ oprot.writeString(self.userName.encode('utf-8') if sys.version_info[0] == 2 else self.userName)
294
+ oprot.writeFieldEnd()
295
+ if self.tokens is not None:
296
+ oprot.writeFieldBegin('tokens', TType.LIST, 3)
297
+ oprot.writeListBegin(TType.STRING, len(self.tokens))
298
+ for iter6 in self.tokens:
299
+ oprot.writeString(iter6.encode('utf-8') if sys.version_info[0] == 2 else iter6)
300
+ oprot.writeListEnd()
301
+ oprot.writeFieldEnd()
302
+ oprot.writeFieldStop()
303
+ oprot.writeStructEnd()
304
+
305
+ def validate(self):
306
+ return
307
+
308
+ def __repr__(self):
309
+ L = ['%s=%r' % (key, value)
310
+ for key, value in self.__dict__.items()]
311
+ return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
312
+
313
+ def __eq__(self, other):
314
+ return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
315
+
316
+ def __ne__(self, other):
317
+ return not (self == other)
318
+ all_structs.append(QueryProcessingException)
319
+ QueryProcessingException.thrift_spec = (
320
+ None, # 0
321
+ (1, TType.STRING, 'reason', 'UTF8', None, ), # 1
322
+ )
323
+ all_structs.append(AccessDeniedException)
324
+ AccessDeniedException.thrift_spec = (
325
+ None, # 0
326
+ (1, TType.STRING, 'reason', 'UTF8', None, ), # 1
327
+ )
328
+ all_structs.append(TFieldInfo)
329
+ TFieldInfo.thrift_spec = (
330
+ None, # 0
331
+ (1, TType.STRING, 'fieldName', 'UTF8', None, ), # 1
332
+ (2, TType.STRING, 'fieldType', 'UTF8', None, ), # 2
333
+ )
334
+ all_structs.append(UserAccessInfo)
335
+ UserAccessInfo.thrift_spec = (
336
+ None, # 0
337
+ (1, TType.STRING, 'uuid', 'UTF8', None, ), # 1
338
+ (2, TType.STRING, 'userName', 'UTF8', None, ), # 2
339
+ (3, TType.LIST, 'tokens', (TType.STRING, 'UTF8', False), None, ), # 3
340
+ )
341
+ fix_spec(all_structs)
342
+ del all_structs