Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Dragonfly API

Python gRPC bindings for the Dragonfly API, generated from the proto definitions in dragonflyoss/api.

Installation

pip install dragonfly-api

Usage

import 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)

Development

Regenerate the code from the proto files in the repository root:

make python-protoc

LICENSE

Apache 2.0 License. Please see LICENSE for more information.