DeepLCMD
DeepLCMD is a Python-based command line tool that utilizes the DeepL API to translate text and documents into a variety of languages.
Features
- Translate text directly from the command line
- Translate documents from a given file path
- Supports a variety of target languages
Installation
pip install deeplcmd
Please, note. You may want to create a virtual environment for the installation of the script
python -m venv .venv
.venv/bin/activate
read more about virtual environments here https://docs.python.org/3/library/venv.html
Usage
Before using DeepLCMD, you need to login with your DeepL API key. You can do this directly on the command line using the -k option or by supplying a file containing the key using the -kf option. If no key is provided, you will be prompted to enter it.
deeplcmd login -k YOUR_API_KEY
OR
deeplcmd login -kf PATH_TO_YOUR_KEYFILE
OR
Open an interactive login. Will prompt you for either a filepath or a key
deeplcmd login
You can translate text using the text command:
deeplcmd text -tl TARGET_LANGUAGE "Your text here"
You can also translate documents using the file command:
deeplcmd file -tl TARGET_LANGUAGE INPUT_FILE OUTPUT_FILE
In both cases, replace TARGET_LANGUAGE with the language you want to translate to.
Please note that the use of the DeepL API you will need to obtain API key from https://www.deepl.com/pro-api?cta=header-pro-api
Metadata
Release files for deeplcmd 0.1.4
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 |
|---|---|---|---|---|
| deeplcmd-0.1.4.tar.gz | 16.6 kB | Without provenance | Details for deeplcmd-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deeplcmd-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for deeplcmd-0.1.4-py3-none-any.whl |
Total release size: 33.9 kB
Release files / deeplcmd-0.1.4.tar.gz
| Download URL | deeplcmd-0.1.4.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9eb3141e0c1b71480ba15db9036267c2e54c121f262b131343305d51303fa342
|
|
BLAKE2b-256 checksum How to use checksums |
971719fbd5cc2189bb9804c8bf7d39d9c52be7194bb61b98f478216cd79458e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / deeplcmd-0.1.4-py3-none-any.whl
| Download URL | deeplcmd-0.1.4-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96c3f61b08fce5df2abc8c21b4dcce1c1a7d2e648867c89c208b8cf6a9e5e0a5
|
|
BLAKE2b-256 checksum How to use checksums |
5e692387a167baa2e70f8c4d69e098b854275708ccdc5a8de0c6b263652d67ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for deeplcmd 0.1.4
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.