easycoder 250622.2__py2.py3-none-any.whl → 250706.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 CHANGED
@@ -9,4 +9,4 @@ from .ec_program import *
9
9
  from .ec_timestamp import *
10
10
  from .ec_value import *
11
11
 
12
- __version__ = "250622.2"
12
+ __version__ = "250706.1"
easycoder/ec_core.py CHANGED
@@ -1546,6 +1546,7 @@ class Core(Handler):
1546
1546
  user = self.getRuntimeValue(command['user'])
1547
1547
  password = self.getRuntimeValue(command['password'])
1548
1548
  ssh = paramiko.SSHClient()
1549
+ target['ssh'] = ssh
1549
1550
  ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
1550
1551
  ssh.connect(host, username=user, password=password)
1551
1552
  target['sftp'] = ssh.open_sftp()
@@ -1940,10 +1941,14 @@ class Core(Handler):
1940
1941
  if keyword == 'module':
1941
1942
  value['type'] = 'module'
1942
1943
  return value
1944
+
1945
+ if keyword == 'ssh':
1946
+ pass
1943
1947
 
1944
- if keyword == 'variable':
1948
+ if keyword in ['ssh', 'variable']:
1945
1949
  value['type'] = 'symbol'
1946
1950
  return value
1951
+
1947
1952
  return None
1948
1953
 
1949
1954
  value['type'] = token
@@ -2535,9 +2540,17 @@ class Core(Handler):
2535
2540
  return value
2536
2541
 
2537
2542
  # This is used by the expression evaluator to get the value of a symbol
2538
- def v_symbol(self, symbolRecord):
2539
- if symbolRecord['keyword'] == 'variable':
2543
+ def v_symbol(self, value):
2544
+ name = value['name']
2545
+ symbolRecord = self.program.getSymbolRecord(name)
2546
+ keyword = symbolRecord['keyword']
2547
+ if keyword == 'variable':
2540
2548
  return self.getSymbolValue(symbolRecord)
2549
+ elif keyword == 'ssh':
2550
+ v = {}
2551
+ v['type'] = 'boolean'
2552
+ v['content'] = True if 'ssh' in symbolRecord else False
2553
+ return v
2541
2554
  else:
2542
2555
  return None
2543
2556
 
@@ -2720,7 +2733,7 @@ class Core(Handler):
2720
2733
  condition.type = 'is'
2721
2734
  condition.value2 = self.getValue()
2722
2735
  return condition
2723
-
2736
+
2724
2737
  if condition.value1:
2725
2738
  # It's a boolean if
2726
2739
  condition.type = 'boolean'
@@ -1,11 +1,12 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: easycoder
3
- Version: 250622.2
3
+ Version: 250706.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>
7
7
  Description-Content-Type: text/markdown
8
8
  Classifier: License :: OSI Approved :: MIT License
9
+ License-File: LICENSE
9
10
  Requires-Dist: pytz
10
11
  Requires-Dist: requests
11
12
  Requires-Dist: psutil
@@ -1,16 +1,16 @@
1
1
  easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
2
- easycoder/__init__.py,sha256=PHW-HNbpCmVm8RMIqa9NnwOztypuuhVv0B_XCqvE5ek,262
2
+ easycoder/__init__.py,sha256=Zq-XYXsV_437d00UR-7ZjY1YyVGTP76aq7miy9ih5NQ,262
3
3
  easycoder/ec_classes.py,sha256=PWPaJuTfaWD4-tgT-2WWOgeFV_jXxlxyKCxvXyylCUU,1824
4
4
  easycoder/ec_compiler.py,sha256=9byLqJZgMHAyFFyD8eGhY77oTsY1GY1aVcVrU4JAbd4,5287
5
5
  easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
6
- easycoder/ec_core.py,sha256=xtZbGC_BovC1wazV44YojUvhow2tojk6vatMV8MubOA,99234
6
+ easycoder/ec_core.py,sha256=VF0ON4HSFgsJdkk5m7qi_dzBVT8R4XoyyXIb5kkkhio,99624
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=-EHV8TBIw5jwlufzYcy8mcPXmfYC82Pf7Ep4_cvbceM,40240
10
10
  easycoder/ec_timestamp.py,sha256=myQnnF-mT31_1dpQKv2VEAu4BCcbypvMdzq7_DUi1xc,277
11
11
  easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
12
- easycoder-250622.2.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
13
- easycoder-250622.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
- easycoder-250622.2.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
15
- easycoder-250622.2.dist-info/METADATA,sha256=Dg1zj_SNi6IasPrU3yLxV8JmLor0PwFluOXD168QoIA,6875
16
- easycoder-250622.2.dist-info/RECORD,,
12
+ easycoder-250706.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
13
+ easycoder-250706.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
+ easycoder-250706.1.dist-info/WHEEL,sha256=Dyt6SBfaasWElUrURkknVFAZDHSTwxg3PaTza7RSbkY,100
15
+ easycoder-250706.1.dist-info/METADATA,sha256=tBTOgrA0Je5whSBvMo0B8ZsyzlZqeMBeJi3Kgd1kriA,6897
16
+ easycoder-250706.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: flit 3.10.1
2
+ Generator: flit 3.12.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any