scratch-syntax 0.5.0__tar.gz → 0.6.1__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.5.0
3
+ Version: 0.6.1
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
@@ -26,7 +26,7 @@ pip install scratch_syntax
26
26
 
27
27
  you can do anything with this library, mod it, break it, anything, but don't sue me
28
28
 
29
- # Update 0.2.0 notes
29
+ ## Update 0.2.0 notes
30
30
 
31
31
  I removed the forever and repeat functions because they didnt work and added the stop_all() function. You can use **for _ in range():** for repeat and **while True:** for forever
32
32
 
@@ -38,23 +38,38 @@ pip install --upgrade scratch_syntax
38
38
 
39
39
  ```
40
40
 
41
- # Update 0.3.0 notes
41
+ ## Update 0.3.0 notes
42
+ * I added the list functions
42
43
 
43
- ### I added the list functions
44
44
 
45
45
 
46
+ ## Update 0.4.0 notes
46
47
 
47
- # Update 0.4.0 notes
48
+ ### Added new say_for_seconds() function
48
49
 
49
- ## Added new say_for_seconds() function
50
+ * I also added Github Respitory
50
51
 
51
- I also added Github Respitory
52
-
53
- # Update 0.5.0
52
+ ## Update 0.5.0
54
53
  * Added new wait_until() function
55
54
 
55
+
56
+ ## Update 0.6.0. ReRun's UPDATE!!!
57
+ * The return of classic repeats... in a different way!!!
58
+ * Added new repeat_until() function!!!
59
+ * Now needs the lambda function. etc:
60
+ ```bash
61
+
62
+ repeat(lambda: say("hello!"), 5)
63
+ forever(lambda: say("hiya!"))
64
+ repeat_until(lambda: say("do you like this?"), condition())
65
+
66
+ ```
67
+
68
+ Also btw don't forget to put from scratch_syntax import * so the functions run correctly as is
69
+
56
70
  # All Functions
57
71
 
58
72
  ```bash
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()
73
+ 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(), repeat(), forever(), repeat_until()
74
+
60
75
  ```
@@ -12,7 +12,7 @@ pip install scratch_syntax
12
12
 
13
13
  you can do anything with this library, mod it, break it, anything, but don't sue me
14
14
 
15
- # Update 0.2.0 notes
15
+ ## Update 0.2.0 notes
16
16
 
17
17
  I removed the forever and repeat functions because they didnt work and added the stop_all() function. You can use **for _ in range():** for repeat and **while True:** for forever
18
18
 
@@ -24,23 +24,38 @@ pip install --upgrade scratch_syntax
24
24
 
25
25
  ```
26
26
 
27
- # Update 0.3.0 notes
27
+ ## Update 0.3.0 notes
28
+ * I added the list functions
28
29
 
29
- ### I added the list functions
30
30
 
31
31
 
32
+ ## Update 0.4.0 notes
32
33
 
33
- # Update 0.4.0 notes
34
+ ### Added new say_for_seconds() function
34
35
 
35
- ## Added new say_for_seconds() function
36
+ * I also added Github Respitory
36
37
 
37
- I also added Github Respitory
38
-
39
- # Update 0.5.0
38
+ ## Update 0.5.0
40
39
  * Added new wait_until() function
41
40
 
41
+
42
+ ## Update 0.6.0. ReRun's UPDATE!!!
43
+ * The return of classic repeats... in a different way!!!
44
+ * Added new repeat_until() function!!!
45
+ * Now needs the lambda function. etc:
46
+ ```bash
47
+
48
+ repeat(lambda: say("hello!"), 5)
49
+ forever(lambda: say("hiya!"))
50
+ repeat_until(lambda: say("do you like this?"), condition())
51
+
52
+ ```
53
+
54
+ Also btw don't forget to put from scratch_syntax import * so the functions run correctly as is
55
+
42
56
  # All Functions
43
57
 
44
58
  ```bash
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()
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(), repeat(), forever(), repeat_until()
60
+
46
61
  ```
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "scratch_syntax"
7
- version = "0.5.0"
7
+ version = "0.6.1"
8
8
  authors = [
9
9
  { name="Cade", email="cadey.matignas@gmail.com" },
10
10
  ]
@@ -63,4 +63,18 @@ def wait_until(varibab, condit):
63
63
  sleep(1)
64
64
 
65
65
 
66
- # For anyone reading the code, I skipped the forever and repeat functions not because I wanted to but because it doesnt work: Cade
66
+ def repeat(action, timy):
67
+ for _ in range(timy):
68
+ action()
69
+
70
+
71
+ def forever(actiono):
72
+ while True:
73
+ actiono()
74
+
75
+
76
+ def repeat_until(actionon, condition):
77
+ while True:
78
+ actionon()
79
+ if condition():
80
+ break
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scratch_syntax
3
- Version: 0.5.0
3
+ Version: 0.6.1
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
@@ -26,7 +26,7 @@ pip install scratch_syntax
26
26
 
27
27
  you can do anything with this library, mod it, break it, anything, but don't sue me
28
28
 
29
- # Update 0.2.0 notes
29
+ ## Update 0.2.0 notes
30
30
 
31
31
  I removed the forever and repeat functions because they didnt work and added the stop_all() function. You can use **for _ in range():** for repeat and **while True:** for forever
32
32
 
@@ -38,23 +38,38 @@ pip install --upgrade scratch_syntax
38
38
 
39
39
  ```
40
40
 
41
- # Update 0.3.0 notes
41
+ ## Update 0.3.0 notes
42
+ * I added the list functions
42
43
 
43
- ### I added the list functions
44
44
 
45
45
 
46
+ ## Update 0.4.0 notes
46
47
 
47
- # Update 0.4.0 notes
48
+ ### Added new say_for_seconds() function
48
49
 
49
- ## Added new say_for_seconds() function
50
+ * I also added Github Respitory
50
51
 
51
- I also added Github Respitory
52
-
53
- # Update 0.5.0
52
+ ## Update 0.5.0
54
53
  * Added new wait_until() function
55
54
 
55
+
56
+ ## Update 0.6.0. ReRun's UPDATE!!!
57
+ * The return of classic repeats... in a different way!!!
58
+ * Added new repeat_until() function!!!
59
+ * Now needs the lambda function. etc:
60
+ ```bash
61
+
62
+ repeat(lambda: say("hello!"), 5)
63
+ forever(lambda: say("hiya!"))
64
+ repeat_until(lambda: say("do you like this?"), condition())
65
+
66
+ ```
67
+
68
+ Also btw don't forget to put from scratch_syntax import * so the functions run correctly as is
69
+
56
70
  # All Functions
57
71
 
58
72
  ```bash
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()
73
+ 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(), repeat(), forever(), repeat_until()
74
+
60
75
  ```
@@ -0,0 +1,9 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/scratch_syntax/__init__.py
5
+ src/scratch_syntax/core.py
6
+ src/scratch_syntax.egg-info/PKG-INFO
7
+ src/scratch_syntax.egg-info/SOURCES.txt
8
+ src/scratch_syntax.egg-info/dependency_links.txt
9
+ src/scratch_syntax.egg-info/top_level.txt
@@ -1,9 +0,0 @@
1
- LICENSE
2
- README.md
3
- pyproject.toml
4
- scratch_syntax/__init__.py
5
- scratch_syntax/core.py
6
- scratch_syntax.egg-info/PKG-INFO
7
- scratch_syntax.egg-info/SOURCES.txt
8
- scratch_syntax.egg-info/dependency_links.txt
9
- scratch_syntax.egg-info/top_level.txt
File without changes
File without changes