scratch-syntax 0.7.3__tar.gz → 0.7.4__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.7.3
3
+ Version: 0.7.4
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
@@ -20,72 +20,73 @@ Dynamic: license-file
20
20
  # Installation
21
21
 
22
22
  ```bash
23
-
24
23
  pip install scratch_syntax
25
-
26
24
  ```
27
25
 
28
26
  you can do anything with this library, mod it, break it, anything, but don't sue me
29
27
 
30
28
  ## Update 0.2.0 notes
31
29
 
32
- 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
30
+ 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
33
31
 
34
32
  # Updating
35
33
 
36
34
  ```bash
37
-
38
35
  pip install --upgrade scratch_syntax
39
-
40
36
  ```
41
37
 
42
38
  ## Update 0.3.0 notes
43
- * I added the list functions
44
-
45
39
 
40
+ - I added the list functions
46
41
 
47
42
  ## Update 0.4.0 notes
48
43
 
49
44
  ### Added new say_for_seconds() function
50
45
 
51
- * I also added Github Respitory
46
+ - I also added Github Respitory
52
47
 
53
48
  ## Update 0.5.0
54
- * Added new wait_until() function
55
49
 
50
+ - Added new wait_until() function
56
51
 
57
- ## Update 0.6.0. ReRun's UPDATE!!!
58
- * The return of classic repeats... in a different way!!!
59
- * Added new repeat_until() function!!!
60
- * Now needs the lambda function. etc:
61
- ```bash
52
+ ## Update 0.6.0\. ReRun's UPDATE!!!
62
53
 
63
- repeat(lambda: say("hello!"), 5)
64
- forever(lambda: say("hiya!"))
65
- repeat_until(lambda: say("do you like this?"), lambda: condition())
54
+ - The return of classic repeats... in a different way!!!
55
+ - Added new repeat_until() function!!!
56
+ - Now needs the lambda function. etc:
66
57
 
67
- ```
58
+ ```python
59
+ repeat(lambda: say("hello!"), 5)
60
+ forever(lambda: say("hiya!"))
61
+ repeat_until(lambda: say("do you like this?"), lambda: condition())
62
+ ```
68
63
 
69
64
  Also btw don't forget to put from scratch_syntax import * so the functions run correctly as is
70
65
 
71
66
  ## Update 0.7.0 notes. Keyboard update!!!
72
- * Added keyboard function (when_key_pressed())!!!
67
+
68
+ - Added keyboard function (when_key_pressed())!!!
73
69
 
74
70
  ## Update 0.7.2 note:
75
- * I changed the wait_until function a bit so now it goes ```wait_until(condition) ``` instead of ```wait_until(action, condition)```
71
+
72
+ - I changed the wait_until function a bit so now it goes `wait_until(condition)` instead of `wait_until(action, condition)`
76
73
 
77
74
  ## Update 0.7.3:
78
- * Made the ```when_key_pressed()``` and ```wait_until()``` functions faster
79
75
 
76
+ - Made the `when_key_pressed()` and `wait_until()` functions faster
77
+
78
+ ## UPDATE 0.7.4: minor fixes
79
+
80
+ - Fixed the wait_until a bitl
80
81
 
81
-
82
- # All Functions
82
+ ## All Functions
83
83
 
84
84
  ```bash
85
85
  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(), when_key_pressed()
86
-
87
86
  ```
87
+
88
88
  Also heres an example code
89
+
89
90
  ```python
90
91
  from scratch_syntax import *
91
92
 
@@ -94,11 +95,11 @@ ask("hmm what do you think? answer yes please ")
94
95
  wait_until(answer() == "yes")
95
96
  say("hahaha no way you said it!!!")
96
97
  repeat_until(
97
- lambda: (
98
- say_for_seconds("hello guys!", 1),
99
- ask("stop running?"),
100
- ),
101
- lambda: answer() == "yes",
98
+ lambda: (
99
+ say_for_seconds("hello guys!", 1),
100
+ ask("stop running?"),
101
+ ),
102
+ lambda: answer() == "yes",
102
103
  )
103
104
  say("done!")
104
105
  say("now it is time for us to part!")
@@ -5,72 +5,73 @@
5
5
  # Installation
6
6
 
7
7
  ```bash
8
-
9
8
  pip install scratch_syntax
10
-
11
9
  ```
12
10
 
13
11
  you can do anything with this library, mod it, break it, anything, but don't sue me
14
12
 
15
13
  ## Update 0.2.0 notes
16
14
 
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
15
+ 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
16
 
19
17
  # Updating
20
18
 
21
19
  ```bash
22
-
23
20
  pip install --upgrade scratch_syntax
24
-
25
21
  ```
26
22
 
27
23
  ## Update 0.3.0 notes
28
- * I added the list functions
29
-
30
24
 
25
+ - I added the list functions
31
26
 
32
27
  ## Update 0.4.0 notes
33
28
 
34
29
  ### Added new say_for_seconds() function
35
30
 
36
- * I also added Github Respitory
31
+ - I also added Github Respitory
37
32
 
38
33
  ## Update 0.5.0
39
- * Added new wait_until() function
40
34
 
35
+ - Added new wait_until() function
41
36
 
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
37
+ ## Update 0.6.0\. ReRun's UPDATE!!!
47
38
 
48
- repeat(lambda: say("hello!"), 5)
49
- forever(lambda: say("hiya!"))
50
- repeat_until(lambda: say("do you like this?"), lambda: condition())
39
+ - The return of classic repeats... in a different way!!!
40
+ - Added new repeat_until() function!!!
41
+ - Now needs the lambda function. etc:
51
42
 
52
- ```
43
+ ```python
44
+ repeat(lambda: say("hello!"), 5)
45
+ forever(lambda: say("hiya!"))
46
+ repeat_until(lambda: say("do you like this?"), lambda: condition())
47
+ ```
53
48
 
54
49
  Also btw don't forget to put from scratch_syntax import * so the functions run correctly as is
55
50
 
56
51
  ## Update 0.7.0 notes. Keyboard update!!!
57
- * Added keyboard function (when_key_pressed())!!!
52
+
53
+ - Added keyboard function (when_key_pressed())!!!
58
54
 
59
55
  ## Update 0.7.2 note:
60
- * I changed the wait_until function a bit so now it goes ```wait_until(condition) ``` instead of ```wait_until(action, condition)```
56
+
57
+ - I changed the wait_until function a bit so now it goes `wait_until(condition)` instead of `wait_until(action, condition)`
61
58
 
62
59
  ## Update 0.7.3:
63
- * Made the ```when_key_pressed()``` and ```wait_until()``` functions faster
64
60
 
61
+ - Made the `when_key_pressed()` and `wait_until()` functions faster
65
62
 
66
-
67
- # All Functions
63
+ ## UPDATE 0.7.4: minor fixes
64
+
65
+ - Fixed the wait_until a bitl
66
+
67
+ ## All Functions
68
68
 
69
69
  ```bash
70
70
  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(), when_key_pressed()
71
-
72
71
  ```
72
+
73
73
  Also heres an example code
74
+
74
75
  ```python
75
76
  from scratch_syntax import *
76
77
 
@@ -79,15 +80,15 @@ ask("hmm what do you think? answer yes please ")
79
80
  wait_until(answer() == "yes")
80
81
  say("hahaha no way you said it!!!")
81
82
  repeat_until(
82
- lambda: (
83
- say_for_seconds("hello guys!", 1),
84
- ask("stop running?"),
85
- ),
86
- lambda: answer() == "yes",
83
+ lambda: (
84
+ say_for_seconds("hello guys!", 1),
85
+ ask("stop running?"),
86
+ ),
87
+ lambda: answer() == "yes",
87
88
  )
88
89
  say("done!")
89
90
  say("now it is time for us to part!")
90
91
  repeat_until(lambda: ask("would you like to leave?"), lambda: answer() == "yes")
91
92
  wait(1)
92
93
  stop_all()
93
- ```
94
+ ```
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "scratch_syntax"
7
- version = "0.7.3"
7
+ version = "0.7.4"
8
8
  authors = [
9
9
  { name="Cade", email="cadey.matignas@gmail.com" },
10
10
  ]
@@ -65,7 +65,7 @@ def replace_in_list(listname, index, item):
65
65
 
66
66
 
67
67
  def wait_until(condit):
68
- while not condit:
68
+ while not condit():
69
69
  sleep(0.01)
70
70
 
71
71
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scratch_syntax
3
- Version: 0.7.3
3
+ Version: 0.7.4
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
@@ -20,72 +20,73 @@ Dynamic: license-file
20
20
  # Installation
21
21
 
22
22
  ```bash
23
-
24
23
  pip install scratch_syntax
25
-
26
24
  ```
27
25
 
28
26
  you can do anything with this library, mod it, break it, anything, but don't sue me
29
27
 
30
28
  ## Update 0.2.0 notes
31
29
 
32
- 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
30
+ 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
33
31
 
34
32
  # Updating
35
33
 
36
34
  ```bash
37
-
38
35
  pip install --upgrade scratch_syntax
39
-
40
36
  ```
41
37
 
42
38
  ## Update 0.3.0 notes
43
- * I added the list functions
44
-
45
39
 
40
+ - I added the list functions
46
41
 
47
42
  ## Update 0.4.0 notes
48
43
 
49
44
  ### Added new say_for_seconds() function
50
45
 
51
- * I also added Github Respitory
46
+ - I also added Github Respitory
52
47
 
53
48
  ## Update 0.5.0
54
- * Added new wait_until() function
55
49
 
50
+ - Added new wait_until() function
56
51
 
57
- ## Update 0.6.0. ReRun's UPDATE!!!
58
- * The return of classic repeats... in a different way!!!
59
- * Added new repeat_until() function!!!
60
- * Now needs the lambda function. etc:
61
- ```bash
52
+ ## Update 0.6.0\. ReRun's UPDATE!!!
62
53
 
63
- repeat(lambda: say("hello!"), 5)
64
- forever(lambda: say("hiya!"))
65
- repeat_until(lambda: say("do you like this?"), lambda: condition())
54
+ - The return of classic repeats... in a different way!!!
55
+ - Added new repeat_until() function!!!
56
+ - Now needs the lambda function. etc:
66
57
 
67
- ```
58
+ ```python
59
+ repeat(lambda: say("hello!"), 5)
60
+ forever(lambda: say("hiya!"))
61
+ repeat_until(lambda: say("do you like this?"), lambda: condition())
62
+ ```
68
63
 
69
64
  Also btw don't forget to put from scratch_syntax import * so the functions run correctly as is
70
65
 
71
66
  ## Update 0.7.0 notes. Keyboard update!!!
72
- * Added keyboard function (when_key_pressed())!!!
67
+
68
+ - Added keyboard function (when_key_pressed())!!!
73
69
 
74
70
  ## Update 0.7.2 note:
75
- * I changed the wait_until function a bit so now it goes ```wait_until(condition) ``` instead of ```wait_until(action, condition)```
71
+
72
+ - I changed the wait_until function a bit so now it goes `wait_until(condition)` instead of `wait_until(action, condition)`
76
73
 
77
74
  ## Update 0.7.3:
78
- * Made the ```when_key_pressed()``` and ```wait_until()``` functions faster
79
75
 
76
+ - Made the `when_key_pressed()` and `wait_until()` functions faster
77
+
78
+ ## UPDATE 0.7.4: minor fixes
79
+
80
+ - Fixed the wait_until a bitl
80
81
 
81
-
82
- # All Functions
82
+ ## All Functions
83
83
 
84
84
  ```bash
85
85
  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(), when_key_pressed()
86
-
87
86
  ```
87
+
88
88
  Also heres an example code
89
+
89
90
  ```python
90
91
  from scratch_syntax import *
91
92
 
@@ -94,11 +95,11 @@ ask("hmm what do you think? answer yes please ")
94
95
  wait_until(answer() == "yes")
95
96
  say("hahaha no way you said it!!!")
96
97
  repeat_until(
97
- lambda: (
98
- say_for_seconds("hello guys!", 1),
99
- ask("stop running?"),
100
- ),
101
- lambda: answer() == "yes",
98
+ lambda: (
99
+ say_for_seconds("hello guys!", 1),
100
+ ask("stop running?"),
101
+ ),
102
+ lambda: answer() == "yes",
102
103
  )
103
104
  say("done!")
104
105
  say("now it is time for us to part!")
File without changes
File without changes