scratch-syntax 0.4.0__tar.gz → 0.5.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scratch_syntax
3
- Version: 0.4.0
3
+ Version: 0.5.0
4
4
  Summary: A syntax library designed to help scratch users transition to python
5
5
  Author-email: Cade <cadey.matignas@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/cadeymatignas-source/scratch_syntax
@@ -50,10 +50,11 @@ pip install --upgrade scratch_syntax
50
50
 
51
51
  I also added Github Respitory
52
52
 
53
-
53
+ # Update 0.5.0
54
+ * Added new wait_until() function
54
55
 
55
56
  # All Functions
56
57
 
57
58
  ```bash
58
- say(), ask(), wait(), pick_random_number_from(), stop_all(), add_to_list(), insert_in_list(), delete_from_list(), delete_all_from_list(), replace_from_list(), answer(), say_for_seconds()
59
+ say(), ask(), wait(), pick_random_number_from(), stop_all(), add_to_list(), insert_in_list(), delete_from_list(), delete_all_from_list(), replace_from_list(), answer(), say_for_seconds(), wait_until()
59
60
  ```
@@ -36,10 +36,11 @@ pip install --upgrade scratch_syntax
36
36
 
37
37
  I also added Github Respitory
38
38
 
39
-
39
+ # Update 0.5.0
40
+ * Added new wait_until() function
40
41
 
41
42
  # All Functions
42
43
 
43
44
  ```bash
44
- say(), ask(), wait(), pick_random_number_from(), stop_all(), add_to_list(), insert_in_list(), delete_from_list(), delete_all_from_list(), replace_from_list(), answer(), say_for_seconds()
45
+ say(), ask(), wait(), pick_random_number_from(), stop_all(), add_to_list(), insert_in_list(), delete_from_list(), delete_all_from_list(), replace_from_list(), answer(), say_for_seconds(), wait_until()
45
46
  ```
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "scratch_syntax"
7
- version = "0.4.0"
7
+ version = "0.5.0"
8
8
  authors = [
9
9
  { name="Cade", email="cadey.matignas@gmail.com" },
10
10
  ]
@@ -1,4 +1,7 @@
1
1
  import sys
2
+
3
+ __lazy_modules__ = ["random", "time"]
4
+
2
5
  from random import randint
3
6
  from time import sleep
4
7
 
@@ -55,4 +58,9 @@ def replace_in_list(listname, index, item):
55
58
  listname[index] = item
56
59
 
57
60
 
61
+ def wait_until(varibab, condit):
62
+ while varibab != condit:
63
+ sleep(1)
64
+
65
+
58
66
  # For anyone reading the code, I skipped the forever and repeat functions not because I wanted to but because it doesnt work: Cade
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scratch_syntax
3
- Version: 0.4.0
3
+ Version: 0.5.0
4
4
  Summary: A syntax library designed to help scratch users transition to python
5
5
  Author-email: Cade <cadey.matignas@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/cadeymatignas-source/scratch_syntax
@@ -50,10 +50,11 @@ pip install --upgrade scratch_syntax
50
50
 
51
51
  I also added Github Respitory
52
52
 
53
-
53
+ # Update 0.5.0
54
+ * Added new wait_until() function
54
55
 
55
56
  # All Functions
56
57
 
57
58
  ```bash
58
- say(), ask(), wait(), pick_random_number_from(), stop_all(), add_to_list(), insert_in_list(), delete_from_list(), delete_all_from_list(), replace_from_list(), answer(), say_for_seconds()
59
+ say(), ask(), wait(), pick_random_number_from(), stop_all(), add_to_list(), insert_in_list(), delete_from_list(), delete_all_from_list(), replace_from_list(), answer(), say_for_seconds(), wait_until()
59
60
  ```
File without changes
File without changes