scratch-syntax 0.1.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/LICENSE +21 -0
- scratch_syntax-0.1.0/PKG-INFO +31 -0
- scratch_syntax-0.1.0/README.md +18 -0
- scratch_syntax-0.1.0/pyproject.toml +18 -0
- scratch_syntax-0.1.0/scratch_syntax/__init__.py +1 -0
- scratch_syntax-0.1.0/scratch_syntax/core.py +35 -0
- scratch_syntax-0.1.0/scratch_syntax.egg-info/PKG-INFO +31 -0
- scratch_syntax-0.1.0/scratch_syntax.egg-info/SOURCES.txt +9 -0
- scratch_syntax-0.1.0/scratch_syntax.egg-info/dependency_links.txt +1 -0
- scratch_syntax-0.1.0/scratch_syntax.egg-info/top_level.txt +1 -0
- scratch_syntax-0.1.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Cade
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "scratch_syntax"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name="Cade", email="cadey.matignas@gmail.com" },
|
|
10
|
+
]
|
|
11
|
+
description = "A syntax library designed to help scratch users transition to python"
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
requires-python = ">=3.8"
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"License :: OSI Approved :: MIT License",
|
|
17
|
+
"Operating System :: OS Independent",
|
|
18
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .core import say, ask, wait, pick_random_number_from, repeat, forever, answer
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
scratch_syntax
|