easycoder 250102.1__py2.py3-none-any.whl → 250103.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 +51 -51
- {easycoder-250102.1.dist-info → easycoder-250103.1.dist-info}/METADATA +1 -1
- {easycoder-250102.1.dist-info → easycoder-250103.1.dist-info}/RECORD +7 -7
- {easycoder-250102.1.dist-info → easycoder-250103.1.dist-info}/LICENSE +0 -0
- {easycoder-250102.1.dist-info → easycoder-250103.1.dist-info}/WHEEL +0 -0
- {easycoder-250102.1.dist-info → easycoder-250103.1.dist-info}/entry_points.txt +0 -0
easycoder/__init__.py
CHANGED
easycoder/ec_core.py
CHANGED
|
@@ -2211,20 +2211,59 @@ class Core(Handler):
|
|
|
2211
2211
|
return True if condition.negate else False
|
|
2212
2212
|
return False
|
|
2213
2213
|
|
|
2214
|
-
def
|
|
2215
|
-
|
|
2214
|
+
def c_empty(self, condition):
|
|
2215
|
+
value = self.getRuntimeValue(condition.value1)
|
|
2216
|
+
if value == None:
|
|
2217
|
+
comparison = True
|
|
2218
|
+
else:
|
|
2219
|
+
comparison = len(value) == 0
|
|
2216
2220
|
return not comparison if condition.negate else comparison
|
|
2217
2221
|
|
|
2218
|
-
def
|
|
2219
|
-
|
|
2220
|
-
|
|
2222
|
+
def c_ends(self, condition):
|
|
2223
|
+
value1 = self.getRuntimeValue(condition.value1)
|
|
2224
|
+
value2 = self.getRuntimeValue(condition.value2)
|
|
2225
|
+
return value1.endswith(value2)
|
|
2226
|
+
|
|
2227
|
+
def c_even(self, condition):
|
|
2228
|
+
return self.getRuntimeValue(condition.value1) % 2 == 0
|
|
2229
|
+
|
|
2230
|
+
def c_exists(self, condition):
|
|
2231
|
+
path = self.getRuntimeValue(condition.path)
|
|
2232
|
+
return os.path.exists(path)
|
|
2233
|
+
|
|
2234
|
+
def c_greater(self, condition):
|
|
2235
|
+
comparison = self.program.compare(condition.value1, condition.value2)
|
|
2236
|
+
return comparison <= 0 if condition.negate else comparison > 0
|
|
2237
|
+
|
|
2238
|
+
def c_hasProperty(self, condition):
|
|
2239
|
+
value = self.getRuntimeValue(condition.value1)
|
|
2240
|
+
prop = self.getRuntimeValue(condition.property)
|
|
2241
|
+
try:
|
|
2242
|
+
value[prop]
|
|
2243
|
+
hasProp = True
|
|
2244
|
+
except:
|
|
2245
|
+
hasProp = False
|
|
2246
|
+
return hasProp
|
|
2247
|
+
|
|
2248
|
+
def c_includes(self, condition):
|
|
2249
|
+
value1 = self.getRuntimeValue(condition.value1)
|
|
2250
|
+
value2 = self.getRuntimeValue(condition.value2)
|
|
2251
|
+
return value2 in value1
|
|
2252
|
+
|
|
2253
|
+
def c_is(self, condition):
|
|
2254
|
+
comparison = self.program.compare(condition.value1, condition.value2)
|
|
2255
|
+
return comparison != 0 if condition.negate else comparison == 0
|
|
2256
|
+
|
|
2257
|
+
def c_less(self, condition):
|
|
2258
|
+
comparison = self.program.compare(condition.value1, condition.value2)
|
|
2259
|
+
return comparison >= 0 if condition.negate else comparison < 0
|
|
2221
2260
|
|
|
2222
2261
|
def c_list(self, condition):
|
|
2223
2262
|
comparison = type(self.getRuntimeValue(condition.value1)) is list
|
|
2224
2263
|
return not comparison if condition.negate else comparison
|
|
2225
2264
|
|
|
2226
|
-
def
|
|
2227
|
-
comparison = type(self.getRuntimeValue(condition.value1)) is
|
|
2265
|
+
def c_numeric(self, condition):
|
|
2266
|
+
comparison = type(self.getRuntimeValue(condition.value1)) is int
|
|
2228
2267
|
return not comparison if condition.negate else comparison
|
|
2229
2268
|
|
|
2230
2269
|
def c_none(self, condition):
|
|
@@ -2234,58 +2273,19 @@ class Core(Handler):
|
|
|
2234
2273
|
def c_not(self, condition):
|
|
2235
2274
|
return not self.getRuntimeValue(condition.value1)
|
|
2236
2275
|
|
|
2237
|
-
def
|
|
2238
|
-
|
|
2276
|
+
def c_object(self, condition):
|
|
2277
|
+
comparison = type(self.getRuntimeValue(condition.value1)) is dict
|
|
2278
|
+
return not comparison if condition.negate else comparison
|
|
2239
2279
|
|
|
2240
2280
|
def c_odd(self, condition):
|
|
2241
2281
|
return self.getRuntimeValue(condition.value1) % 2 == 1
|
|
2242
2282
|
|
|
2243
|
-
def c_is(self, condition):
|
|
2244
|
-
comparison = self.program.compare(condition.value1, condition.value2)
|
|
2245
|
-
return comparison != 0 if condition.negate else comparison == 0
|
|
2246
|
-
|
|
2247
|
-
def c_greater(self, condition):
|
|
2248
|
-
comparison = self.program.compare(condition.value1, condition.value2)
|
|
2249
|
-
return comparison <= 0 if condition.negate else comparison > 0
|
|
2250
|
-
|
|
2251
|
-
def c_less(self, condition):
|
|
2252
|
-
comparison = self.program.compare(condition.value1, condition.value2)
|
|
2253
|
-
return comparison >= 0 if condition.negate else comparison < 0
|
|
2254
|
-
|
|
2255
2283
|
def c_starts(self, condition):
|
|
2256
2284
|
value1 = self.getRuntimeValue(condition.value1)
|
|
2257
2285
|
value2 = self.getRuntimeValue(condition.value2)
|
|
2258
2286
|
return value1.startswith(value2)
|
|
2259
2287
|
|
|
2260
|
-
def
|
|
2261
|
-
|
|
2262
|
-
value2 = self.getRuntimeValue(condition.value2)
|
|
2263
|
-
return value1.endswith(value2)
|
|
2264
|
-
|
|
2265
|
-
def c_includes(self, condition):
|
|
2266
|
-
value1 = self.getRuntimeValue(condition.value1)
|
|
2267
|
-
value2 = self.getRuntimeValue(condition.value2)
|
|
2268
|
-
return value2 in value1
|
|
2269
|
-
|
|
2270
|
-
def c_empty(self, condition):
|
|
2271
|
-
value = self.getRuntimeValue(condition.value1)
|
|
2272
|
-
if value == None:
|
|
2273
|
-
comparison = True
|
|
2274
|
-
else:
|
|
2275
|
-
comparison = len(value) == 0
|
|
2288
|
+
def c_string(self, condition):
|
|
2289
|
+
comparison = type(self.getRuntimeValue(condition.value1)) is str
|
|
2276
2290
|
return not comparison if condition.negate else comparison
|
|
2277
|
-
|
|
2278
|
-
def c_exists(self, condition):
|
|
2279
|
-
path = self.getRuntimeValue(condition.path)
|
|
2280
|
-
return os.path.exists(path)
|
|
2281
|
-
|
|
2282
|
-
def c_hasProperty(self, condition):
|
|
2283
|
-
value = self.getRuntimeValue(condition.value1)
|
|
2284
|
-
prop = self.getRuntimeValue(condition.property)
|
|
2285
|
-
try:
|
|
2286
|
-
value[prop]
|
|
2287
|
-
hasProp = True
|
|
2288
|
-
except:
|
|
2289
|
-
hasProp = False
|
|
2290
|
-
return hasProp
|
|
2291
2291
|
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
3
|
+
Version: 250103.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,10 +1,10 @@
|
|
|
1
1
|
easycoder/README.md,sha256=PYqOc_SkIGiFbyCNs90y7JqoqWe4aO1xYIW-6bOnFKU,573
|
|
2
|
-
easycoder/__init__.py,sha256=
|
|
2
|
+
easycoder/__init__.py,sha256=5hieaJUWovLn09r1Tf2I2hBLjfYGXMKuBb6usyd9sYc,283
|
|
3
3
|
easycoder/ec.py,sha256=Nj5PRl8GsKjfGJKq0FOM1a7FeK3cN68CoIFg8lswQEg,221
|
|
4
4
|
easycoder/ec_classes.py,sha256=xnWBNak8oKydkFoxHLlq9wo3lIsB3aMnTDrqbtCfoWo,1512
|
|
5
5
|
easycoder/ec_compiler.py,sha256=2r6Nk7px9UMYqIpYc6dAbYOAFu-CoWPy-iqlsed49Lo,4690
|
|
6
6
|
easycoder/ec_condition.py,sha256=WSbONo4zs2sX1icOVpscZDFSCAEFmTsquoc2RGcLx_k,763
|
|
7
|
-
easycoder/ec_core.py,sha256=
|
|
7
|
+
easycoder/ec_core.py,sha256=1rYUGd5EXpjJkfYnnvJNjvMD_JfTGZRMEV0lLbYrzAU,78939
|
|
8
8
|
easycoder/ec_graphics.py,sha256=o70BdQ-Y3uIo5nheQYwJUmM3gYVerKD9_5arQ8JTP-Y,15556
|
|
9
9
|
easycoder/ec_handler.py,sha256=IJvxcrJJSR53d6DS_8H5qPHKhp9y5-GV4WXAjhZxu_o,2250
|
|
10
10
|
easycoder/ec_program.py,sha256=TUKQo56vURtx_UO7avIJZhz0EeOe2lNxQQz8EOOnCZ4,8685
|
|
@@ -12,8 +12,8 @@ easycoder/ec_renderer.py,sha256=ejVFemHGuFBwGA__6VfZQZeZMnw4Ilvf_y9I34k04LM,7981
|
|
|
12
12
|
easycoder/ec_screenspec.py,sha256=TeXgccfYoE--r7Rf9t9drV1V3fU-p-iBnZwtjHzIh8M,2524
|
|
13
13
|
easycoder/ec_timestamp.py,sha256=_3QFJPzIWZ9Rzk3SQOQJ-gwmvB07pg78k23SPntoZtY,288
|
|
14
14
|
easycoder/ec_value.py,sha256=XIBtGhcCgh1abrzAn-Wy4l_xH_3cTWakMVIiSlBAZjM,2386
|
|
15
|
-
easycoder-
|
|
16
|
-
easycoder-
|
|
17
|
-
easycoder-
|
|
18
|
-
easycoder-
|
|
19
|
-
easycoder-
|
|
15
|
+
easycoder-250103.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
|
|
16
|
+
easycoder-250103.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
17
|
+
easycoder-250103.1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
|
|
18
|
+
easycoder-250103.1.dist-info/METADATA,sha256=6X8NoMG3Px2cLNDqWYxoMfki71O06qYk8qILNM_49VI,5178
|
|
19
|
+
easycoder-250103.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|