Skip to content
mos9527Public

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

libmdr Python Bindings
===

Installation
---
pip install libmdr        # core bindings (mdr-shared)
pip install libmdr[bt]    # + libmdr-bt, the platform Bluetooth backend
pip install libmdr[cli]   # + libmdr-cli, the `mdr` command line tool. see `mdr help`

The extras are shorthands for the standalone packages, i.e. `pip install libmdr-bt`
and `pip install libmdr-cli` work just as well.

Prebuilt wheels are not tied to a Python version, and install on any Python >= 3.10 on:
- Windows   x86-64, arm64
- macOS 12+ x86-64, arm64
- Linux     x86-64, arm64, armv7 (glibc >= 2.17)

CI loads the libraries on CPython 3.10 - 3.15, including free-threaded 3.14t and 3.15t.
Other interpreters, such as PyPy, are untested.

On Linux, libmdr-bt needs the system's libdbus-1 and libbluetooth (BlueZ) at runtime.
Elsewhere (e.g. musl) pip builds from the sdist, which needs CMake >= 3.31, git and a C++20
compiler, plus the libdbus-1 and libbluetooth headers for libmdr-bt.

Development
---
pip install -e libmdr
pip install -e libmdr-bt
pip install -e libmdr-cli # optional. the `mdr` command line tool, see `mdr help`

Releasing
---
CI (.github/workflows/wheels.yml) builds the wheels and sdists on every push.
Pushing a `vX.Y.Z` tag that matches the version of all three pyproject.toml files
also publishes them to PyPI.

Regenerating the C ABI Bindings
---
With SonyHeadphonesClient checked out next to this repository:

python tooling/generate_bindings.py [--source path-to-SonyHeadphonesClient]

Releases

Packages

Contributors

Languages