easycoder 250804.1__py2.py3-none-any.whl → 250805.2__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 CHANGED
@@ -11,4 +11,4 @@ from .ec_pyside import *
11
11
  from .ec_timestamp import *
12
12
  from .ec_value import *
13
13
 
14
- __version__ = "250804.1"
14
+ __version__ = "250805.2"
easycoder/ec_core.py CHANGED
@@ -1,4 +1,4 @@
1
- import json, math, hashlib, threading, os, subprocess, sys, time
1
+ import json, math, hashlib, threading, os, subprocess, time
2
2
  import numbers, base64, binascii, random, requests, paramiko
3
3
  from psutil import Process
4
4
  from datetime import datetime
@@ -771,6 +771,11 @@ class Core(Handler):
771
771
  with sftp.open(path, 'r') as remote_file: content = remote_file.read().decode()
772
772
  except:
773
773
  errorReason = f'Unable to read from {path}'
774
+ if command['or'] != None:
775
+ print(f'Exception "{errorReason}": Running the "or" clause')
776
+ return command['or']
777
+ else:
778
+ RuntimeError(self.program, f'Error: {errorReason}')
774
779
  else:
775
780
  filename = self.getRuntimeValue(command['file'])
776
781
  try:
@@ -1291,6 +1296,11 @@ class Core(Handler):
1291
1296
  with sftp.open(path, 'w') as remote_file: remote_file.write(content)
1292
1297
  except:
1293
1298
  errorReason = 'Unable to write to {path}'
1299
+ if command['or'] != None:
1300
+ print(f'Exception "{errorReason}": Running the "or" clause')
1301
+ return command['or']
1302
+ else:
1303
+ RuntimeError(self.program, f'Error: {errorReason}')
1294
1304
  else:
1295
1305
  filename = self.getRuntimeValue(command['file'])
1296
1306
  if filename.endswith('.json'): content = json.dumps(content)
easycoder/ec_program.py CHANGED
@@ -22,6 +22,7 @@ class Program:
22
22
  if len(argv) == 0:
23
23
  print('No script supplied')
24
24
  exit()
25
+ if argv in ['-v', '--version']: return
25
26
  scriptName = argv
26
27
 
27
28
  f = open(scriptName, 'r')
@@ -47,6 +48,7 @@ class Program:
47
48
  self.externalControl = False
48
49
  self.ticker = 0
49
50
  self.running = True
51
+ self.start()
50
52
 
51
53
  # This is called at 10msec intervals by the GUI code
52
54
  def flushCB(self):
@@ -388,9 +390,9 @@ class Program:
388
390
  # This is the program launcher
389
391
  def Main():
390
392
  if (len(sys.argv) > 1):
391
- Program(sys.argv[1]).start()
393
+ Program(sys.argv[1])
392
394
  else:
393
- print('Syntax: easycoder <scriptname> [plugins]')
395
+ Program('-v')
394
396
 
395
397
  if __name__ == '__main__':
396
398
  Main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: easycoder
3
- Version: 250804.1
3
+ Version: 250805.2
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,17 +1,17 @@
1
- easycoder/__init__.py,sha256=iHgzZSAlwcBoeXaxlpDkl-1nyNtJhYM8OIfrv10cPhk,314
1
+ easycoder/__init__.py,sha256=0LLQQjlFBvoJJwFnYo-4f5QJaBoJEPp21e0GWtXygxs,314
2
2
  easycoder/close.png,sha256=3B9ueRNtEu9E4QNmZhdyC4VL6uqKvGmdfeFxIV9aO_Y,9847
3
3
  easycoder/ec_classes.py,sha256=PWPaJuTfaWD4-tgT-2WWOgeFV_jXxlxyKCxvXyylCUU,1824
4
4
  easycoder/ec_compiler.py,sha256=-uuXDbfgFBGXSrr7EneDnnneFOFsU-UuCIpNHsCqY0s,5289
5
5
  easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
6
- easycoder/ec_core.py,sha256=AGjh-jnGb3hHRV2ky_xwlJcTBCFB3EnxWECNZyJto3g,97654
6
+ easycoder/ec_core.py,sha256=CxXPEcDcKOXzoBJACCWO7VR3G_Wnf-d2jWmyMCiZL44,98165
7
7
  easycoder/ec_handler.py,sha256=ohf3xUuWw_Qb5SZnulGtDhvCb11kvWtYfgbQTiOXpIY,2261
8
8
  easycoder/ec_keyboard.py,sha256=q_ALcZ7C5lgwGXQbKaXBsrzr7OyNHvWdv8ZoVKbpoEQ,19420
9
- easycoder/ec_program.py,sha256=SHg8NV9g-DclSWz8pQzgAiElreoYrI1FR1NrZS4_hIA,9968
9
+ easycoder/ec_program.py,sha256=gt9qhz37kBVovh8LJbQEuwcbRvIi7_I9pyVvBGG-Hm4,9980
10
10
  easycoder/ec_pyside.py,sha256=AF00ZgwbbUmKL9ViIsP4xUJ-65di7kf4qDOO0O8G7RY,45350
11
11
  easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
12
12
  easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
13
- easycoder-250804.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
14
- easycoder-250804.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
- easycoder-250804.1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
16
- easycoder-250804.1.dist-info/METADATA,sha256=zGNCB8KZEJPxJl2dIOYcCp1Ow8kj2IGQpplwVRZAx94,6875
17
- easycoder-250804.1.dist-info/RECORD,,
13
+ easycoder-250805.2.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
14
+ easycoder-250805.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
+ easycoder-250805.2.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
16
+ easycoder-250805.2.dist-info/METADATA,sha256=XrZTTrwReTiBmj7Bg2mdAwf6FyEwrsgfUR9SXASBD3I,6875
17
+ easycoder-250805.2.dist-info/RECORD,,