scratch-syntax 0.1.0__tar.gz → 0.2.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.1.0 → scratch_syntax-0.2.0}/PKG-INFO +15 -5
- scratch_syntax-0.2.0/README.md +28 -0
- {scratch_syntax-0.1.0 → scratch_syntax-0.2.0}/pyproject.toml +1 -1
- scratch_syntax-0.2.0/scratch_syntax/__init__.py +1 -0
- scratch_syntax-0.2.0/scratch_syntax/core.py +30 -0
- {scratch_syntax-0.1.0 → scratch_syntax-0.2.0}/scratch_syntax.egg-info/PKG-INFO +15 -5
- scratch_syntax-0.1.0/README.md +0 -18
- scratch_syntax-0.1.0/scratch_syntax/__init__.py +0 -1
- scratch_syntax-0.1.0/scratch_syntax/core.py +0 -35
- {scratch_syntax-0.1.0 → scratch_syntax-0.2.0}/LICENSE +0 -0
- {scratch_syntax-0.1.0 → scratch_syntax-0.2.0}/scratch_syntax.egg-info/SOURCES.txt +0 -0
- {scratch_syntax-0.1.0 → scratch_syntax-0.2.0}/scratch_syntax.egg-info/dependency_links.txt +0 -0
- {scratch_syntax-0.1.0 → scratch_syntax-0.2.0}/scratch_syntax.egg-info/top_level.txt +0 -0
- {scratch_syntax-0.1.0 → scratch_syntax-0.2.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.2.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
|
|
@@ -11,21 +11,31 @@ Description-Content-Type: text/markdown
|
|
|
11
11
|
License-File: LICENSE
|
|
12
12
|
Dynamic: license-file
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
# Scratch_Syntax
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
This is a custom Python library designed to handle scratch syntax formatting and parsing.
|
|
18
|
+
## This is a custom Python library designed to handle scratch syntax formatting and parsing.
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
# Installation
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
25
|
|
|
26
|
-
pip install
|
|
26
|
+
pip install scratch_syntax
|
|
27
27
|
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
you can do anything with this library, mod it, break it, anything, but don't sue me
|
|
31
31
|
|
|
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
|
|
34
|
+
|
|
35
|
+
# Updating
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
|
|
39
|
+
pip install --upgrade scratch_syntax
|
|
40
|
+
|
|
41
|
+
```
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .core import answer, ask, pick_random_number_from, say, stop_all, wait
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scratch_syntax
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.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
|
|
@@ -11,21 +11,31 @@ Description-Content-Type: text/markdown
|
|
|
11
11
|
License-File: LICENSE
|
|
12
12
|
Dynamic: license-file
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
# Scratch_Syntax
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
This is a custom Python library designed to handle scratch syntax formatting and parsing.
|
|
18
|
+
## This is a custom Python library designed to handle scratch syntax formatting and parsing.
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
# Installation
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
25
|
|
|
26
|
-
pip install
|
|
26
|
+
pip install scratch_syntax
|
|
27
27
|
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
you can do anything with this library, mod it, break it, anything, but don't sue me
|
|
31
31
|
|
|
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
|
|
34
|
+
|
|
35
|
+
# Updating
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
|
|
39
|
+
pip install --upgrade scratch_syntax
|
|
40
|
+
|
|
41
|
+
```
|
scratch_syntax-0.1.0/README.md
DELETED
|
@@ -1,18 +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
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from .core import say, ask, wait, pick_random_number_from, repeat, forever, answer
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
from contextlib import contextmanager
|
|
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
|
-
@contextmanager
|
|
27
|
-
def repeat(times):
|
|
28
|
-
for _ in range(times):
|
|
29
|
-
yield
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
@contextmanager
|
|
33
|
-
def forever():
|
|
34
|
-
while True:
|
|
35
|
-
yield
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|