easycoder 250611.5__py2.py3-none-any.whl → 250612.1__py2.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 easycoder might be problematic. Click here for more details.
- easycoder/__init__.py +1 -1
- easycoder/ec_core.py +17 -31
- {easycoder-250611.5.dist-info → easycoder-250612.1.dist-info}/METADATA +1 -1
- {easycoder-250611.5.dist-info → easycoder-250612.1.dist-info}/RECORD +7 -7
- {easycoder-250611.5.dist-info → easycoder-250612.1.dist-info}/LICENSE +0 -0
- {easycoder-250611.5.dist-info → easycoder-250612.1.dist-info}/WHEEL +0 -0
- {easycoder-250611.5.dist-info → easycoder-250612.1.dist-info}/entry_points.txt +0 -0
easycoder/__init__.py
CHANGED
easycoder/ec_core.py
CHANGED
|
@@ -110,14 +110,6 @@ class Core(Handler):
|
|
|
110
110
|
self.putSymbolValue(target, val)
|
|
111
111
|
return self.nextPC()
|
|
112
112
|
|
|
113
|
-
# Define an array
|
|
114
|
-
def k_array(self, command):
|
|
115
|
-
return self.compileVariable(command)
|
|
116
|
-
|
|
117
|
-
def r_array(self, command):
|
|
118
|
-
return self.nextPC()
|
|
119
|
-
|
|
120
|
-
# Assertion
|
|
121
113
|
#assert {condition} [with {message}]
|
|
122
114
|
def k_assert(self, command):
|
|
123
115
|
command['test'] = self.nextCondition()
|
|
@@ -896,13 +888,6 @@ class Core(Handler):
|
|
|
896
888
|
self.putSymbolValue(symbolRecord, value)
|
|
897
889
|
return self.nextPC()
|
|
898
890
|
|
|
899
|
-
# Define an object variable
|
|
900
|
-
def k_object(self, command):
|
|
901
|
-
return self.compileVariable(command)
|
|
902
|
-
|
|
903
|
-
def r_object(self, command):
|
|
904
|
-
return self.nextPC()
|
|
905
|
-
|
|
906
891
|
# on message {action}
|
|
907
892
|
def k_on(self, command):
|
|
908
893
|
if self.nextIs('message'):
|
|
@@ -1187,6 +1172,16 @@ class Core(Handler):
|
|
|
1187
1172
|
self.putSymbolValue(symbolRecord, value)
|
|
1188
1173
|
return self.nextPC()
|
|
1189
1174
|
|
|
1175
|
+
# Release the parent script
|
|
1176
|
+
def k_release(self, command):
|
|
1177
|
+
if self.nextIs('parent'):
|
|
1178
|
+
self.add(command)
|
|
1179
|
+
return True
|
|
1180
|
+
|
|
1181
|
+
def r_release(self, command):
|
|
1182
|
+
self.program.releaseParent()
|
|
1183
|
+
return self.nextPC()
|
|
1184
|
+
|
|
1190
1185
|
# Replace a substring
|
|
1191
1186
|
#replace {value} with {value} in {variable}
|
|
1192
1187
|
def k_replace(self, command):
|
|
@@ -1217,16 +1212,6 @@ class Core(Handler):
|
|
|
1217
1212
|
self.putSymbolValue(templateRecord, value)
|
|
1218
1213
|
return self.nextPC()
|
|
1219
1214
|
|
|
1220
|
-
# Release the parent script
|
|
1221
|
-
def k_release(self, command):
|
|
1222
|
-
if self.nextIs('parent'):
|
|
1223
|
-
self.add(command)
|
|
1224
|
-
return True
|
|
1225
|
-
|
|
1226
|
-
def r_release(self, command):
|
|
1227
|
-
self.program.releaseParent()
|
|
1228
|
-
return self.nextPC()
|
|
1229
|
-
|
|
1230
1215
|
# Return from subroutine
|
|
1231
1216
|
def k_return(self, command):
|
|
1232
1217
|
self.add(command)
|
|
@@ -1281,11 +1266,6 @@ class Core(Handler):
|
|
|
1281
1266
|
p(path).start(parent, module, exports)
|
|
1282
1267
|
return 0
|
|
1283
1268
|
|
|
1284
|
-
# Provide a name for the script
|
|
1285
|
-
def k_script(self, command):
|
|
1286
|
-
self.program.name = self.nextToken()
|
|
1287
|
-
return True
|
|
1288
|
-
|
|
1289
1269
|
# Save a value to a file
|
|
1290
1270
|
def k_save(self, command):
|
|
1291
1271
|
command['content'] = self.nextValue()
|
|
@@ -1329,8 +1309,9 @@ class Core(Handler):
|
|
|
1329
1309
|
ssh = self.getVariable(command['ssh'])
|
|
1330
1310
|
path = self.getRuntimeValue(command['path'])
|
|
1331
1311
|
sftp = ssh['sftp']
|
|
1312
|
+
if path.endswith('.json'): content = json.dumps(content)
|
|
1332
1313
|
try:
|
|
1333
|
-
with sftp.open(path, 'w') as remote_file: remote_file.write(content
|
|
1314
|
+
with sftp.open(path, 'w') as remote_file: remote_file.write(content)
|
|
1334
1315
|
except:
|
|
1335
1316
|
errorReason = 'Unable to write to {path}'
|
|
1336
1317
|
else:
|
|
@@ -1349,6 +1330,11 @@ class Core(Handler):
|
|
|
1349
1330
|
RuntimeError(self.program, f'Error: {errorReason}')
|
|
1350
1331
|
return self.nextPC()
|
|
1351
1332
|
|
|
1333
|
+
# Provide a name for the script
|
|
1334
|
+
def k_script(self, command):
|
|
1335
|
+
self.program.name = self.nextToken()
|
|
1336
|
+
return True
|
|
1337
|
+
|
|
1352
1338
|
# Send a message to a module
|
|
1353
1339
|
def k_send(self, command):
|
|
1354
1340
|
command['message'] = self.nextValue()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
3
|
+
Version: 250612.1
|
|
4
4
|
Summary: Rapid scripting in English
|
|
5
5
|
Keywords: compiler,scripting,prototyping,programming,coding,python,low code,hypertalk,computer language,learn to code
|
|
6
6
|
Author-email: Graham Trott <gtanyware@gmail.com>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
|
|
2
|
-
easycoder/__init__.py,sha256=
|
|
2
|
+
easycoder/__init__.py,sha256=OLp6yroXUKmu9WVYfbqW69fcPpCbczwMUJRHBwWILdg,262
|
|
3
3
|
easycoder/ec_classes.py,sha256=L6-6yWHDHw8yF9TGL4WWc4p1aUyXzYz6Gom7jJ43h8o,1823
|
|
4
4
|
easycoder/ec_compiler.py,sha256=6X9Sy5hr9-Ek36XqWrHJ8Ct1fE5sw2hBLKKFMh2RfRs,5130
|
|
5
5
|
easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
|
|
6
|
-
easycoder/ec_core.py,sha256=
|
|
6
|
+
easycoder/ec_core.py,sha256=iAlPNrVwzU84EO6zxJ-xVMh2WuYjiMtkXD_8ujezXHU,97806
|
|
7
7
|
easycoder/ec_handler.py,sha256=ohf3xUuWw_Qb5SZnulGtDhvCb11kvWtYfgbQTiOXpIY,2261
|
|
8
8
|
easycoder/ec_program.py,sha256=IDpfq9oghFJMJyRD9uab31VOP5MOF4M7kcUVfDn7d4I,9992
|
|
9
9
|
easycoder/ec_pyside.py,sha256=X84j4WC0n0p9PaoJI1W4dqDzAHTFD5izX2aLoPCQ8kE,39855
|
|
10
10
|
easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
|
|
11
11
|
easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
|
|
12
|
-
easycoder-
|
|
13
|
-
easycoder-
|
|
14
|
-
easycoder-
|
|
15
|
-
easycoder-
|
|
16
|
-
easycoder-
|
|
12
|
+
easycoder-250612.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
|
|
13
|
+
easycoder-250612.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
14
|
+
easycoder-250612.1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
|
|
15
|
+
easycoder-250612.1.dist-info/METADATA,sha256=G2dfdIMAkNCvC6DzYU4JEpbiTFtbuOegjT6FyZUZVhI,6853
|
|
16
|
+
easycoder-250612.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|