English فارسی

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 is bale-xyz. That split is intentional: PyPI normalises _ and - to the same thing, so balexyz would collide with the module name in some toolchains.

Requirements

ItemVersionWhy
Python3.10, 3.11, 3.12, 3.13Uses X | Y unions and match-free modern syntax
protobuf>= 7.35.1, < 8Dynamic message construction
websockets>= 13.0The main RPC link
httpx>= 0.27gRPC-web, Bot API, uploads
livekit>= 0.17Optional — 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:

  1. Straight from the folder — simplest, and it picks up local edits immediately.

    cd bale-xyz
    pip install -e ".[voice]"

    Editable mode writes a .pth link, so import balexyz reads the source tree directly.

  2. 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
  3. Directly from the zip file — pip can install an archive.

    pip install /path/to/bale-xyz-1.0.0.zip

    Extras 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

SymptomFix
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 directlyAn old protobuf is shadowing the new one. pip install -U "protobuf>=7.35.1".
ResolutionImpossible on protobufAnother package pinned protobuf < 7. Use a separate venv for bale xyz.
Wheel builds but index.json is missingInstall from the sdist or repo, not a hand-zipped src/ folder — or check pyproject.toml package-data.
ImportError on livekitExpected: it is an optional extra. pip install "bale-xyz[voice]".
The index is version-pinned on purpose.

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.

bale xyz 1.0.0 · MIT licensed · unofficial client © 2026 bale xyz contributors