scratch-syntax 0.2.0__tar.gz → 0.3.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.2.0 → scratch_syntax-0.3.0}/PKG-INFO +11 -3
- scratch_syntax-0.3.0/README.md +36 -0
- {scratch_syntax-0.2.0 → scratch_syntax-0.3.0}/pyproject.toml +1 -1
- scratch_syntax-0.3.0/scratch_syntax/__init__.py +1 -0
- scratch_syntax-0.3.0/scratch_syntax/core.py +50 -0
- {scratch_syntax-0.2.0 → scratch_syntax-0.3.0}/scratch_syntax.egg-info/PKG-INFO +11 -3
- scratch_syntax-0.2.0/README.md +0 -28
- scratch_syntax-0.2.0/scratch_syntax/__init__.py +0 -1
- scratch_syntax-0.2.0/scratch_syntax/core.py +0 -30
- {scratch_syntax-0.2.0 → scratch_syntax-0.3.0}/LICENSE +0 -0
- {scratch_syntax-0.2.0 → scratch_syntax-0.3.0}/scratch_syntax.egg-info/SOURCES.txt +0 -0
- {scratch_syntax-0.2.0 → scratch_syntax-0.3.0}/scratch_syntax.egg-info/dependency_links.txt +0 -0
- {scratch_syntax-0.2.0 → scratch_syntax-0.3.0}/scratch_syntax.egg-info/top_level.txt +0 -0
- {scratch_syntax-0.2.0 → scratch_syntax-0.3.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scratch_syntax
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.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
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -15,7 +15,7 @@ Dynamic: license-file
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
## This is a custom Python library designed
|
|
18
|
+
## This is a custom Python library designed make python syntax more like scratch.
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -30,7 +30,7 @@ pip install scratch_syntax
|
|
|
30
30
|
you can do anything with this library, mod it, break it, anything, but don't sue me
|
|
31
31
|
|
|
32
32
|
# Update 0.2.0 notes
|
|
33
|
-
I removed the forever and repeat functions and added the stop_all function. You can use **for _ in range():** for repeat and **while True:** for forever
|
|
33
|
+
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
34
|
|
|
35
35
|
# Updating
|
|
36
36
|
|
|
@@ -39,3 +39,11 @@ I removed the forever and repeat functions and added the stop_all function. You
|
|
|
39
39
|
pip install --upgrade scratch_syntax
|
|
40
40
|
|
|
41
41
|
```
|
|
42
|
+
|
|
43
|
+
# Update 0.3.0 notes
|
|
44
|
+
### I added the list functions
|
|
45
|
+
|
|
46
|
+
# All Functions
|
|
47
|
+
|
|
48
|
+
```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()
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Scratch_Syntax
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## This is a custom Python library designed make python syntax more like scratch.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
|
|
13
|
+
pip install scratch_syntax
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
you can do anything with this library, mod it, break it, anything, but don't sue me
|
|
18
|
+
|
|
19
|
+
# Update 0.2.0 notes
|
|
20
|
+
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
|
+
|
|
22
|
+
# Updating
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
|
|
26
|
+
pip install --upgrade scratch_syntax
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
# Update 0.3.0 notes
|
|
31
|
+
### I added the list functions
|
|
32
|
+
|
|
33
|
+
# All Functions
|
|
34
|
+
|
|
35
|
+
```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()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .core import *
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
from random import randint
|
|
3
|
+
from time import sleep
|
|
4
|
+
|
|
5
|
+
answer = ""
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def say(text):
|
|
9
|
+
print(text)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def ask(question):
|
|
13
|
+
global answer
|
|
14
|
+
answer = input(question)
|
|
15
|
+
return answer
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def wait(seconds):
|
|
19
|
+
sleep(seconds)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def pick_random_number_from(a, b):
|
|
23
|
+
return randint(a, b)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def stop_all():
|
|
27
|
+
sys.exit(0)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def add_to_list(listname, item):
|
|
31
|
+
listname.append(item)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def insert_in_list(listname, index, item):
|
|
35
|
+
listname.insert(index, item)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def delete_from_list(listname, index):
|
|
39
|
+
del listname[index]
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def delete_all_from_list(listname):
|
|
43
|
+
listname.clear()
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def replace_in_list(listname, index, item):
|
|
47
|
+
listname[index] = item
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
# 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.3.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
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -15,7 +15,7 @@ Dynamic: license-file
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
## This is a custom Python library designed
|
|
18
|
+
## This is a custom Python library designed make python syntax more like scratch.
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -30,7 +30,7 @@ pip install scratch_syntax
|
|
|
30
30
|
you can do anything with this library, mod it, break it, anything, but don't sue me
|
|
31
31
|
|
|
32
32
|
# Update 0.2.0 notes
|
|
33
|
-
I removed the forever and repeat functions and added the stop_all function. You can use **for _ in range():** for repeat and **while True:** for forever
|
|
33
|
+
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
34
|
|
|
35
35
|
# Updating
|
|
36
36
|
|
|
@@ -39,3 +39,11 @@ I removed the forever and repeat functions and added the stop_all function. You
|
|
|
39
39
|
pip install --upgrade scratch_syntax
|
|
40
40
|
|
|
41
41
|
```
|
|
42
|
+
|
|
43
|
+
# Update 0.3.0 notes
|
|
44
|
+
### I added the list functions
|
|
45
|
+
|
|
46
|
+
# All Functions
|
|
47
|
+
|
|
48
|
+
```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()
|
scratch_syntax-0.2.0/README.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Scratch_Syntax
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## This is a custom Python library designed to handle scratch syntax formatting and parsing.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
# Installation
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
|
|
13
|
-
pip install scratch_syntax
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
you can do anything with this library, mod it, break it, anything, but don't sue me
|
|
18
|
-
|
|
19
|
-
# Update 0.2.0 notes
|
|
20
|
-
I removed the forever and repeat functions and added the stop_all function. You can use **for _ in range():** for repeat and **while True:** for forever
|
|
21
|
-
|
|
22
|
-
# Updating
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
|
|
26
|
-
pip install --upgrade scratch_syntax
|
|
27
|
-
|
|
28
|
-
```
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from .core import answer, ask, pick_random_number_from, say, stop_all, wait
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
from random import randint
|
|
3
|
-
from time import sleep
|
|
4
|
-
|
|
5
|
-
answer = ""
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def say(text):
|
|
9
|
-
print(text)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
def ask(question):
|
|
13
|
-
global answer
|
|
14
|
-
answer = input(question)
|
|
15
|
-
return answer
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
def wait(seconds):
|
|
19
|
-
sleep(seconds)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
def pick_random_number_from(a, b):
|
|
23
|
-
return randint(a, b)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
def stop_all():
|
|
27
|
-
sys.exit(0)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
# For anyone reading the code, I skipped the forever and repeat functions not because it is very glitchy: Cade
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|