Python gRPC bindings for the Dragonfly API, generated from the proto definitions in dragonflyoss/api.
pip install dragonfly-apiimport grpc
from dragonfly_api import common_pb2, dfdaemon_pb2, dfdaemon_pb2_grpc
channel = grpc.insecure_channel("unix:/var/run/dragonfly/dfdaemon.sock")
stub = dfdaemon_pb2_grpc.DfdaemonDownloadStub(channel)Regenerate the code from the proto files in the repository root:
make python-protocApache 2.0 License. Please see LICENSE for more information.