Skip to content

Python

xbbg is the primary public package in this monorepo. It keeps the familiar Bloomberg-oriented Python API while moving transport, session management, and Arrow-native data handling into the shared Rust engine.

Production package

Install xbbg from PyPI and use it for notebooks, research workflows, and production Python services.

Backend choice

Return data as pandas, Polars, PyArrow, DuckDB, or Narwhals depending on the pipeline you already have.

Async support

Use the synchronous API in scripts or the a-prefixed functions inside async applications without switching packages.

Shared engine

Python gets the same Rust-backed request engine, validation model, and Arrow transport used across the public runtime surface.

import xbbg
xbbg.configure(host='localhost', port=8194)
prices = xbbg.bdp(
['AAPL US Equity', 'MSFT US Equity'],
['PX_LAST', 'VOLUME'],
)

Prefer the top-level helpers in these docs (xbbg.bdp(...), xbbg.configure(...)). If you are coming from the repository README, the module-style import remains supported too: from xbbg import blp and blp.bdp(...).