basedpython 0.0.1a1__py3-none-win32.whl → 0.0.1a4__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.
@@ -0,0 +1,85 @@
1
+ Metadata-Version: 2.4
2
+ Name: basedpython
3
+ Version: 0.0.1a4
4
+ Classifier: Development Status :: 1 - Planning
5
+ Classifier: Environment :: Console
6
+ Classifier: Intended Audience :: Developers
7
+ Classifier: Operating System :: OS Independent
8
+ Classifier: Programming Language :: Python
9
+ Classifier: Programming Language :: Python :: 3.7
10
+ Classifier: Programming Language :: Python :: 3.8
11
+ Classifier: Programming Language :: Python :: 3.9
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Rust
19
+ Classifier: Topic :: Software Development
20
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
+ Classifier: Topic :: Software Development :: Quality Assurance
22
+ Classifier: Topic :: Software Development :: Compilers
23
+ Classifier: Topic :: Software Development :: Build Tools
24
+ Classifier: Topic :: Software Development :: Pre-processors
25
+ Classifier: Topic :: Software Development :: Code Generators
26
+ License-File: LICENSE
27
+ Summary: a transpiler for both Python and basedpython
28
+ Keywords: automation,flake8,pycodestyle,pyflakes,pylint,clippy
29
+ Author-email: "Astral Software Inc." <hey@astral.sh>
30
+ License-Expression: MIT
31
+ Requires-Python: >=3.7
32
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
33
+ Project-URL: Changelog, https://github.com/KotlinIsland/basedpython/blob/main/CHANGELOG.md
34
+ Project-URL: Documentation, https://kotlinisland.github.io/basedpython/
35
+ Project-URL: Repository, https://github.com/KotlinIsland/basedpython
36
+
37
+ # basedpython
38
+
39
+ a python type checker and a python-like language that transpiles to pure python
40
+
41
+ ```by
42
+ enum class Shape:
43
+ case Circle(radius: int)
44
+ case Rect(width: int, height: int)
45
+
46
+ def area(self) -> int:
47
+ match self:
48
+ case Shape.Circle(r): return 3 * r * r
49
+ case Shape.Rect(w, h): return w * h
50
+
51
+ extension list[Element: Shape]:
52
+ def first_circle(self) -> Shape.Circle?:
53
+ for shape in self:
54
+ if shape is Shape.Circle:
55
+ return shape
56
+ return None
57
+
58
+ def stats(shapes: list[Shape]) -> (count: int, total: int):
59
+ return (len(shapes), sum(s.area() for s in shapes))
60
+
61
+ def main():
62
+ let shapes = [Shape.Circle(1), Shape.Rect(2, 3)]
63
+ let summary = stats(shapes)
64
+ print(f"{summary.count} shapes, {summary.total} total")
65
+ print(shapes.first_circle()?.radius ?? 0)
66
+ ```
67
+
68
+ ## installation
69
+
70
+ ```sh
71
+ uv add --dev basedpython
72
+ by run main
73
+ ```
74
+
75
+ ## documentation
76
+
77
+ [kotlinisland.github.io/basedpython](https://kotlinisland.github.io/basedpython/)
78
+
79
+ ## acknowledgements
80
+
81
+ basedpython is a fork of [astral-sh/ruff](https://github.com/astral-sh/ruff) —
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
84
+ exist without the work of the astral team and the wider ruff community
85
+
@@ -0,0 +1,7 @@
1
+ basedpython-0.0.1a4.data/scripts/buff.exe,sha256=jXfhtlpk_V3NH4WfQ0s3EKBA5LfOIPf9KZ8U1LbYF3Y,28040704
2
+ basedpython-0.0.1a4.data/scripts/by.exe,sha256=utlKg05ncmX7sJbIpYiNNxuszTq6UoZ-q3OTBflMzJs,27290112
3
+ basedpython-0.0.1a4.dist-info/METADATA,sha256=K3m5iu80MXIr16zEeg35q8hLm3Uabu9DWK9BodMK94A,3119
4
+ basedpython-0.0.1a4.dist-info/WHEEL,sha256=JNKjfk8t_lLPebUae1rF2yydfqwhoTBTQSUGXxfneN4,90
5
+ basedpython-0.0.1a4.dist-info/licenses/LICENSE,sha256=JZfYVBIrd93HGXFWTKI1CjdghXXOMkrcVlCisgUcjxg,20731
6
+ basedpython-0.0.1a4.dist-info/sboms/basedpython.cyclonedx.json,sha256=6zVDuupwC9tR0T1gsJJc3lNZ8s5NylBp1efRn5XI5BU,432905
7
+ basedpython-0.0.1a4.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: maturin (1.13.3)
2
+ Generator: maturin (1.14.1)
3
3
  Root-Is-Purelib: false
4
4
  Tag: py3-none-win32