Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ducdetronquito/pybun
The bun toolkit, packaged for PyPI 🍞 + 🐍 = 🚀
https://github.com/ducdetronquito/pybun
Last synced: 2 months ago
JSON representation
The bun toolkit, packaged for PyPI 🍞 + 🐍 = 🚀
- Host: GitHub
- URL: https://github.com/ducdetronquito/pybun
- Owner: ducdetronquito
- License: unlicense
- Created: 2024-08-27T15:55:48.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-28T07:34:22.000Z (3 months ago)
- Last Synced: 2024-08-28T18:00:46.106Z (3 months ago)
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pybun
**The bun toolkit, packaged for Python** 🍞 + 🐍 = 🚀
[Bun](https://bun.sh/) is an all-in-one toolkit for JavaScript and TypeScript apps.
The [pybun](https://pypi.org/project/pybun/) Python package redistributes the Bun CLI executable so that it can be used as a dependency in your Python projects.Usage
-----To run the Bun CLI from the command line, you can use:
```shell
pybun --version
bun --version
python -m pybun --version
```To run the Bun CLI from a Python program, use `sys.executable` to locate the Python binary to invoke. For example:
```python
import sys, subprocesssubprocess.call([sys.executable, "-m", "pybun"])
```License
-------Pybun itself is released under [The Unlicense](https://choosealicense.com/licenses/unlicense/) license.
The bun executable [has its own licence](https://bun.sh/docs/project/licensing).
Credits
-------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!