Metadata-Version: 2.1
Name: deepl.py
Version: 0.0.1
Summary: A Python wrapper for the DeepL API
Home-page: https://github.com/grarich123/deepl.py
Author: grarich
Author-email: grarich123@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# deepl.py

A Python wrapper for the DeepL API

# installing  
Install and update using pip:

`pip install deepl.py`  

A simple example.  

```python
# Sync Sample
import deepl

text = 'I have a pen.'

translator = deepl.Translator(deepl.RequestsAdapter('Your API key'))


def main():
    print(translator.translate(text, deepl.TargetLang.Japanese))


if __name__ == '__main__':
    main()
```

```python
# Async Sample
import asyncio

import deepl

text = 'I have a pen.'

translator = deepl.Translator(deepl.AiohttpAdapter('Your API key'))


async def main():
    print(await translator.translate(text, deepl.TargetLang.Japanese))

loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```

# Thank you to everyone who Helped me (#^^#)

