basedpython 0.0.1a8__py3-none-win32.whl → 0.0.1b1__py3-none-win32.whl
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.
- basedpython/__init__.py +12 -0
- basedpython/build.py +749 -0
- {basedpython-0.0.1a8.data → basedpython-0.0.1b1.data}/scripts/buff.exe +0 -0
- basedpython-0.0.1b1.data/scripts/by.exe +4 -0
- {basedpython-0.0.1a8.dist-info → basedpython-0.0.1b1.dist-info}/METADATA +15 -7
- basedpython-0.0.1b1.dist-info/RECORD +9 -0
- {basedpython-0.0.1a8.dist-info → basedpython-0.0.1b1.dist-info}/sboms/basedpython.cyclonedx.json +1557 -481
- basedpython-0.0.1a8.data/scripts/by.exe +0 -0
- basedpython-0.0.1a8.dist-info/RECORD +0 -7
- {basedpython-0.0.1a8.dist-info → basedpython-0.0.1b1.dist-info}/WHEEL +0 -0
- {basedpython-0.0.1a8.dist-info → basedpython-0.0.1b1.dist-info}/licenses/LICENSE +0 -0
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: basedpython
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.1b1
|
|
4
4
|
Classifier: Development Status :: 1 - Planning
|
|
5
5
|
Classifier: Environment :: Console
|
|
6
6
|
Classifier: Intended Audience :: Developers
|
|
@@ -38,15 +38,24 @@ Project-URL: Repository, https://github.com/KotlinIsland/basedpython
|
|
|
38
38
|
|
|
39
39
|
a python type checker and a python-like language that transpiles to pure python
|
|
40
40
|
|
|
41
|
+
- **a python type checker with framework support** — pydantic, sqlalchemy,
|
|
42
|
+
pytest and django are modelled directly, so the magic they do at runtime
|
|
43
|
+
checks like ordinary code
|
|
44
|
+
- **basedpython, a python-like language that builds into python wheels**
|
|
45
|
+
- **compiles into high performance python extension modules**
|
|
46
|
+
- **a language server, formatter and linter** — high performance and feature rich tooling
|
|
47
|
+
|
|
41
48
|
```by
|
|
42
49
|
enum class Shape:
|
|
43
50
|
case Circle(radius: int)
|
|
44
51
|
case Rect(width: int, height: int)
|
|
45
52
|
|
|
46
53
|
def area(self) -> int:
|
|
47
|
-
match self:
|
|
48
|
-
case Shape.Circle(r):
|
|
49
|
-
|
|
54
|
+
return match self:
|
|
55
|
+
case Shape.Circle(r):
|
|
56
|
+
3 * r * r
|
|
57
|
+
case Shape.Rect(w, h):
|
|
58
|
+
w * h
|
|
50
59
|
|
|
51
60
|
extension list[Element: Shape]:
|
|
52
61
|
def first_circle(self) -> Shape.Circle?:
|
|
@@ -69,6 +78,7 @@ def main():
|
|
|
69
78
|
|
|
70
79
|
```sh
|
|
71
80
|
uv add --dev basedpython
|
|
81
|
+
echo 'print("hello")' > main.by
|
|
72
82
|
by run main
|
|
73
83
|
```
|
|
74
84
|
|
|
@@ -78,8 +88,6 @@ by run main
|
|
|
78
88
|
|
|
79
89
|
## acknowledgements
|
|
80
90
|
|
|
81
|
-
basedpython is
|
|
82
|
-
it reuses ruff's parser, AST, and fix-application machinery, and the type
|
|
83
|
-
checker is built on [ty](https://github.com/astral-sh/ty). none of this would
|
|
91
|
+
basedpython is built on top of [astral-sh/ruff](https://github.com/astral-sh/ruff). none of this would
|
|
84
92
|
exist without the work of the astral team and the wider ruff community
|
|
85
93
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
basedpython/__init__.py,sha256=xEGzNuTupObOAiUyRDxM9ink-2r3J2QdKhO1idCgz6k,416
|
|
2
|
+
basedpython/build.py,sha256=ZfovHtT4nz-qWMWpdtpXvDVY5o9sIBFO_SHuK1I-Pv4,27705
|
|
3
|
+
basedpython-0.0.1b1.data/scripts/buff.exe,sha256=W1nyzagwlrpTI6poRh0y7YYBCyqADCownzsgQJ5v1ow,26581504
|
|
4
|
+
basedpython-0.0.1b1.data/scripts/by.exe,sha256=7ZDZHZRZTJywq4DXePjppWbfia7pbb6yZm2Oy0ebWTI,47879168
|
|
5
|
+
basedpython-0.0.1b1.dist-info/METADATA,sha256=SN-KmD_OZlAXWCJUm5VQJimns-hvAvgPnP4aVT3Kxn4,3466
|
|
6
|
+
basedpython-0.0.1b1.dist-info/WHEEL,sha256=JNKjfk8t_lLPebUae1rF2yydfqwhoTBTQSUGXxfneN4,90
|
|
7
|
+
basedpython-0.0.1b1.dist-info/licenses/LICENSE,sha256=JZfYVBIrd93HGXFWTKI1CjdghXXOMkrcVlCisgUcjxg,20731
|
|
8
|
+
basedpython-0.0.1b1.dist-info/sboms/basedpython.cyclonedx.json,sha256=rjWXIdanoyvkKE5tQ60jy_SQkIKDchKuuuxKAAt0U7E,473130
|
|
9
|
+
basedpython-0.0.1b1.dist-info/RECORD,,
|