zlmdb 25.10.1__cp312-cp312-macosx_10_13_universal2.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 zlmdb might be problematic. Click here for more details.

Files changed (87) hide show
  1. flatbuffers/__init__.py +19 -0
  2. flatbuffers/_version.py +17 -0
  3. flatbuffers/builder.py +776 -0
  4. flatbuffers/compat.py +86 -0
  5. flatbuffers/encode.py +42 -0
  6. flatbuffers/flexbuffers.py +1527 -0
  7. flatbuffers/number_types.py +181 -0
  8. flatbuffers/packer.py +42 -0
  9. flatbuffers/reflection/AdvancedFeatures.py +10 -0
  10. flatbuffers/reflection/BaseType.py +24 -0
  11. flatbuffers/reflection/Enum.py +169 -0
  12. flatbuffers/reflection/EnumVal.py +96 -0
  13. flatbuffers/reflection/Field.py +208 -0
  14. flatbuffers/reflection/KeyValue.py +56 -0
  15. flatbuffers/reflection/Object.py +175 -0
  16. flatbuffers/reflection/RPCCall.py +131 -0
  17. flatbuffers/reflection/Schema.py +206 -0
  18. flatbuffers/reflection/SchemaFile.py +77 -0
  19. flatbuffers/reflection/Service.py +145 -0
  20. flatbuffers/reflection/Type.py +98 -0
  21. flatbuffers/reflection/__init__.py +0 -0
  22. flatbuffers/table.py +129 -0
  23. flatbuffers/util.py +43 -0
  24. zlmdb/__init__.py +312 -0
  25. zlmdb/_database.py +990 -0
  26. zlmdb/_errors.py +31 -0
  27. zlmdb/_meta.py +27 -0
  28. zlmdb/_pmap.py +1667 -0
  29. zlmdb/_schema.py +137 -0
  30. zlmdb/_transaction.py +181 -0
  31. zlmdb/_types.py +1596 -0
  32. zlmdb/_version.py +27 -0
  33. zlmdb/cli.py +41 -0
  34. zlmdb/flatbuffers/__init__.py +5 -0
  35. zlmdb/flatbuffers/reflection/AdvancedFeatures.py +10 -0
  36. zlmdb/flatbuffers/reflection/BaseType.py +25 -0
  37. zlmdb/flatbuffers/reflection/Enum.py +252 -0
  38. zlmdb/flatbuffers/reflection/EnumVal.py +144 -0
  39. zlmdb/flatbuffers/reflection/Field.py +325 -0
  40. zlmdb/flatbuffers/reflection/KeyValue.py +84 -0
  41. zlmdb/flatbuffers/reflection/Object.py +260 -0
  42. zlmdb/flatbuffers/reflection/RPCCall.py +195 -0
  43. zlmdb/flatbuffers/reflection/Schema.py +301 -0
  44. zlmdb/flatbuffers/reflection/SchemaFile.py +112 -0
  45. zlmdb/flatbuffers/reflection/Service.py +213 -0
  46. zlmdb/flatbuffers/reflection/Type.py +148 -0
  47. zlmdb/flatbuffers/reflection/__init__.py +0 -0
  48. zlmdb/flatbuffers/reflection.fbs +152 -0
  49. zlmdb/lmdb/__init__.py +37 -0
  50. zlmdb/lmdb/__main__.py +25 -0
  51. zlmdb/lmdb/_config.py +10 -0
  52. zlmdb/lmdb/_lmdb_cffi.cpython-312-darwin.so +0 -0
  53. zlmdb/lmdb/cffi.py +2606 -0
  54. zlmdb/lmdb/tool.py +670 -0
  55. zlmdb/tests/lmdb/__init__.py +0 -0
  56. zlmdb/tests/lmdb/address_book.py +287 -0
  57. zlmdb/tests/lmdb/crash_test.py +339 -0
  58. zlmdb/tests/lmdb/cursor_test.py +333 -0
  59. zlmdb/tests/lmdb/env_test.py +919 -0
  60. zlmdb/tests/lmdb/getmulti_test.py +92 -0
  61. zlmdb/tests/lmdb/iteration_test.py +258 -0
  62. zlmdb/tests/lmdb/package_test.py +70 -0
  63. zlmdb/tests/lmdb/test_lmdb.py +188 -0
  64. zlmdb/tests/lmdb/testlib.py +185 -0
  65. zlmdb/tests/lmdb/tool_test.py +60 -0
  66. zlmdb/tests/lmdb/txn_test.py +575 -0
  67. zlmdb/tests/orm/MNodeLog.py +853 -0
  68. zlmdb/tests/orm/__init__.py +0 -0
  69. zlmdb/tests/orm/_schema_fbs.py +215 -0
  70. zlmdb/tests/orm/_schema_mnode_log.py +1201 -0
  71. zlmdb/tests/orm/_schema_py2.py +250 -0
  72. zlmdb/tests/orm/_schema_py3.py +307 -0
  73. zlmdb/tests/orm/_test_flatbuffers.py +144 -0
  74. zlmdb/tests/orm/_test_serialization.py +144 -0
  75. zlmdb/tests/orm/test_basic.py +217 -0
  76. zlmdb/tests/orm/test_etcd.py +275 -0
  77. zlmdb/tests/orm/test_pmap_indexes.py +466 -0
  78. zlmdb/tests/orm/test_pmap_types.py +90 -0
  79. zlmdb/tests/orm/test_pmaps.py +295 -0
  80. zlmdb/tests/orm/test_select.py +619 -0
  81. zlmdb-25.10.1.dist-info/METADATA +264 -0
  82. zlmdb-25.10.1.dist-info/RECORD +87 -0
  83. zlmdb-25.10.1.dist-info/WHEEL +5 -0
  84. zlmdb-25.10.1.dist-info/entry_points.txt +2 -0
  85. zlmdb-25.10.1.dist-info/licenses/LICENSE +137 -0
  86. zlmdb-25.10.1.dist-info/licenses/NOTICE +41 -0
  87. zlmdb-25.10.1.dist-info/top_level.txt +2 -0
zlmdb/_version.py ADDED
@@ -0,0 +1,27 @@
1
+ ###############################################################################
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Copyright (c) typedef int GmbH
6
+ #
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ # of this software and associated documentation files (the "Software"), to deal
9
+ # in the Software without restriction, including without limitation the rights
10
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ # copies of the Software, and to permit persons to whom the Software is
12
+ # furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in
15
+ # all copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ # THE SOFTWARE.
24
+ #
25
+ ###############################################################################
26
+
27
+ __version__ = "25.10.1"
zlmdb/cli.py ADDED
@@ -0,0 +1,41 @@
1
+ ###############################################################################
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Copyright (c) typedef int GmbH
6
+ #
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ # of this software and associated documentation files (the "Software"), to deal
9
+ # in the Software without restriction, including without limitation the rights
10
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ # copies of the Software, and to permit persons to whom the Software is
12
+ # furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in
15
+ # all copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ # THE SOFTWARE.
24
+ #
25
+ ###############################################################################
26
+ """Console script for zlmdb."""
27
+
28
+ import sys
29
+ import click
30
+
31
+
32
+ @click.command()
33
+ def main(args=None):
34
+ """Console script for zlmdb."""
35
+ click.echo("Replace this message by putting your code into zlmdb.cli.main")
36
+ click.echo("See click documentation at http://click.pocoo.org/")
37
+ return 0
38
+
39
+
40
+ if __name__ == "__main__":
41
+ sys.exit(main()) # pragma: no cover
@@ -0,0 +1,5 @@
1
+ # Copyright (c) FlatBuffers Contributors, Apache License 2.0
2
+
3
+ # Copied from (master branch, 05/29/2022):
4
+ # * https://github.com/google/flatbuffers/blob/master/reflection/reflection.fbs
5
+ # * https://github.com/google/flatbuffers/tree/master/python/flatbuffers/reflection
@@ -0,0 +1,10 @@
1
+ # automatically generated by the FlatBuffers compiler, do not modify
2
+
3
+ # namespace: reflection
4
+
5
+ # New schema language features that are not supported by old code generators.
6
+ class AdvancedFeatures(object):
7
+ AdvancedArrayFeatures = 1
8
+ AdvancedUnionFeatures = 2
9
+ OptionalScalars = 4
10
+ DefaultVectorsAndStrings = 8
@@ -0,0 +1,25 @@
1
+ # automatically generated by the FlatBuffers compiler, do not modify
2
+
3
+ # namespace: reflection
4
+
5
+
6
+ class BaseType(object):
7
+ None_ = 0
8
+ UType = 1
9
+ Bool = 2
10
+ Byte = 3
11
+ UByte = 4
12
+ Short = 5
13
+ UShort = 6
14
+ Int = 7
15
+ UInt = 8
16
+ Long = 9
17
+ ULong = 10
18
+ Float = 11
19
+ Double = 12
20
+ String = 13
21
+ Vector = 14
22
+ Obj = 15
23
+ Union = 16
24
+ Array = 17
25
+ MaxBaseType = 18
@@ -0,0 +1,252 @@
1
+ # automatically generated by the FlatBuffers compiler, do not modify
2
+
3
+ # namespace: reflection
4
+
5
+ import flatbuffers
6
+ from flatbuffers.compat import import_numpy
7
+
8
+ np = import_numpy()
9
+
10
+
11
+ class Enum(object):
12
+ __slots__ = ["_tab"]
13
+
14
+ @classmethod
15
+ def GetRootAs(cls, buf, offset=0):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = Enum()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def GetRootAsEnum(cls, buf, offset=0):
23
+ """This method is deprecated. Please switch to GetRootAs."""
24
+ return cls.GetRootAs(buf, offset)
25
+
26
+ @classmethod
27
+ def EnumBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
28
+ return flatbuffers.util.BufferHasIdentifier(
29
+ buf, offset, b"\x42\x46\x42\x53", size_prefixed=size_prefixed
30
+ )
31
+
32
+ # Enum
33
+ def Init(self, buf, pos):
34
+ self._tab = flatbuffers.table.Table(buf, pos)
35
+
36
+ # Enum
37
+ def Name(self):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
39
+ if o != 0:
40
+ return self._tab.String(o + self._tab.Pos)
41
+ return None
42
+
43
+ # Enum
44
+ def Values(self, j):
45
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
46
+ if o != 0:
47
+ x = self._tab.Vector(o)
48
+ x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4
49
+ x = self._tab.Indirect(x)
50
+ from zlmdb.flatbuffers.reflection.EnumVal import EnumVal
51
+
52
+ obj = EnumVal()
53
+ obj.Init(self._tab.Bytes, x)
54
+ return obj
55
+ return None
56
+
57
+ # Enum
58
+ def ValuesLength(self):
59
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
60
+ if o != 0:
61
+ return self._tab.VectorLen(o)
62
+ return 0
63
+
64
+ # Enum
65
+ def ValuesIsNone(self):
66
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
67
+ return o == 0
68
+
69
+ # Enum
70
+ def IsUnion(self):
71
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
72
+ if o != 0:
73
+ return bool(
74
+ self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)
75
+ )
76
+ return False
77
+
78
+ # Enum
79
+ def UnderlyingType(self):
80
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
81
+ if o != 0:
82
+ x = self._tab.Indirect(o + self._tab.Pos)
83
+ from zlmdb.flatbuffers.reflection.Type import Type
84
+
85
+ obj = Type()
86
+ obj.Init(self._tab.Bytes, x)
87
+ return obj
88
+ return None
89
+
90
+ # Enum
91
+ def Attributes(self, j):
92
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
93
+ if o != 0:
94
+ x = self._tab.Vector(o)
95
+ x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4
96
+ x = self._tab.Indirect(x)
97
+ from zlmdb.flatbuffers.reflection.KeyValue import KeyValue
98
+
99
+ obj = KeyValue()
100
+ obj.Init(self._tab.Bytes, x)
101
+ return obj
102
+ return None
103
+
104
+ # Enum
105
+ def AttributesLength(self):
106
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
107
+ if o != 0:
108
+ return self._tab.VectorLen(o)
109
+ return 0
110
+
111
+ # Enum
112
+ def AttributesIsNone(self):
113
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
114
+ return o == 0
115
+
116
+ # Enum
117
+ def Documentation(self, j):
118
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
119
+ if o != 0:
120
+ a = self._tab.Vector(o)
121
+ return self._tab.String(
122
+ a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)
123
+ )
124
+ return ""
125
+
126
+ # Enum
127
+ def DocumentationLength(self):
128
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
129
+ if o != 0:
130
+ return self._tab.VectorLen(o)
131
+ return 0
132
+
133
+ # Enum
134
+ def DocumentationIsNone(self):
135
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
136
+ return o == 0
137
+
138
+ # File that this Enum is declared in.
139
+ # Enum
140
+ def DeclarationFile(self):
141
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
142
+ if o != 0:
143
+ return self._tab.String(o + self._tab.Pos)
144
+ return None
145
+
146
+
147
+ def EnumStart(builder):
148
+ builder.StartObject(7)
149
+
150
+
151
+ def Start(builder):
152
+ return EnumStart(builder)
153
+
154
+
155
+ def EnumAddName(builder, name):
156
+ builder.PrependUOffsetTRelativeSlot(
157
+ 0, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0
158
+ )
159
+
160
+
161
+ def AddName(builder, name):
162
+ return EnumAddName(builder, name)
163
+
164
+
165
+ def EnumAddValues(builder, values):
166
+ builder.PrependUOffsetTRelativeSlot(
167
+ 1, flatbuffers.number_types.UOffsetTFlags.py_type(values), 0
168
+ )
169
+
170
+
171
+ def AddValues(builder, values):
172
+ return EnumAddValues(builder, values)
173
+
174
+
175
+ def EnumStartValuesVector(builder, numElems):
176
+ return builder.StartVector(4, numElems, 4)
177
+
178
+
179
+ def StartValuesVector(builder, numElems):
180
+ return EnumStartValuesVector(builder, numElems)
181
+
182
+
183
+ def EnumAddIsUnion(builder, isUnion):
184
+ builder.PrependBoolSlot(2, isUnion, 0)
185
+
186
+
187
+ def AddIsUnion(builder, isUnion):
188
+ return EnumAddIsUnion(builder, isUnion)
189
+
190
+
191
+ def EnumAddUnderlyingType(builder, underlyingType):
192
+ builder.PrependUOffsetTRelativeSlot(
193
+ 3, flatbuffers.number_types.UOffsetTFlags.py_type(underlyingType), 0
194
+ )
195
+
196
+
197
+ def AddUnderlyingType(builder, underlyingType):
198
+ return EnumAddUnderlyingType(builder, underlyingType)
199
+
200
+
201
+ def EnumAddAttributes(builder, attributes):
202
+ builder.PrependUOffsetTRelativeSlot(
203
+ 4, flatbuffers.number_types.UOffsetTFlags.py_type(attributes), 0
204
+ )
205
+
206
+
207
+ def AddAttributes(builder, attributes):
208
+ return EnumAddAttributes(builder, attributes)
209
+
210
+
211
+ def EnumStartAttributesVector(builder, numElems):
212
+ return builder.StartVector(4, numElems, 4)
213
+
214
+
215
+ def StartAttributesVector(builder, numElems):
216
+ return EnumStartAttributesVector(builder, numElems)
217
+
218
+
219
+ def EnumAddDocumentation(builder, documentation):
220
+ builder.PrependUOffsetTRelativeSlot(
221
+ 5, flatbuffers.number_types.UOffsetTFlags.py_type(documentation), 0
222
+ )
223
+
224
+
225
+ def AddDocumentation(builder, documentation):
226
+ return EnumAddDocumentation(builder, documentation)
227
+
228
+
229
+ def EnumStartDocumentationVector(builder, numElems):
230
+ return builder.StartVector(4, numElems, 4)
231
+
232
+
233
+ def StartDocumentationVector(builder, numElems):
234
+ return EnumStartDocumentationVector(builder, numElems)
235
+
236
+
237
+ def EnumAddDeclarationFile(builder, declarationFile):
238
+ builder.PrependUOffsetTRelativeSlot(
239
+ 6, flatbuffers.number_types.UOffsetTFlags.py_type(declarationFile), 0
240
+ )
241
+
242
+
243
+ def AddDeclarationFile(builder, declarationFile):
244
+ return EnumAddDeclarationFile(builder, declarationFile)
245
+
246
+
247
+ def EnumEnd(builder):
248
+ return builder.EndObject()
249
+
250
+
251
+ def End(builder):
252
+ return EnumEnd(builder)
@@ -0,0 +1,144 @@
1
+ # automatically generated by the FlatBuffers compiler, do not modify
2
+
3
+ # namespace: reflection
4
+
5
+ import flatbuffers
6
+ from flatbuffers.compat import import_numpy
7
+
8
+ np = import_numpy()
9
+
10
+
11
+ class EnumVal(object):
12
+ __slots__ = ["_tab"]
13
+
14
+ @classmethod
15
+ def GetRootAs(cls, buf, offset=0):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = EnumVal()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def GetRootAsEnumVal(cls, buf, offset=0):
23
+ """This method is deprecated. Please switch to GetRootAs."""
24
+ return cls.GetRootAs(buf, offset)
25
+
26
+ @classmethod
27
+ def EnumValBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
28
+ return flatbuffers.util.BufferHasIdentifier(
29
+ buf, offset, b"\x42\x46\x42\x53", size_prefixed=size_prefixed
30
+ )
31
+
32
+ # EnumVal
33
+ def Init(self, buf, pos):
34
+ self._tab = flatbuffers.table.Table(buf, pos)
35
+
36
+ # EnumVal
37
+ def Name(self):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
39
+ if o != 0:
40
+ return self._tab.String(o + self._tab.Pos)
41
+ return None
42
+
43
+ # EnumVal
44
+ def Value(self):
45
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
46
+ if o != 0:
47
+ return self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos)
48
+ return 0
49
+
50
+ # EnumVal
51
+ def UnionType(self):
52
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
53
+ if o != 0:
54
+ x = self._tab.Indirect(o + self._tab.Pos)
55
+ from zlmdb.flatbuffers.reflection.Type import Type
56
+
57
+ obj = Type()
58
+ obj.Init(self._tab.Bytes, x)
59
+ return obj
60
+ return None
61
+
62
+ # EnumVal
63
+ def Documentation(self, j):
64
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
65
+ if o != 0:
66
+ a = self._tab.Vector(o)
67
+ return self._tab.String(
68
+ a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)
69
+ )
70
+ return ""
71
+
72
+ # EnumVal
73
+ def DocumentationLength(self):
74
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
75
+ if o != 0:
76
+ return self._tab.VectorLen(o)
77
+ return 0
78
+
79
+ # EnumVal
80
+ def DocumentationIsNone(self):
81
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
82
+ return o == 0
83
+
84
+
85
+ def EnumValStart(builder):
86
+ builder.StartObject(5)
87
+
88
+
89
+ def Start(builder):
90
+ return EnumValStart(builder)
91
+
92
+
93
+ def EnumValAddName(builder, name):
94
+ builder.PrependUOffsetTRelativeSlot(
95
+ 0, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0
96
+ )
97
+
98
+
99
+ def AddName(builder, name):
100
+ return EnumValAddName(builder, name)
101
+
102
+
103
+ def EnumValAddValue(builder, value):
104
+ builder.PrependInt64Slot(1, value, 0)
105
+
106
+
107
+ def AddValue(builder, value):
108
+ return EnumValAddValue(builder, value)
109
+
110
+
111
+ def EnumValAddUnionType(builder, unionType):
112
+ builder.PrependUOffsetTRelativeSlot(
113
+ 3, flatbuffers.number_types.UOffsetTFlags.py_type(unionType), 0
114
+ )
115
+
116
+
117
+ def AddUnionType(builder, unionType):
118
+ return EnumValAddUnionType(builder, unionType)
119
+
120
+
121
+ def EnumValAddDocumentation(builder, documentation):
122
+ builder.PrependUOffsetTRelativeSlot(
123
+ 4, flatbuffers.number_types.UOffsetTFlags.py_type(documentation), 0
124
+ )
125
+
126
+
127
+ def AddDocumentation(builder, documentation):
128
+ return EnumValAddDocumentation(builder, documentation)
129
+
130
+
131
+ def EnumValStartDocumentationVector(builder, numElems):
132
+ return builder.StartVector(4, numElems, 4)
133
+
134
+
135
+ def StartDocumentationVector(builder, numElems):
136
+ return EnumValStartDocumentationVector(builder, numElems)
137
+
138
+
139
+ def EnumValEnd(builder):
140
+ return builder.EndObject()
141
+
142
+
143
+ def End(builder):
144
+ return EnumValEnd(builder)