Installation
bale xyz is a pure-Python wheel with three runtime dependencies. No compiler, no protoc, no build step.
Install from PyPI
pip install bale-xyz
For anything that involves actually joining a call room you also want the LiveKit WebRTC stack:
pip install "bale-xyz[voice]"
The import name is
balexyz, the distribution name isbale-xyz. That split is intentional: PyPI normalises_and-to the same thing, sobalexyzwould collide with the module name in some toolchains.
Requirements
| Item | Version | Why |
|---|---|---|
| Python | 3.10, 3.11, 3.12, 3.13 | Uses X | Y unions and match-free modern syntax |
protobuf | >= 7.35.1, < 8 | Dynamic message construction |
websockets | >= 13.0 | The main RPC link |
httpx | >= 0.27 | gRPC-web, Bot API, uploads |
livekit | >= 0.17 | Optional — only for joining real call rooms |
Isolated install (recommended)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install --upgrade pip
pip install "bale-xyz[voice]"
Install from the GitHub checkout
You have three equivalent options once you unpack the zip:
-
Straight from the folder — simplest, and it picks up local edits immediately.
cd bale-xyz pip install -e ".[voice]"Editable mode writes a
.pthlink, soimport balexyzreads the source tree directly. -
From a built wheel — closest to what PyPI ships.
cd bale-xyz pip install build python -m build --wheel pip install dist/bale_xyz-1.0.0-py3-none-any.whl -
Directly from the zip file — pip can install an archive.
pip install /path/to/bale-xyz-1.0.0.zipExtras work the same way:
pip install "/path/to/bale-xyz-1.0.0.zip[voice]".
Install from a git URL
# latest main
pip install "git+https://github.com/iloveforduck/bale-xyz.git"
# pinned tag, with extras
pip install "bale-xyz[voice] @ git+https://github.com/iloveforduck/bale-xyz@v1.0.0"
Verify the install
The library ships a CLI that answers questions about the protocol with no credentials and no network:
bale-xyz info
bale-xyz 1.0.0
services : 52
RPC methods : 683
wire codecs : 1960
index release : web@5.5.1+169491
And from Python:
import balexyz
print(balexyz.__version__)
print(len(balexyz.dynamic.INDEX.all_methods()), "RPCs")
Troubleshooting
| Symptom | Fix |
|---|---|
ModuleNotFoundError: No module named 'balexyz' | You are probably in a different interpreter. Run python -c "import sys; print(sys.executable)" and install with that exact interpreter. |
TypeError: Descriptors cannot be created directly | An old protobuf is shadowing the new one. pip install -U "protobuf>=7.35.1". |
ResolutionImpossible on protobuf | Another package pinned protobuf < 7. Use a separate venv for bale xyz. |
Wheel builds but index.json is missing | Install from the sdist or repo, not a hand-zipped src/ folder — or check pyproject.toml package-data. |
ImportError on livekit | Expected: it is an optional extra. pip install "bale-xyz[voice]". |
index.json describes the protocol of web build
5.5.1. Bale changes endpoints without notice, so a mismatch
shows up as an UNIMPLEMENTED RPC rather than a silent
corruption. To regenerate against a newer bundle, see
Rebuilding the index.