pybun 1.1.45__py3-none-macosx_12_0_arm64.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.
Potentially problematic release.
This version of pybun might be problematic. Click here for more details.
- pybun/__init__.py +1 -0
- pybun/__main__.py +18 -0
- pybun/bun +0 -0
- pybun-1.1.45.dist-info/METADATA +59 -0
- pybun-1.1.45.dist-info/RECORD +7 -0
- pybun-1.1.45.dist-info/WHEEL +4 -0
- pybun-1.1.45.dist-info/entry_points.txt +2 -0
pybun/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
pybun/__main__.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# pyright: basic
|
|
2
|
+
import os
|
|
3
|
+
import sys
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def main():
|
|
7
|
+
argv = [os.path.join(os.path.dirname(__file__), "bun"), *sys.argv[1:]]
|
|
8
|
+
|
|
9
|
+
if os.name == "posix":
|
|
10
|
+
os.execv(argv[0], argv)
|
|
11
|
+
else:
|
|
12
|
+
import subprocess
|
|
13
|
+
|
|
14
|
+
sys.exit(subprocess.call(argv))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
if __name__ == "__main__":
|
|
18
|
+
main()
|
pybun/bun
ADDED
|
Binary file
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: pybun
|
|
3
|
+
Version: 1.1.45
|
|
4
|
+
Summary: Bun is an all-in-one toolkit for JavaScript and TypeScript apps.
|
|
5
|
+
Description-Content-Type: text/markdown
|
|
6
|
+
License: MIT
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Project-URL: Homepage, https://bun.sh/
|
|
9
|
+
Project-URL: Source Code, https://github.com/oven-sh/bun
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/oven-sh/bun/issues
|
|
11
|
+
Project-URL: Changelog, https://bun.sh/blog/bun-v1.1.45
|
|
12
|
+
Project-URL: Documentation, https://bun.sh/docs
|
|
13
|
+
Requires-Python: ~=3.9
|
|
14
|
+
|
|
15
|
+
# Pybun
|
|
16
|
+
|
|
17
|
+
**The bun toolkit, packaged for Python** 🍞 + 🐍 = 🚀
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
[Bun](https://bun.sh/) is an all-in-one toolkit for JavaScript and TypeScript apps.
|
|
21
|
+
|
|
22
|
+
The [pybun](https://pypi.org/project/pybun/) Python package redistributes the Bun executable so that it can be used as a dependency in your Python projects.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
Usage
|
|
26
|
+
-----
|
|
27
|
+
|
|
28
|
+
### Command line
|
|
29
|
+
|
|
30
|
+
```shell
|
|
31
|
+
pybun --version
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Run library module as a script
|
|
35
|
+
|
|
36
|
+
```shell
|
|
37
|
+
python -m pybun --version
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### From python
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
import sys, subprocess
|
|
44
|
+
|
|
45
|
+
subprocess.call([sys.executable, "-m", "pybun"])
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
License
|
|
49
|
+
-------
|
|
50
|
+
|
|
51
|
+
Pybun itself is released under [The Unlicense](https://choosealicense.com/licenses/unlicense/) license.
|
|
52
|
+
|
|
53
|
+
The bun executable [has its own licence](https://bun.sh/docs/project/licensing).
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
Credits
|
|
57
|
+
-------
|
|
58
|
+
|
|
59
|
+
Thanks a lot to the [zig-pypi](https://github.com/ziglang/zig-pypi) maintainers: their code heavily helped me to understand how to do the same with Bun!
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
pybun-1.1.45.dist-info/METADATA,sha256=jb68fX-0AS8JpNwpnW4QyA91NkPeH7cMrPwy63ZzFrs,1448
|
|
2
|
+
pybun-1.1.45.dist-info/WHEEL,sha256=FfOjXzKtTnZ5O3rpD9tp9FGUuIw1KaOGTvvNgZOVMbQ,109
|
|
3
|
+
pybun-1.1.45.dist-info/entry_points.txt,sha256=2yqDrzJKYDdB2mySMnlNYPyhgcucK1cnVOp3xOQxd2Q,46
|
|
4
|
+
pybun/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
5
|
+
pybun/__main__.py,sha256=VOyC3nPHt95MFI03N6GFjYx2R-HmpDutHkKoPKZOTXE,304
|
|
6
|
+
pybun/bun,sha256=jradPZ4NI0k1cT1dd7EfiStmxtZT49SaR9yxMKjqOTg,56337904
|
|
7
|
+
pybun-1.1.45.dist-info/RECORD,,
|