Skip to content
v0.11.15 out now

Python at Go speed

An all-in-one Python toolkit. Runtime, package manager, bundler, test runner, and formatter in one fast static binary.

curl -fsSL https://tamnd.github.io/bunpy/install.sh | bash
bunpy --version
# bunpy 0.11.15

macOS (arm64, x64) · Linux (arm64, x64) · Windows (x64)

What’s inside

Compared to a Python toolchain

bunpypython + pip + venv
Runtime includedyes (Python 3.14)requires CPython
Package installbuilt-in bunpy addpip + manual venv
Test runnerbuilt-in bunpy testpytest (separate)
Bundlerbuilt-in bunpy buildshiv / pyinstaller
Formatterbuilt-in bunpy fmtblack / ruff (separate)
HTTP serverbuilt-in bunpy.serveflask / fastapi
Native binary executablebunpy build --compilenot supported

Quick look

# server.py
from bunpy.serve import serve

def handler(req):
    name = req.query.get("name", "world")
    return f"Hello, {name}!"

serve(handler, port=3000)
bunpy server.py
# Listening on http://localhost:3000
# fetch is available globally, no import needed
resp = fetch("https://api.github.com/repos/tamnd/bunpy")
print(resp.json()["stargazers_count"])
# Package manager
bunpy add requests fastapi
bunpy install --frozen
bunpy pm lock

Commands

CommandWhat it does
bunpy script.pyRun a Python script
bunpy add requestsAdd a dependency
bunpy installInstall from pyproject.toml
bunpy pm lockResolve and pin all dependencies
bunpy build app.pyBundle to app.pyz
bunpy testRun tests
bunpy fmt src/Format source
bunpy replInteractive REPL