Metadata-Version: 2.4
Name: dragonfly-api
Version: 2.3.0
Summary: Canonical location of the Dragonfly API definition
Project-URL: Homepage, https://d7y.io
Project-URL: Repository, https://github.com/dragonflyoss/api
Author-email: Gaius <gaius.qi@gmail.com>
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Requires-Dist: grpcio>=1.76.0
Requires-Dist: protobuf<8.0.0,>=6.31.1
Description-Content-Type: text/markdown

# Dragonfly API

Python gRPC bindings for the [Dragonfly](https://d7y.io) API, generated from the
proto definitions in [dragonflyoss/api](https://github.com/dragonflyoss/api).

## Installation

```shell
pip install dragonfly-api
```

## Usage

```python
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:

```shell
make python-protoc
```

## LICENSE

Apache 2.0 License. Please see [LICENSE](https://github.com/dragonflyoss/api/blob/main/LICENSE) for more information.
