easycoder 2__py2.py3-none-any.whl → 4__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__ = "2"
12
+ __version__ = "4"
easycoder/ec_program.py CHANGED
@@ -5,10 +5,12 @@ from .ec_classes import Script, Token, FatalError, RuntimeError
5
5
  from .ec_compiler import Compiler
6
6
  from .ec_core import Core
7
7
  import importlib
8
+ from importlib.metadata import version
8
9
 
9
10
  class Program:
10
11
 
11
12
  def __init__(self, argv):
13
+ print(f'EasyCoder version {version('easycoder')}')
12
14
  scriptName = None
13
15
  domains=[Core]
14
16
  if len(argv)>0:
@@ -29,7 +31,7 @@ class Program:
29
31
  print('No script supplied')
30
32
  exit();
31
33
 
32
- print('Domains:',domains)
34
+ # print('Domains:',domains)
33
35
  f = open(scriptName, 'r')
34
36
  source = f.read()
35
37
  f.close()
@@ -300,3 +302,10 @@ class Program:
300
302
  if v1 < v2:
301
303
  return -1
302
304
  return 0
305
+
306
+ # This is the program launcher
307
+ def Main():
308
+ if (len(sys.argv) > 1):
309
+ Program(sys.argv[1:])
310
+ else:
311
+ print('Syntax: easycoder <scriptname> [plugins]')
@@ -1,10 +1,11 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: easycoder
3
- Version: 2
3
+ Version: 4
4
4
  Summary: EasyCoder for Python
5
5
  Author-email: Graham Trott <gtanyware@gmail.com>
6
6
  Description-Content-Type: text/markdown
7
7
  Classifier: License :: OSI Approved :: MIT License
8
+ Requires-Dist: pytz
8
9
  Project-URL: Home, https://github.com/easycoder
9
10
 
10
11
  # Introduction
@@ -1,13 +1,14 @@
1
- easycoder/__init__.py,sha256=-U7N3XQAWI7gunwvT8AW_yaG_Qz4ocPwZhCo-ME03Jk,255
1
+ easycoder/__init__.py,sha256=dOthEUbaFHi3Q78a4SIjHVPY6ggqf38yhio47M-NH9A,255
2
2
  easycoder/ec_classes.py,sha256=onBKF6Lj8BZKNuJKacx4HyhOrVLXsoHdzl6RnMf77uM,1413
3
3
  easycoder/ec_compiler.py,sha256=ByWwWA4GTzDX1kljgNbBwzfvvUuR34FRQSEpRVtRo5s,4670
4
4
  easycoder/ec_condition.py,sha256=s7xKM3ZeOOiSgZv16RnWznAikHZaJRp1UHwrliebpUE,748
5
5
  easycoder/ec_core.py,sha256=_PnwCJcxa7vD5MouuM9COTAC9RnGvzSZ9022Tlqzh5M,74591
6
6
  easycoder/ec_handler.py,sha256=WDDIz0awD3vSQZ149rgbUWsClt6zXqED8ByXQJ5p1Ds,2200
7
- easycoder/ec_program.py,sha256=MTS4oqeDkBtKfD7MV5_sFxoSTTacn2dFnWQCKrnhbBA,7413
7
+ easycoder/ec_program.py,sha256=Z_bR-iE5tieWBTMjUrtnQ0iwkXAStvV3vsxTzOFXOzs,7658
8
8
  easycoder/ec_timestamp.py,sha256=_3QFJPzIWZ9Rzk3SQOQJ-gwmvB07pg78k23SPntoZtY,288
9
9
  easycoder/ec_value.py,sha256=GnHkWSfcB2InGeLj4T8x_H8U9bvbkj9lF4klEUylt38,2371
10
- easycoder-2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
- easycoder-2.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
12
- easycoder-2.dist-info/METADATA,sha256=yk2O0ghhFmRWGWXEUBDZlAiWx61uy6Q2E2O3O5rlVhQ,2944
13
- easycoder-2.dist-info/RECORD,,
10
+ easycoder-4.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
11
+ easycoder-4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
12
+ easycoder-4.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
13
+ easycoder-4.dist-info/METADATA,sha256=0KeuF7X7-u0rp7gvTN3MUFJwk_r9VxUZ5mW8Pp9z6is,2964
14
+ easycoder-4.dist-info/RECORD,,
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ easycoder=easycoder:Main
3
+
File without changes
File without changes