krpctools 0.5.0__zip → 0.5.4__zip
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.
- {krpctools-0.5.0 → krpctools-0.5.4}/CHANGES.txt +6 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/COPYING +4 -4
- {krpctools-0.5.0 → krpctools-0.5.4}/LICENSE +1 -1
- {krpctools-0.5.0 → krpctools-0.5.4}/PKG-INFO +1 -1
- krpctools-0.5.4/VERSION.txt +1 -0
- krpctools-0.5.4/krpctools/bin/Google.Protobuf.dll +0 -0
- krpctools-0.5.4/krpctools/bin/KRPC.Core.dll +0 -0
- krpctools-0.5.0/krpctools/bin/KRPC.xml → krpctools-0.5.4/krpctools/bin/KRPC.Core.xml +1166 -1427
- krpctools-0.5.4/krpctools/bin/KRPC.IO.Ports.dll +0 -0
- krpctools-0.5.4/krpctools/bin/Newtonsoft.Json.dll +0 -0
- krpctools-0.5.4/krpctools/bin/ServiceDefinitions.exe +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/bin/System.Core.dll +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/bin/System.Xml.dll +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/bin/System.dll +0 -0
- krpctools-0.5.4/krpctools/bin/TestServer-0.5.4.zip +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/bin/mscorlib.dll +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/clientgen/generator.py +3 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/clientgen/python.py +118 -39
- krpctools-0.5.4/krpctools/clientgen/python.tmpl +289 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/cnano.tmpl +2 -8
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/cpp.tmpl +2 -8
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/java.tmpl +2 -8
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/nodes.py +3 -1
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/python.tmpl +2 -8
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/lang/python.py +8 -4
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/servicedefs/__init__.py +15 -2
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/TestService.json +42 -2
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/clientgen-TestService-cnano.txt +34 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/clientgen-TestService-cpp.txt +45 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/clientgen-TestService-csharp.txt +21 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/clientgen-TestService-java.txt +35 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/clientgentest.py +6 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/docgen-TestService-cnano.rst +61 -49
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/docgen-TestService-cpp.rst +61 -49
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/docgen-TestService-csharp.rst +12 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/docgen-TestService-java.rst +62 -49
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/docgen-TestService-lua.rst +14 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/docgen-TestService-python.rst +66 -92
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/docgentest.py +1 -1
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/utils.py +2 -2
- krpctools-0.5.4/krpctools/version.py +1 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools.egg-info/PKG-INFO +1 -1
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools.egg-info/SOURCES.txt +4 -3
- krpctools-0.5.0/VERSION.txt +0 -1
- krpctools-0.5.0/krpctools/bin/Google.Protobuf.dll +0 -0
- krpctools-0.5.0/krpctools/bin/KRPC.dll +0 -0
- krpctools-0.5.0/krpctools/bin/Newtonsoft.Json.dll +0 -0
- krpctools-0.5.0/krpctools/bin/ServiceDefinitions.exe +0 -0
- krpctools-0.5.0/krpctools/bin/TestServer-0.5.0.zip +0 -0
- krpctools-0.5.0/krpctools/clientgen/python.tmpl +0 -111
- krpctools-0.5.0/krpctools/version.py +0 -1
- {krpctools-0.5.0 → krpctools-0.5.4}/MANIFEST.in +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/README.txt +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/__init__.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/bin/NDesk.Options.dll +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/bin/System.IO.dll +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/bin/System.Runtime.dll +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/clientgen/__init__.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/clientgen/cnano.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/clientgen/cnano.tmpl +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/clientgen/cpp.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/clientgen/cpp.tmpl +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/clientgen/csharp.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/clientgen/csharp.tmpl +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/clientgen/docparser.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/clientgen/java.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/clientgen/java.tmpl +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/__init__.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/cnano.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/cpp.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/csharp.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/csharp.tmpl +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/docgen.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/domain.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/extensions.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/java.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/lua.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/lua.tmpl +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/python.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/docgen/utils.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/lang/__init__.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/lang/cnano.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/lang/cpp.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/lang/csharp.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/lang/java.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/lang/language.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/lang/lua.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/Empty.json +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/__init__.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/clientgen-Empty-cnano.txt +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/clientgen-Empty-cpp.txt +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/clientgen-Empty-csharp.txt +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/clientgen-Empty-java.txt +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/docgen-Empty-cnano.rst +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/docgen-Empty-cpp.rst +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/docgen-Empty-csharp.rst +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/docgen-Empty-java.rst +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/docgen-Empty-lua.rst +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/docgen-Empty-python.rst +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/test_clientgen_cnano.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/test_clientgen_cpp.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/test_clientgen_csharp.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/test_clientgen_java.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/test_docgen_cnano.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/test_docgen_cpp.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/test_docgen_csharp.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/test_docgen_java.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/test_docgen_lua.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools/test/test_docgen_python.py +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools.egg-info/dependency_links.txt +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools.egg-info/entry_points.txt +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools.egg-info/requires.txt +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/krpctools.egg-info/top_level.txt +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/setup.cfg +0 -0
- {krpctools-0.5.0 → krpctools-0.5.4}/setup.py +0 -0
|
@@ -17,8 +17,7 @@ Service documentation string.
|
|
|
17
17
|
:param int y:
|
|
18
18
|
:param int z:
|
|
19
19
|
:rtype: str
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
|
|
22
21
|
|
|
23
22
|
|
|
24
23
|
|
|
@@ -30,8 +29,7 @@ Service documentation string.
|
|
|
30
29
|
:param list l:
|
|
31
30
|
:param str value:
|
|
32
31
|
:rtype: list(:class:`TestClass`)
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
|
|
35
33
|
|
|
36
34
|
|
|
37
35
|
|
|
@@ -43,8 +41,7 @@ Service documentation string.
|
|
|
43
41
|
:param int n:
|
|
44
42
|
:param int sum:
|
|
45
43
|
:rtype: int
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
|
|
48
45
|
|
|
49
46
|
|
|
50
47
|
|
|
@@ -55,8 +52,7 @@ Service documentation string.
|
|
|
55
52
|
|
|
56
53
|
:param bool value:
|
|
57
54
|
:rtype: str
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
|
|
60
56
|
|
|
61
57
|
|
|
62
58
|
|
|
@@ -67,8 +63,7 @@ Service documentation string.
|
|
|
67
63
|
|
|
68
64
|
:param bytes value:
|
|
69
65
|
:rtype: str
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
|
|
72
67
|
|
|
73
68
|
|
|
74
69
|
|
|
@@ -80,8 +75,7 @@ Service documentation string.
|
|
|
80
75
|
:param str id:
|
|
81
76
|
:param int divisor:
|
|
82
77
|
:rtype: int
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
|
|
85
79
|
|
|
86
80
|
|
|
87
81
|
|
|
@@ -92,8 +86,7 @@ Service documentation string.
|
|
|
92
86
|
|
|
93
87
|
:param str value:
|
|
94
88
|
:rtype: :class:`TestClass`
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
|
|
97
90
|
|
|
98
91
|
|
|
99
92
|
|
|
@@ -104,8 +97,7 @@ Service documentation string.
|
|
|
104
97
|
|
|
105
98
|
:param dict x:
|
|
106
99
|
:rtype: dict(int, bool)
|
|
107
|
-
|
|
108
|
-
|
|
100
|
+
|
|
109
101
|
|
|
110
102
|
|
|
111
103
|
|
|
@@ -116,8 +108,7 @@ Service documentation string.
|
|
|
116
108
|
|
|
117
109
|
:param float value:
|
|
118
110
|
:rtype: str
|
|
119
|
-
|
|
120
|
-
|
|
111
|
+
|
|
121
112
|
|
|
122
113
|
|
|
123
114
|
|
|
@@ -128,20 +119,18 @@ Service documentation string.
|
|
|
128
119
|
|
|
129
120
|
:param TestClass value:
|
|
130
121
|
:rtype: :class:`TestClass`
|
|
131
|
-
|
|
132
|
-
|
|
122
|
+
|
|
133
123
|
|
|
134
124
|
|
|
135
125
|
|
|
136
126
|
|
|
137
|
-
.. staticmethod:: enum_default_arg([x = 2])
|
|
127
|
+
.. staticmethod:: enum_default_arg([x = TestEnum(2)])
|
|
138
128
|
|
|
139
129
|
|
|
140
130
|
|
|
141
131
|
:param TestEnum x:
|
|
142
132
|
:rtype: :class:`TestEnum`
|
|
143
|
-
|
|
144
|
-
|
|
133
|
+
|
|
145
134
|
|
|
146
135
|
|
|
147
136
|
|
|
@@ -152,8 +141,7 @@ Service documentation string.
|
|
|
152
141
|
|
|
153
142
|
:param TestEnum x:
|
|
154
143
|
:rtype: :class:`TestEnum`
|
|
155
|
-
|
|
156
|
-
|
|
144
|
+
|
|
157
145
|
|
|
158
146
|
|
|
159
147
|
|
|
@@ -163,8 +151,7 @@ Service documentation string.
|
|
|
163
151
|
|
|
164
152
|
|
|
165
153
|
:rtype: :class:`TestEnum`
|
|
166
|
-
|
|
167
|
-
|
|
154
|
+
|
|
168
155
|
|
|
169
156
|
|
|
170
157
|
|
|
@@ -175,8 +162,7 @@ Service documentation string.
|
|
|
175
162
|
|
|
176
163
|
:param float value:
|
|
177
164
|
:rtype: str
|
|
178
|
-
|
|
179
|
-
|
|
165
|
+
|
|
180
166
|
|
|
181
167
|
|
|
182
168
|
|
|
@@ -187,8 +173,7 @@ Service documentation string.
|
|
|
187
173
|
|
|
188
174
|
:param dict d:
|
|
189
175
|
:rtype: dict(str, int)
|
|
190
|
-
|
|
191
|
-
|
|
176
|
+
|
|
192
177
|
|
|
193
178
|
|
|
194
179
|
|
|
@@ -199,8 +184,7 @@ Service documentation string.
|
|
|
199
184
|
|
|
200
185
|
:param list l:
|
|
201
186
|
:rtype: list(int)
|
|
202
|
-
|
|
203
|
-
|
|
187
|
+
|
|
204
188
|
|
|
205
189
|
|
|
206
190
|
|
|
@@ -211,8 +195,7 @@ Service documentation string.
|
|
|
211
195
|
|
|
212
196
|
:param dict d:
|
|
213
197
|
:rtype: dict(str, list(int))
|
|
214
|
-
|
|
215
|
-
|
|
198
|
+
|
|
216
199
|
|
|
217
200
|
|
|
218
201
|
|
|
@@ -223,8 +206,7 @@ Service documentation string.
|
|
|
223
206
|
|
|
224
207
|
:param set h:
|
|
225
208
|
:rtype: set(int)
|
|
226
|
-
|
|
227
|
-
|
|
209
|
+
|
|
228
210
|
|
|
229
211
|
|
|
230
212
|
|
|
@@ -235,8 +217,7 @@ Service documentation string.
|
|
|
235
217
|
|
|
236
218
|
:param tuple t:
|
|
237
219
|
:rtype: tuple(int, int)
|
|
238
|
-
|
|
239
|
-
|
|
220
|
+
|
|
240
221
|
|
|
241
222
|
|
|
242
223
|
|
|
@@ -247,8 +228,7 @@ Service documentation string.
|
|
|
247
228
|
|
|
248
229
|
:param int value:
|
|
249
230
|
:rtype: str
|
|
250
|
-
|
|
251
|
-
|
|
231
|
+
|
|
252
232
|
|
|
253
233
|
|
|
254
234
|
|
|
@@ -259,8 +239,7 @@ Service documentation string.
|
|
|
259
239
|
|
|
260
240
|
:param int value:
|
|
261
241
|
:rtype: str
|
|
262
|
-
|
|
263
|
-
|
|
242
|
+
|
|
264
243
|
|
|
265
244
|
|
|
266
245
|
|
|
@@ -271,8 +250,7 @@ Service documentation string.
|
|
|
271
250
|
|
|
272
251
|
:param list x:
|
|
273
252
|
:rtype: list(int)
|
|
274
|
-
|
|
275
|
-
|
|
253
|
+
|
|
276
254
|
|
|
277
255
|
|
|
278
256
|
|
|
@@ -283,8 +261,7 @@ Service documentation string.
|
|
|
283
261
|
|
|
284
262
|
:Attribute: Can be read or written
|
|
285
263
|
:rtype: :class:`TestClass`
|
|
286
|
-
|
|
287
|
-
|
|
264
|
+
|
|
288
265
|
|
|
289
266
|
|
|
290
267
|
|
|
@@ -296,8 +273,7 @@ Service documentation string.
|
|
|
296
273
|
:param int milliseconds:
|
|
297
274
|
:param int repeats:
|
|
298
275
|
:rtype: :class:`krpc.schema.KRPC.Event`
|
|
299
|
-
|
|
300
|
-
|
|
276
|
+
|
|
301
277
|
|
|
302
278
|
|
|
303
279
|
|
|
@@ -308,8 +284,7 @@ Service documentation string.
|
|
|
308
284
|
|
|
309
285
|
:param int milliseconds:
|
|
310
286
|
:rtype: :class:`krpc.schema.KRPC.Event`
|
|
311
|
-
|
|
312
|
-
|
|
287
|
+
|
|
313
288
|
|
|
314
289
|
|
|
315
290
|
|
|
@@ -323,8 +298,7 @@ Service documentation string.
|
|
|
323
298
|
:param str z:
|
|
324
299
|
:param TestClass obj:
|
|
325
300
|
:rtype: str
|
|
326
|
-
|
|
327
|
-
|
|
301
|
+
|
|
328
302
|
|
|
329
303
|
|
|
330
304
|
|
|
@@ -333,8 +307,7 @@ Service documentation string.
|
|
|
333
307
|
|
|
334
308
|
|
|
335
309
|
|
|
336
|
-
|
|
337
|
-
|
|
310
|
+
|
|
338
311
|
|
|
339
312
|
|
|
340
313
|
|
|
@@ -343,8 +316,7 @@ Service documentation string.
|
|
|
343
316
|
|
|
344
317
|
|
|
345
318
|
|
|
346
|
-
|
|
347
|
-
|
|
319
|
+
|
|
348
320
|
|
|
349
321
|
|
|
350
322
|
|
|
@@ -354,8 +326,7 @@ Service documentation string.
|
|
|
354
326
|
|
|
355
327
|
|
|
356
328
|
:rtype: :class:`TestClass`
|
|
357
|
-
|
|
358
|
-
|
|
329
|
+
|
|
359
330
|
|
|
360
331
|
|
|
361
332
|
|
|
@@ -366,8 +337,7 @@ Service documentation string.
|
|
|
366
337
|
|
|
367
338
|
:param set x:
|
|
368
339
|
:rtype: set(int)
|
|
369
|
-
|
|
370
|
-
|
|
340
|
+
|
|
371
341
|
|
|
372
342
|
|
|
373
343
|
|
|
@@ -378,8 +348,7 @@ Service documentation string.
|
|
|
378
348
|
|
|
379
349
|
:Attribute: Can be read or written
|
|
380
350
|
:rtype: str
|
|
381
|
-
|
|
382
|
-
|
|
351
|
+
|
|
383
352
|
|
|
384
353
|
|
|
385
354
|
|
|
@@ -390,8 +359,7 @@ Service documentation string.
|
|
|
390
359
|
|
|
391
360
|
:Attribute: Write-only, cannot be read
|
|
392
361
|
:rtype: str
|
|
393
|
-
|
|
394
|
-
|
|
362
|
+
|
|
395
363
|
|
|
396
364
|
|
|
397
365
|
|
|
@@ -402,8 +370,7 @@ Service documentation string.
|
|
|
402
370
|
|
|
403
371
|
:Attribute: Read-only, cannot be set
|
|
404
372
|
:rtype: str
|
|
405
|
-
|
|
406
|
-
|
|
373
|
+
|
|
407
374
|
|
|
408
375
|
|
|
409
376
|
|
|
@@ -414,8 +381,7 @@ Service documentation string.
|
|
|
414
381
|
|
|
415
382
|
:param str value:
|
|
416
383
|
:rtype: int
|
|
417
|
-
|
|
418
|
-
|
|
384
|
+
|
|
419
385
|
|
|
420
386
|
|
|
421
387
|
|
|
@@ -425,8 +391,7 @@ Service documentation string.
|
|
|
425
391
|
|
|
426
392
|
|
|
427
393
|
:rtype: int
|
|
428
|
-
|
|
429
|
-
|
|
394
|
+
|
|
430
395
|
|
|
431
396
|
|
|
432
397
|
|
|
@@ -437,8 +402,7 @@ Service documentation string.
|
|
|
437
402
|
|
|
438
403
|
:param str foo:
|
|
439
404
|
:rtype: int
|
|
440
|
-
|
|
441
|
-
|
|
405
|
+
|
|
442
406
|
|
|
443
407
|
|
|
444
408
|
|
|
@@ -449,8 +413,7 @@ Service documentation string.
|
|
|
449
413
|
|
|
450
414
|
:param int foo:
|
|
451
415
|
:rtype: int
|
|
452
|
-
|
|
453
|
-
|
|
416
|
+
|
|
454
417
|
|
|
455
418
|
|
|
456
419
|
|
|
@@ -460,8 +423,7 @@ Service documentation string.
|
|
|
460
423
|
|
|
461
424
|
|
|
462
425
|
:rtype: int
|
|
463
|
-
|
|
464
|
-
|
|
426
|
+
|
|
465
427
|
|
|
466
428
|
|
|
467
429
|
|
|
@@ -471,8 +433,7 @@ Service documentation string.
|
|
|
471
433
|
|
|
472
434
|
|
|
473
435
|
:rtype: int
|
|
474
|
-
|
|
475
|
-
|
|
436
|
+
|
|
476
437
|
|
|
477
438
|
|
|
478
439
|
|
|
@@ -482,8 +443,7 @@ Service documentation string.
|
|
|
482
443
|
|
|
483
444
|
|
|
484
445
|
:rtype: int
|
|
485
|
-
|
|
486
|
-
|
|
446
|
+
|
|
487
447
|
|
|
488
448
|
|
|
489
449
|
|
|
@@ -493,8 +453,7 @@ Service documentation string.
|
|
|
493
453
|
|
|
494
454
|
|
|
495
455
|
:rtype: int
|
|
496
|
-
|
|
497
|
-
|
|
456
|
+
|
|
498
457
|
|
|
499
458
|
|
|
500
459
|
|
|
@@ -505,8 +464,7 @@ Service documentation string.
|
|
|
505
464
|
|
|
506
465
|
:param tuple x:
|
|
507
466
|
:rtype: tuple(int, bool)
|
|
508
|
-
|
|
509
|
-
|
|
467
|
+
|
|
510
468
|
|
|
511
469
|
|
|
512
470
|
|
|
@@ -522,14 +480,14 @@ Service documentation string.
|
|
|
522
480
|
|
|
523
481
|
:param float x:
|
|
524
482
|
:rtype: str
|
|
525
|
-
|
|
483
|
+
|
|
526
484
|
|
|
527
485
|
.. method:: get_value()
|
|
528
486
|
|
|
529
487
|
Method documentation string.
|
|
530
488
|
|
|
531
489
|
:rtype: str
|
|
532
|
-
|
|
490
|
+
|
|
533
491
|
|
|
534
492
|
.. attribute:: int_property
|
|
535
493
|
|
|
@@ -537,7 +495,7 @@ Service documentation string.
|
|
|
537
495
|
|
|
538
496
|
:Attribute: Can be read or written
|
|
539
497
|
:rtype: int
|
|
540
|
-
|
|
498
|
+
|
|
541
499
|
|
|
542
500
|
.. attribute:: object_property
|
|
543
501
|
|
|
@@ -545,7 +503,7 @@ Service documentation string.
|
|
|
545
503
|
|
|
546
504
|
:Attribute: Can be read or written
|
|
547
505
|
:rtype: :class:`TestClass`
|
|
548
|
-
|
|
506
|
+
|
|
549
507
|
|
|
550
508
|
.. method:: object_to_string(other)
|
|
551
509
|
|
|
@@ -553,7 +511,7 @@ Service documentation string.
|
|
|
553
511
|
|
|
554
512
|
:param TestClass other:
|
|
555
513
|
:rtype: str
|
|
556
|
-
|
|
514
|
+
|
|
557
515
|
|
|
558
516
|
.. method:: optional_arguments(x, [y = 'foo'], [z = 'bar'], [obj = None])
|
|
559
517
|
|
|
@@ -564,7 +522,7 @@ Service documentation string.
|
|
|
564
522
|
:param str z:
|
|
565
523
|
:param TestClass obj:
|
|
566
524
|
:rtype: str
|
|
567
|
-
|
|
525
|
+
|
|
568
526
|
|
|
569
527
|
.. staticmethod:: static_method([a = ''], [b = ''])
|
|
570
528
|
|
|
@@ -573,7 +531,23 @@ Service documentation string.
|
|
|
573
531
|
:param str a:
|
|
574
532
|
:param str b:
|
|
575
533
|
:rtype: str
|
|
576
|
-
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
.. attribute:: string_property_private_get
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
:Attribute: Write-only, cannot be read
|
|
541
|
+
:rtype: str
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
.. attribute:: string_property_private_set
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
:Attribute: Read-only, cannot be set
|
|
549
|
+
:rtype: str
|
|
550
|
+
|
|
577
551
|
|
|
578
552
|
|
|
579
553
|
|
|
@@ -61,7 +61,7 @@ class DocGenTestCase:
|
|
|
61
61
|
|
|
62
62
|
actual, _ = process_file(domain, services, path)
|
|
63
63
|
|
|
64
|
-
# with open('/home/alex/workspaces/
|
|
64
|
+
# with open('/home/alex/workspaces/krpc/krpc/' +
|
|
65
65
|
# 'tools/krpctools/krpctools/test/' +
|
|
66
66
|
# 'docgen-'+name+'-'+self.language+'.rst', 'w') as f:
|
|
67
67
|
# f.write(actual)
|
|
@@ -60,5 +60,5 @@ def decode_default_value(value, typ):
|
|
|
60
60
|
# Note: following is a workaround for decoding EnumerationType,
|
|
61
61
|
# as set_values has not been called
|
|
62
62
|
if not isinstance(typ, EnumerationType):
|
|
63
|
-
return Decoder.decode(value, typ)
|
|
64
|
-
return Decoder.decode(value, Types().sint32_type)
|
|
63
|
+
return Decoder.decode(None, value, typ)
|
|
64
|
+
return Decoder.decode(None, value, Types().sint32_type)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.5.4'
|
|
@@ -15,8 +15,9 @@ krpctools.egg-info/entry_points.txt
|
|
|
15
15
|
krpctools.egg-info/requires.txt
|
|
16
16
|
krpctools.egg-info/top_level.txt
|
|
17
17
|
krpctools/bin/Google.Protobuf.dll
|
|
18
|
-
krpctools/bin/KRPC.dll
|
|
19
|
-
krpctools/bin/KRPC.xml
|
|
18
|
+
krpctools/bin/KRPC.Core.dll
|
|
19
|
+
krpctools/bin/KRPC.Core.xml
|
|
20
|
+
krpctools/bin/KRPC.IO.Ports.dll
|
|
20
21
|
krpctools/bin/NDesk.Options.dll
|
|
21
22
|
krpctools/bin/Newtonsoft.Json.dll
|
|
22
23
|
krpctools/bin/ServiceDefinitions.exe
|
|
@@ -25,7 +26,7 @@ krpctools/bin/System.IO.dll
|
|
|
25
26
|
krpctools/bin/System.Runtime.dll
|
|
26
27
|
krpctools/bin/System.Xml.dll
|
|
27
28
|
krpctools/bin/System.dll
|
|
28
|
-
krpctools/bin/TestServer-0.5.
|
|
29
|
+
krpctools/bin/TestServer-0.5.4.zip
|
|
29
30
|
krpctools/bin/mscorlib.dll
|
|
30
31
|
krpctools/clientgen/__init__.py
|
|
31
32
|
krpctools/clientgen/cnano.py
|
krpctools-0.5.0/VERSION.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.5.0
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
from typing import Tuple, Set, Dict, List, TYPE_CHECKING, Optional, Any, Callable
|
|
2
|
-
{% for dep in dependencies %}
|
|
3
|
-
from krpc.{{dep|lower()}} import {{dep}}
|
|
4
|
-
{% endfor %}
|
|
5
|
-
|
|
6
|
-
{% macro arg_list(parameters) %}
|
|
7
|
-
{% for x in parameters %}{% if loop.first %}, {% endif %}{{x.name|snake_case()}}{%if 'default_value' in x %}={{x.default_value}}{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}{% endmacro %}
|
|
8
|
-
{% macro static_arg_list(parameters) %}
|
|
9
|
-
{% for x in parameters %}{% if loop.first %}, {% endif %}{{x.name|snake_case()}}{%if 'default_value' in x %}={{x.default_value}}{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}{% endmacro %}
|
|
10
|
-
{% macro procedure_types(procedure) %}
|
|
11
|
-
{{'#'}} type: ({% for x in procedure.parameters %}{{x.type.spec}}{% if not loop.last %}, {% endif %}{% endfor %}) {{'->'}} {% if 'return_is_nullable' in procedure.procedure and procedure.procedure['return_is_nullable'] %}Optional[{% endif %}{{ procedure.return_type.spec }}{% if 'return_is_nullable' in procedure.procedure and procedure.procedure['return_is_nullable'] %}]{% endif %}{% endmacro %}
|
|
12
|
-
|
|
13
|
-
class {{ service_name }}:
|
|
14
|
-
|
|
15
|
-
{# Service properties #}
|
|
16
|
-
{% for prop_name, prop in properties.items() %}
|
|
17
|
-
{% if 'getter' in prop %}
|
|
18
|
-
@property
|
|
19
|
-
def {{prop_name|snake_case()}}(self{{ arg_list(prop.getter.parameters) }}):
|
|
20
|
-
{{ procedure_types(prop.getter) }}
|
|
21
|
-
{% if prop.getter.documentation %}{{ prop.getter.documentation | indent(width=8) }}
|
|
22
|
-
{% endif %}
|
|
23
|
-
...
|
|
24
|
-
|
|
25
|
-
{% endif %}
|
|
26
|
-
{% if 'getter' in prop and 'setter' in prop %}
|
|
27
|
-
@{{prop_name|snake_case()}}.setter
|
|
28
|
-
def {{prop_name|snake_case()}}(self{{ arg_list(prop.setter.parameters) }}):
|
|
29
|
-
{{ procedure_types(prop.setter) }}
|
|
30
|
-
...
|
|
31
|
-
|
|
32
|
-
{# Set only property #}
|
|
33
|
-
{% elif 'setter' in prop %}
|
|
34
|
-
def {{prop_name|snake_case()}}(self{{ arg_list(prop.setter.parameters) }}):
|
|
35
|
-
{{ procedure_types(prop.setter) }}
|
|
36
|
-
{% if prop.setter.documentation %}{{ prop.setter.documentation | indent(width=8) }}
|
|
37
|
-
{% endif %}
|
|
38
|
-
...
|
|
39
|
-
{{prop_name|snake_case()}} = property(None, {{prop_name|snake_case()}})
|
|
40
|
-
|
|
41
|
-
{% endif %}
|
|
42
|
-
{% endfor %}
|
|
43
|
-
{# Service Procedures #}
|
|
44
|
-
{% for proc_name, procedure in procedures.items() %}
|
|
45
|
-
def {{proc_name|snake_case()}}(self{{ arg_list(procedure.parameters) }}):
|
|
46
|
-
{{ procedure_types(procedure) }}
|
|
47
|
-
{% if procedure.documentation %}{{ procedure.documentation | indent(width=8) }}
|
|
48
|
-
{% endif %}
|
|
49
|
-
...
|
|
50
|
-
|
|
51
|
-
{% endfor %}
|
|
52
|
-
{% for class_name, class in classes.items() %}
|
|
53
|
-
class {{class_name}}:
|
|
54
|
-
{# Class properties #}
|
|
55
|
-
{% for prop_name, prop in class['properties'].items() %}
|
|
56
|
-
{% if 'getter' in prop %}
|
|
57
|
-
@property
|
|
58
|
-
def {{prop_name|snake_case()}}(self{{ arg_list(prop.getter.parameters) }}):
|
|
59
|
-
{{ procedure_types(prop.getter) }}
|
|
60
|
-
{% if prop.getter.documentation %}{{ prop.getter.documentation | indent(width=12) }}
|
|
61
|
-
{% endif %}
|
|
62
|
-
...
|
|
63
|
-
|
|
64
|
-
{% endif %}
|
|
65
|
-
{% if 'getter' in prop and 'setter' in prop %}
|
|
66
|
-
@{{prop_name|snake_case()}}.setter
|
|
67
|
-
def {{prop_name|snake_case()}}(self{{ arg_list(prop.setter.parameters) }}):
|
|
68
|
-
{{ procedure_types(prop.setter) }}
|
|
69
|
-
...
|
|
70
|
-
|
|
71
|
-
{# Set only property #}
|
|
72
|
-
{% elif 'setter' in prop %}
|
|
73
|
-
def {{prop_name|snake_case()}}(self{{ arg_list(prop.setter.parameters) }}):
|
|
74
|
-
{{ procedure_types(prop.setter) }}
|
|
75
|
-
{% if prop.setter.documentation %}{{ prop.setter.documentation | indent(width=12) }}
|
|
76
|
-
{% endif %}
|
|
77
|
-
...
|
|
78
|
-
{{prop_name|snake_case()}} = property(None, {{prop_name|snake_case()}})
|
|
79
|
-
|
|
80
|
-
{% endif %}
|
|
81
|
-
{% endfor %}
|
|
82
|
-
{# Class Procedures #}
|
|
83
|
-
{% for proc_name, procedure in class['methods'].items() %}
|
|
84
|
-
def {{proc_name|snake_case()}}(self{{ arg_list(procedure.parameters) }}):
|
|
85
|
-
{{ procedure_types(procedure) }}
|
|
86
|
-
{% if procedure.documentation %}{{ procedure.documentation | indent(width=12) }}
|
|
87
|
-
{% endif %}
|
|
88
|
-
...
|
|
89
|
-
|
|
90
|
-
{% endfor %}
|
|
91
|
-
{# Class Static Procedures #}
|
|
92
|
-
{% for proc_name, procedure in class['static_methods'].items() %}
|
|
93
|
-
@staticmethod
|
|
94
|
-
def {{proc_name|snake_case()}}({{ static_arg_list(procedure.parameters) }}):
|
|
95
|
-
{{ procedure_types(procedure) }}
|
|
96
|
-
{% if procedure.documentation %}{{ procedure.documentation | indent(width=12) }}
|
|
97
|
-
{% endif %}
|
|
98
|
-
...
|
|
99
|
-
|
|
100
|
-
{% endfor %}
|
|
101
|
-
{% endfor %}
|
|
102
|
-
{# Service Enums #}
|
|
103
|
-
{% for enum_name,enumeration in enumerations.items()|list %}
|
|
104
|
-
class {{enum_name}}:
|
|
105
|
-
{% if enumeration.documentation %}{{ enumeration.documentation | indent(width=8) }}
|
|
106
|
-
{% endif %}
|
|
107
|
-
{% for enum_value in enumeration['values'] %}
|
|
108
|
-
{{enum_value['name']|snake_case()}} = {{enum_value['value']}}
|
|
109
|
-
{% endfor %}
|
|
110
|
-
|
|
111
|
-
{% endfor %}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '0.5.0'
|
|
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
|