Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 🍞 + 🐍 = 🚀

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, subprocess

subprocess.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!