scratch-syntax 0.4.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.
- {scratch_syntax-0.4.0 → scratch_syntax-0.6.0}/PKG-INFO +23 -9
- scratch_syntax-0.6.0/README.md +59 -0
- {scratch_syntax-0.4.0 → scratch_syntax-0.6.0}/pyproject.toml +1 -1
- {scratch_syntax-0.4.0 → scratch_syntax-0.6.0/src}/scratch_syntax/core.py +23 -0
- {scratch_syntax-0.4.0 → scratch_syntax-0.6.0/src}/scratch_syntax.egg-info/PKG-INFO +23 -9
- scratch_syntax-0.6.0/src/scratch_syntax.egg-info/SOURCES.txt +9 -0
- scratch_syntax-0.4.0/README.md +0 -45
- scratch_syntax-0.4.0/scratch_syntax.egg-info/SOURCES.txt +0 -9
- {scratch_syntax-0.4.0 → scratch_syntax-0.6.0}/LICENSE +0 -0
- {scratch_syntax-0.4.0 → scratch_syntax-0.6.0}/setup.cfg +0 -0
- {scratch_syntax-0.4.0 → scratch_syntax-0.6.0/src}/scratch_syntax/__init__.py +0 -0
- {scratch_syntax-0.4.0 → scratch_syntax-0.6.0/src}/scratch_syntax.egg-info/dependency_links.txt +0 -0
- {scratch_syntax-0.4.0 → scratch_syntax-0.6.0/src}/scratch_syntax.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scratch_syntax
|
|
3
|
-
Version: 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
|
-
|
|
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
|
-
|
|
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,22 +38,36 @@ pip install --upgrade scratch_syntax
|
|
|
38
38
|
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
|
|
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
|
-
|
|
48
|
+
### Added new say_for_seconds() function
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
* I also added Github Respitory
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
## Update 0.5.0
|
|
53
|
+
* Added new wait_until() function
|
|
52
54
|
|
|
53
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
|
|
54
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
|
+
|
|
55
68
|
# All Functions
|
|
56
69
|
|
|
57
70
|
```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()
|
|
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
|
+
|
|
59
73
|
```
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Scratch_Syntax
|
|
2
|
+
|
|
3
|
+
## This is a custom Python library designed make python syntax more like scratch.
|
|
4
|
+
|
|
5
|
+
## Instalization
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
|
|
9
|
+
pip install scratch_syntax
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
you can do anything with this library, mod it, break it, anything, but don't sue me
|
|
14
|
+
|
|
15
|
+
## Update 0.2.0 notes
|
|
16
|
+
|
|
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
|
+
|
|
19
|
+
# Updating
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
|
|
23
|
+
pip install --upgrade scratch_syntax
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Update 0.3.0 notes
|
|
28
|
+
* I added the list functions
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## Update 0.4.0 notes
|
|
33
|
+
|
|
34
|
+
### Added new say_for_seconds() function
|
|
35
|
+
|
|
36
|
+
* I also added Github Respitory
|
|
37
|
+
|
|
38
|
+
## Update 0.5.0
|
|
39
|
+
* Added new wait_until() function
|
|
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
|
+
|
|
54
|
+
# All Functions
|
|
55
|
+
|
|
56
|
+
```bash
|
|
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
|
+
|
|
59
|
+
```
|
|
@@ -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,24 @@ 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
|
+
|
|
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
|
+
|
|
58
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.
|
|
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
|
-
|
|
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
|
-
|
|
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,22 +38,36 @@ pip install --upgrade scratch_syntax
|
|
|
38
38
|
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
|
|
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
|
-
|
|
48
|
+
### Added new say_for_seconds() function
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
* I also added Github Respitory
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
## Update 0.5.0
|
|
53
|
+
* Added new wait_until() function
|
|
52
54
|
|
|
53
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
|
|
54
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
|
+
|
|
55
68
|
# All Functions
|
|
56
69
|
|
|
57
70
|
```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()
|
|
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
|
+
|
|
59
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
|
scratch_syntax-0.4.0/README.md
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# Scratch_Syntax
|
|
2
|
-
|
|
3
|
-
## This is a custom Python library designed make python syntax more like scratch.
|
|
4
|
-
|
|
5
|
-
# Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
|
|
9
|
-
pip install scratch_syntax
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
you can do anything with this library, mod it, break it, anything, but don't sue me
|
|
14
|
-
|
|
15
|
-
# Update 0.2.0 notes
|
|
16
|
-
|
|
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
|
-
|
|
19
|
-
# Updating
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
|
|
23
|
-
pip install --upgrade scratch_syntax
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
# Update 0.3.0 notes
|
|
28
|
-
|
|
29
|
-
### I added the list functions
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# Update 0.4.0 notes
|
|
34
|
-
|
|
35
|
-
## Added new say_for_seconds() function
|
|
36
|
-
|
|
37
|
-
I also added Github Respitory
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
# All Functions
|
|
42
|
-
|
|
43
|
-
```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
|
-
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scratch_syntax-0.4.0 → scratch_syntax-0.6.0/src}/scratch_syntax.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|