Installation
beacon ships as abi3 wheels: one wheel per platform covers every supported Python version, and you don’t need a Rust toolchain.
pip install llm-beaconuv add llm-beaconpoetry add llm-beaconCheck it works:
>>> import beacon>>> beacon.__version__'0.1.0'>>> beacon.extract_json('Sure! {"ok": true}'){'ok': True}Requirements
Section titled “Requirements”| Supported | |
|---|---|
| Python | 3.10, 3.11, 3.12, 3.13, 3.14 (CPython) |
| Operating systems | Linux (x86_64, aarch64, glibc and musl), macOS (Apple silicon, Intel), Windows (x64) |
| Runtime dependencies | none |
Optional integrations
Section titled “Optional integrations”The integrations import their framework lazily, so import beacon never pulls in LangChain or anything else. Install the extras you need:
pip install "llm-beacon[openai]" # OpenAI SDK helpers (optional, the helpers are duck-typed)pip install "llm-beacon[langchain]" # langchain-corepip install "llm-beacon[llamaindex]" # llama-index-corepip install "llm-beacon[pydantic-ai]" # pydantic-aipip install "llm-beacon[dspy]" # dspypip install "llm-beacon[test]" # pytest + pyyaml for the test suiteBuild from source
Section titled “Build from source”-
Install Rust (stable) and maturin:
Terminal window pip install maturin -
Clone the repository and build into a virtual environment:
Terminal window git clone https://github.com/IND-Anshuman/beacon.gitcd beaconpython -m venv .venv && . .venv/bin/activatematurin develop --release -
Run the test suites:
Terminal window pytest # Python + snapshot testscargo test --no-default-features # Rust core, no Python needed