Skip to main content

BlueChi Python bindings

The BlueChi Python bindings provides a Python module to interact with the D-Bus API of BlueChi. It consists of the following subpackages:

  • api: auto-generated code based the BlueChi D-BUS API description
  • ext: custom written code to simplify common tasks

Installation

Using pip3:

# from PyPi
pip3 install bluechi
# or from cloned git repo
pip3 install --force dist/bluechi-<version>-py3-none-any.whl

Examples

Listing all connected nodes and their current state:

from bluechi.api import Controller

for node in Controller().list_nodes():
    # node[name, obj_path, status]
    print(f"Node: {node[0]}, State: {node[3]}")

Starting and stopping of a systemd unit on a specific node using the Unit class from the ext subpackage to implicitly wait for the job to finish:

from bluechi.ext import Unit

hu = Unit("my-node-name")

result = hu.start_unit("chronyd.service")
print(result)

result = hu.stop_unit("chronyd.service")
print(result)

Metadata

Release files for bluechi 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for bluechi 1.3.0
File Interpreter ABI Platform Actions
bluechi-1.3.0-py3-none-any.whl Python 3 none any Details for bluechi-1.3.0-py3-none-any.whl

Release files / bluechi-1.3.0-py3-none-any.whl

Download URL bluechi-1.3.0-py3-none-any.whl
Size 29.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20d11e7c3d97798695d4202db88fc33b3fe22fe1c0e461f079b188e72c0aff04
BLAKE2b-256 checksum
How to use checksums
d00cfd45295c88c439dbecdc2cd0e869527f159195f67cf02a99ac121f7974b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.7

Security for bluechi 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page