fetch-deepl
Fetch translation text from a deepl-fastapi API.
Install it
pip install fetch-deepl
# pip install git+https://github.com/ffreemt/fetch-deepl
# poetry add git+https://github.com/ffreemt/fetch-deepl
# git clone https://github.com/ffreemt/fetch-deepl && cd fetch-deepl
Use it
from fetch_deepl import fetch_deepl
print(fetch_deepl("Tell me and I forget. Teach me and I remember. Involve me and I learn."))
# 告诉我,我就忘了。教导我,我就记住。让我参与,我就学
print(fetch_deepl("书山有路勤为径"))
# There is a path to the mountain of books and diligence is the path
print(fetch_deepl("There is a path to the mountain of books and diligence is the path", from_lang="en", to_lang="de"))
# Es gibt einen Weg zum Berg der Bücher und Fleiß ist der Weg
print(fetch_deepl("书山有路勤为径", from_lang="zh", to_lang="de"))
# Es gibt einen Weg durch die Berge des Lernens und des Fleißes
Supported languages can be obtained from deepl's homepage, as of today:
from pprint import pprint
from fetch_deepl import lang_dict
pprint(lang_dict)
{'bg': 'Bulgarian',
'cs': 'Czech',
'da': 'Danish',
'de': 'German',
'el': 'Greek',
'en': 'English',
'es': 'Spanish',
'et': 'Estonian',
'fi': 'Finnish',
'fr': 'French',
'hu': 'Hungarian',
'id': 'Indonesian',
'it': 'Italian',
'ja': 'Japanese',
'lt': 'Lithuanian',
'lv': 'Latvian',
'pl': 'Polish',
'pt': 'Portuguese',
'ro': 'Romanian',
'ru': 'Russian',
'sk': 'Slovak',
'sl': 'Slovenian',
'sv': 'Swedish',
'tr': 'Turkish',
'zh': 'Chinese (simpl.)'}
Metadata
Release files for fetch-deepl 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fetch-deepl-0.1.2.tar.gz | 5.3 kB | Without provenance | Details for fetch-deepl-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fetch_deepl-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for fetch_deepl-0.1.2-py3-none-any.whl |
Total release size: 10.4 kB
Release files / fetch-deepl-0.1.2.tar.gz
| Download URL | fetch-deepl-0.1.2.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2911946d4f7bc304eef5df602c9bb535b62858fc5e712ef5b709779f19dce6e4
|
|
BLAKE2b-256 checksum How to use checksums |
fadea7f8497bb6f5c8489c7c9a5d540e61e908f830db05aba2fe6cc3fc99910a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.5 Windows/10
|
Release files / fetch_deepl-0.1.2-py3-none-any.whl
| Download URL | fetch_deepl-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c77aa4e26d0972ab8ecf63e5d6393d5e518d30f935dd892e64f006f1de5985f3
|
|
BLAKE2b-256 checksum How to use checksums |
d525c04b4f38a2538e587b04b177b3b2e99d27db6d52465093ebbc946881d248
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.5 Windows/10
|
Security for fetch-deepl 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.