Metadata-Version: 2.1
Name: deepl-grpc
Version: 0.1.0
Summary: deepl grpc server and client
Home-page: https://github.com/ffreemt/deepl-grpc
License: MIT
Author: freemt
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: deepl-scraper-pp (>=0.1.1,<0.2.0)
Requires-Dist: grpcio (>=1.36.1,<2.0.0)
Requires-Dist: logzero (>=1.6.3,<2.0.0)
Requires-Dist: portalocker (>=2.2.1,<3.0.0)
Project-URL: Repository, https://github.com/ffreemt/deepl-grpc
Description-Content-Type: text/markdown

# deepl-grpc
[![tests](https://github.com/ffreemt/deepl-grpc/actions/workflows/routine-tests.yml/badge.svg)][![python](https://img.shields.io/static/v1?label=python+&message=3.7%2B&color=blue)](https://img.shields.io/static/v1?label=python+&message=3.7%2B&color=blue)[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)[![PyPI version](https://badge.fury.io/py/deepl-grpc.svg)](https://badge.fury.io/py/deepl-grpc)

deepl grpc, server and client, cross platform (Windows/MacOS/Linux) 

## Installation
*   Install ``grpc-reflection``
    *   ``grpc-reflection`` cannot be installed using `poetry add`. Use ``pip install grpc-reflection`` instead.
*   Install the rest as usual
```bash
pip install deepl-grpc
```
or
```bash
poetry add deepl-grpc
```

or clone the repo and install from it.

## Usage

### Interactive

*   [Optional] Start the grpc server
```python
python -m deepl_grpc.deepl_server
```

*   Start the client
```python
python -m deepl_grpc.deepl_client  # to chinese

# python -m deepl_grpc.deepl_client de  # to german
```

### WebUI
Download `grpcui` and run, for example in Windows
```bash
grpcui.exe -plaintext 127.0.0.1:50051
```
to explore the server in the same manner as Postman for REST.

### More coming soon

