scratch-syntax 0.5.0__tar.gz → 0.6.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.5.0
3
+ Version: 0.6.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
@@ -16,7 +16,7 @@ Dynamic: license-file
16
16
 
17
17
  ## This is a custom Python library designed make python syntax more like scratch.
18
18
 
19
- # Installation
19
+ ## Instalization
20
20
 
21
21
  ```bash
22
22
 
@@ -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,36 @@ 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 function!!!
59
+ * Now needs the lambda function. etc:
60
+ ```bash
61
+
62
+ repeat(lambda: say("hello!"), 5)
63
+
64
+ ```
65
+
66
+ also btw dont forget to put from scratch_syntax import * so the functions run correctly as is
67
+
56
68
  # All Functions
57
69
 
58
70
  ```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()
71
+ 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()
72
+
60
73
  ```
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## This is a custom Python library designed make python syntax more like scratch.
4
4
 
5
- # Installation
5
+ ## Instalization
6
6
 
7
7
  ```bash
8
8
 
@@ -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,36 @@ 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 function!!!
45
+ * Now needs the lambda function. etc:
46
+ ```bash
47
+
48
+ repeat(lambda: say("hello!"), 5)
49
+
50
+ ```
51
+
52
+ also btw dont forget to put from scratch_syntax import * so the functions run correctly as is
53
+
42
54
  # All Functions
43
55
 
44
56
  ```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()
57
+ 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()
58
+
46
59
  ```
@@ -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.0"
8
8
  authors = [
9
9
  { name="Cade", email="cadey.matignas@gmail.com" },
10
10
  ]
@@ -63,4 +63,19 @@ def wait_until(varibab, condit):
63
63
  sleep(1)
64
64
 
65
65
 
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 not condition:
78
+ actionon()
79
+
80
+
66
81
  # 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.5.0
3
+ Version: 0.6.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
@@ -16,7 +16,7 @@ Dynamic: license-file
16
16
 
17
17
  ## This is a custom Python library designed make python syntax more like scratch.
18
18
 
19
- # Installation
19
+ ## Instalization
20
20
 
21
21
  ```bash
22
22
 
@@ -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,36 @@ 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 function!!!
59
+ * Now needs the lambda function. etc:
60
+ ```bash
61
+
62
+ repeat(lambda: say("hello!"), 5)
63
+
64
+ ```
65
+
66
+ also btw dont forget to put from scratch_syntax import * so the functions run correctly as is
67
+
56
68
  # All Functions
57
69
 
58
70
  ```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()
71
+ 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()
72
+
60
73
  ```
@@ -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