scratch-syntax 0.1.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.
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: scratch_syntax
3
+ Version: 0.3.0
4
+ Summary: A syntax library designed to help scratch users transition to python
5
+ Author-email: Cade <cadey.matignas@gmail.com>
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.8
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Dynamic: license-file
13
+
14
+ # Scratch_Syntax
15
+
16
+
17
+
18
+ ## This is a custom Python library designed make python syntax more like scratch.
19
+
20
+
21
+
22
+ # Installation
23
+
24
+ ```bash
25
+
26
+ pip install scratch_syntax
27
+
28
+ ```
29
+
30
+ you can do anything with this library, mod it, break it, anything, but don't sue me
31
+
32
+ # Update 0.2.0 notes
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
+
35
+ # Updating
36
+
37
+ ```bash
38
+
39
+ pip install --upgrade scratch_syntax
40
+
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()
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "scratch_syntax"
7
- version = "0.1.0"
7
+ version = "0.3.0"
8
8
  authors = [
9
9
  { name="Cade", email="cadey.matignas@gmail.com" },
10
10
  ]
@@ -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
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: scratch_syntax
3
+ Version: 0.3.0
4
+ Summary: A syntax library designed to help scratch users transition to python
5
+ Author-email: Cade <cadey.matignas@gmail.com>
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.8
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Dynamic: license-file
13
+
14
+ # Scratch_Syntax
15
+
16
+
17
+
18
+ ## This is a custom Python library designed make python syntax more like scratch.
19
+
20
+
21
+
22
+ # Installation
23
+
24
+ ```bash
25
+
26
+ pip install scratch_syntax
27
+
28
+ ```
29
+
30
+ you can do anything with this library, mod it, break it, anything, but don't sue me
31
+
32
+ # Update 0.2.0 notes
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
+
35
+ # Updating
36
+
37
+ ```bash
38
+
39
+ pip install --upgrade scratch_syntax
40
+
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()
@@ -1,31 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: scratch_syntax
3
- Version: 0.1.0
4
- Summary: A syntax library designed to help scratch users transition to python
5
- Author-email: Cade <cadey.matignas@gmail.com>
6
- Classifier: Programming Language :: Python :: 3
7
- Classifier: License :: OSI Approved :: MIT License
8
- Classifier: Operating System :: OS Independent
9
- Requires-Python: >=3.8
10
- Description-Content-Type: text/markdown
11
- License-File: LICENSE
12
- Dynamic: license-file
13
-
14
- \# Scratch Syntax
15
-
16
-
17
-
18
- This is a custom Python library designed to handle scratch syntax formatting and parsing.
19
-
20
-
21
-
22
- \## Installation
23
-
24
- ```bash
25
-
26
- pip install scratch\_syntax
27
-
28
- ```
29
-
30
- you can do anything with this library, mod it, break it, anything, but don't sue me
31
-
@@ -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
@@ -1,31 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: scratch_syntax
3
- Version: 0.1.0
4
- Summary: A syntax library designed to help scratch users transition to python
5
- Author-email: Cade <cadey.matignas@gmail.com>
6
- Classifier: Programming Language :: Python :: 3
7
- Classifier: License :: OSI Approved :: MIT License
8
- Classifier: Operating System :: OS Independent
9
- Requires-Python: >=3.8
10
- Description-Content-Type: text/markdown
11
- License-File: LICENSE
12
- Dynamic: license-file
13
-
14
- \# Scratch Syntax
15
-
16
-
17
-
18
- This is a custom Python library designed to handle scratch syntax formatting and parsing.
19
-
20
-
21
-
22
- \## Installation
23
-
24
- ```bash
25
-
26
- pip install scratch\_syntax
27
-
28
- ```
29
-
30
- you can do anything with this library, mod it, break it, anything, but don't sue me
31
-
File without changes
File without changes