scratch-syntax 0.3.1__tar.gz → 0.5.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.1 → scratch_syntax-0.5.0}/PKG-INFO +18 -8
- {scratch_syntax-0.3.1 → scratch_syntax-0.5.0}/README.md +16 -7
- {scratch_syntax-0.3.1 → scratch_syntax-0.5.0}/pyproject.toml +3 -1
- {scratch_syntax-0.3.1 → scratch_syntax-0.5.0}/scratch_syntax/core.py +13 -0
- {scratch_syntax-0.3.1 → scratch_syntax-0.5.0}/scratch_syntax.egg-info/PKG-INFO +18 -8
- {scratch_syntax-0.3.1 → scratch_syntax-0.5.0}/LICENSE +0 -0
- {scratch_syntax-0.3.1 → scratch_syntax-0.5.0}/scratch_syntax/__init__.py +0 -0
- {scratch_syntax-0.3.1 → scratch_syntax-0.5.0}/scratch_syntax.egg-info/SOURCES.txt +0 -0
- {scratch_syntax-0.3.1 → scratch_syntax-0.5.0}/scratch_syntax.egg-info/dependency_links.txt +0 -0
- {scratch_syntax-0.3.1 → scratch_syntax-0.5.0}/scratch_syntax.egg-info/top_level.txt +0 -0
- {scratch_syntax-0.3.1 → scratch_syntax-0.5.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.5.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,10 +39,22 @@ 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
|
+
# Update 0.5.0
|
|
54
|
+
* Added new wait_until() function
|
|
45
55
|
|
|
46
56
|
# All Functions
|
|
47
57
|
|
|
48
58
|
```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(), answer()
|
|
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()
|
|
50
60
|
```
|
|
@@ -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,10 +25,22 @@ 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
|
+
# Update 0.5.0
|
|
40
|
+
* Added new wait_until() function
|
|
32
41
|
|
|
33
42
|
# All Functions
|
|
34
43
|
|
|
35
44
|
```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(), answer()
|
|
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()
|
|
37
46
|
```
|
|
@@ -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.5.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"
|
|
@@ -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
|
|
|
@@ -9,6 +12,11 @@ def say(text):
|
|
|
9
12
|
print(text)
|
|
10
13
|
|
|
11
14
|
|
|
15
|
+
def say_for_seconds(texty, secs):
|
|
16
|
+
print(texty)
|
|
17
|
+
sleep(secs)
|
|
18
|
+
|
|
19
|
+
|
|
12
20
|
def ask(question):
|
|
13
21
|
_scratch_data["answer"] = input(question)
|
|
14
22
|
return _scratch_data["answer"]
|
|
@@ -50,4 +58,9 @@ def replace_in_list(listname, index, item):
|
|
|
50
58
|
listname[index] = item
|
|
51
59
|
|
|
52
60
|
|
|
61
|
+
def wait_until(varibab, condit):
|
|
62
|
+
while varibab != condit:
|
|
63
|
+
sleep(1)
|
|
64
|
+
|
|
65
|
+
|
|
53
66
|
# For anyone reading the code, I skipped the forever and repeat functions not because I wanted to but because it doesnt work: Cade
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scratch_syntax
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.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,10 +39,22 @@ 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
|
+
# Update 0.5.0
|
|
54
|
+
* Added new wait_until() function
|
|
45
55
|
|
|
46
56
|
# All Functions
|
|
47
57
|
|
|
48
58
|
```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(), answer()
|
|
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()
|
|
50
60
|
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|