scratch-syntax 0.3.0__tar.gz → 0.4.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.3.0 → scratch_syntax-0.4.0}/PKG-INFO +18 -8
- {scratch_syntax-0.3.0 → scratch_syntax-0.4.0}/README.md +16 -7
- {scratch_syntax-0.3.0 → scratch_syntax-0.4.0}/pyproject.toml +3 -1
- {scratch_syntax-0.3.0 → scratch_syntax-0.4.0}/scratch_syntax/core.py +13 -5
- {scratch_syntax-0.3.0 → scratch_syntax-0.4.0}/scratch_syntax.egg-info/PKG-INFO +18 -8
- {scratch_syntax-0.3.0 → scratch_syntax-0.4.0}/LICENSE +0 -0
- {scratch_syntax-0.3.0 → scratch_syntax-0.4.0}/scratch_syntax/__init__.py +0 -0
- {scratch_syntax-0.3.0 → scratch_syntax-0.4.0}/scratch_syntax.egg-info/SOURCES.txt +0 -0
- {scratch_syntax-0.3.0 → scratch_syntax-0.4.0}/scratch_syntax.egg-info/dependency_links.txt +0 -0
- {scratch_syntax-0.3.0 → scratch_syntax-0.4.0}/scratch_syntax.egg-info/top_level.txt +0 -0
- {scratch_syntax-0.3.0 → scratch_syntax-0.4.0}/setup.cfg +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scratch_syntax
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.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
|
+
Project-URL: Homepage, https://github.com/cadeymatignas-source/scratch_syntax
|
|
6
7
|
Classifier: Programming Language :: Python :: 3
|
|
7
8
|
Classifier: License :: OSI Approved :: MIT License
|
|
8
9
|
Classifier: Operating System :: OS Independent
|
|
@@ -13,12 +14,8 @@ Dynamic: license-file
|
|
|
13
14
|
|
|
14
15
|
# Scratch_Syntax
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
17
|
## This is a custom Python library designed make python syntax more like scratch.
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
19
|
# Installation
|
|
23
20
|
|
|
24
21
|
```bash
|
|
@@ -30,7 +27,8 @@ pip install scratch_syntax
|
|
|
30
27
|
you can do anything with this library, mod it, break it, anything, but don't sue me
|
|
31
28
|
|
|
32
29
|
# Update 0.2.0 notes
|
|
33
|
-
|
|
30
|
+
|
|
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
|
|
34
32
|
|
|
35
33
|
# Updating
|
|
36
34
|
|
|
@@ -41,9 +39,21 @@ pip install --upgrade scratch_syntax
|
|
|
41
39
|
```
|
|
42
40
|
|
|
43
41
|
# Update 0.3.0 notes
|
|
44
|
-
|
|
42
|
+
|
|
43
|
+
### I added the list functions
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
# Update 0.4.0 notes
|
|
48
|
+
|
|
49
|
+
## Added new say_for_seconds() function
|
|
50
|
+
|
|
51
|
+
I also added Github Respitory
|
|
52
|
+
|
|
53
|
+
|
|
45
54
|
|
|
46
55
|
# All Functions
|
|
47
56
|
|
|
48
57
|
```bash
|
|
49
|
-
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()
|
|
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
|
+
```
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
# Scratch_Syntax
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
3
|
## This is a custom Python library designed make python syntax more like scratch.
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
5
|
# Installation
|
|
10
6
|
|
|
11
7
|
```bash
|
|
@@ -17,7 +13,8 @@ pip install scratch_syntax
|
|
|
17
13
|
you can do anything with this library, mod it, break it, anything, but don't sue me
|
|
18
14
|
|
|
19
15
|
# Update 0.2.0 notes
|
|
20
|
-
|
|
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
|
|
21
18
|
|
|
22
19
|
# Updating
|
|
23
20
|
|
|
@@ -28,9 +25,21 @@ pip install --upgrade scratch_syntax
|
|
|
28
25
|
```
|
|
29
26
|
|
|
30
27
|
# Update 0.3.0 notes
|
|
31
|
-
|
|
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
|
+
|
|
32
40
|
|
|
33
41
|
# All Functions
|
|
34
42
|
|
|
35
43
|
```bash
|
|
36
|
-
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()
|
|
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
|
+
```
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "scratch_syntax"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.4.0"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Cade", email="cadey.matignas@gmail.com" },
|
|
10
10
|
]
|
|
@@ -16,3 +16,5 @@ classifiers = [
|
|
|
16
16
|
"License :: OSI Approved :: MIT License",
|
|
17
17
|
"Operating System :: OS Independent",
|
|
18
18
|
]
|
|
19
|
+
[project.urls]
|
|
20
|
+
Homepage = "https://github.com/cadeymatignas-source/scratch_syntax"
|
|
@@ -2,17 +2,25 @@ import sys
|
|
|
2
2
|
from random import randint
|
|
3
3
|
from time import sleep
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
_scratch_data = {"answer": ""}
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
def say(text):
|
|
9
9
|
print(text)
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
def say_for_seconds(texty, secs):
|
|
13
|
+
print(texty)
|
|
14
|
+
sleep(secs)
|
|
15
|
+
|
|
16
|
+
|
|
12
17
|
def ask(question):
|
|
13
|
-
|
|
14
|
-
answer
|
|
15
|
-
|
|
18
|
+
_scratch_data["answer"] = input(question)
|
|
19
|
+
return _scratch_data["answer"]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def answer():
|
|
23
|
+
return _scratch_data["answer"]
|
|
16
24
|
|
|
17
25
|
|
|
18
26
|
def wait(seconds):
|
|
@@ -36,7 +44,7 @@ def insert_in_list(listname, index, item):
|
|
|
36
44
|
|
|
37
45
|
|
|
38
46
|
def delete_from_list(listname, index):
|
|
39
|
-
|
|
47
|
+
listname.pop(index)
|
|
40
48
|
|
|
41
49
|
|
|
42
50
|
def delete_all_from_list(listname):
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scratch_syntax
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.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
|
+
Project-URL: Homepage, https://github.com/cadeymatignas-source/scratch_syntax
|
|
6
7
|
Classifier: Programming Language :: Python :: 3
|
|
7
8
|
Classifier: License :: OSI Approved :: MIT License
|
|
8
9
|
Classifier: Operating System :: OS Independent
|
|
@@ -13,12 +14,8 @@ Dynamic: license-file
|
|
|
13
14
|
|
|
14
15
|
# Scratch_Syntax
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
17
|
## This is a custom Python library designed make python syntax more like scratch.
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
19
|
# Installation
|
|
23
20
|
|
|
24
21
|
```bash
|
|
@@ -30,7 +27,8 @@ pip install scratch_syntax
|
|
|
30
27
|
you can do anything with this library, mod it, break it, anything, but don't sue me
|
|
31
28
|
|
|
32
29
|
# Update 0.2.0 notes
|
|
33
|
-
|
|
30
|
+
|
|
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
|
|
34
32
|
|
|
35
33
|
# Updating
|
|
36
34
|
|
|
@@ -41,9 +39,21 @@ pip install --upgrade scratch_syntax
|
|
|
41
39
|
```
|
|
42
40
|
|
|
43
41
|
# Update 0.3.0 notes
|
|
44
|
-
|
|
42
|
+
|
|
43
|
+
### I added the list functions
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
# Update 0.4.0 notes
|
|
48
|
+
|
|
49
|
+
## Added new say_for_seconds() function
|
|
50
|
+
|
|
51
|
+
I also added Github Respitory
|
|
52
|
+
|
|
53
|
+
|
|
45
54
|
|
|
46
55
|
# All Functions
|
|
47
56
|
|
|
48
57
|
```bash
|
|
49
|
-
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()
|
|
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
|
+
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|