deepl.py-1.0.3
توضیحات
A Python wrapper for the DeepL API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | deepl.py-1.0.3 |
| نام | deepl.py |
| نسخه کتابخانه | 1.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | grarich |
| ایمیل نویسنده | grarich123@gmail.com |
| آدرس صفحه اصلی | https://github.com/grarich123/deepl.py |
| آدرس اینترنتی | https://pypi.org/project/deepl.py/ |
| مجوز | - |
# deepl.py
A Python wrapper for the DeepL API
[](https://github.com/grarich123/deepl.py/blob/main/LICENSE)
[](https://github.com/grarich123/deepl.py/issues)
[](https://github.com/grarich123/deepl.py/network)
[](https://github.com/grarich123/deepl.py/stargazers)
[](https://github.com/grarich123/deepl.py/actions/workflows/check.yml)
[](https://badge.fury.io/py/deepl.py)
[](https://pypi.org/project/deepl.py/)
[](https://pepy.tech/project/deepl-py)
# 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, target_lang=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, target_lang=deepl.TargetLang.Japanese))
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```
# Thank you to everyone who Helped me (#^^#)
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp |
| - | requests |
نحوه نصب
نصب پکیج whl deepl.py-1.0.3:
pip install deepl.py-1.0.3.whl
نصب پکیج tar.gz deepl.py-1.0.3:
pip install deepl.py-1.0.3.tar.gz