Skip to main content

A command-line tool for translating Italian words using Reverso Context.

Project description

Italian Translator

Italian Translator is a command-line tool for translating Italian sentences and displaying examples using Reverso Context.

Features

  • Translate Italian sentences to English (default) or any specified language.
  • Translate from a specified language to Italian using the --reverse option.
  • Display a specified number of example sentences using the --examples option.
  • Easy-to-use command-line interface with colored output.

Installation

Step 1: Download and Install Python

If you don't have Python installed, you can download it from the official website: python.org. Follow the instructions for your operating system to install Python.

Step 2: Install the Package

You can install the package using pip:

pip install italian-translator

Usage

italian-translator <sentence>
ita <sentence>

Options

  • --reverse, -R: Translate from a specified language to Italian.
  • --language, -L: Specify the language to translate to (default: English).
  • --examples, -E: Display a specified number of example sentences (default: 3).
  • --help, -h: Display the help message.
  • --version, -v: Show the version of the package.

Examples

Translate an Italian sentence to English:

italian-translator "Ciao, come stai?"
ita il gatto

Translate an English sentence to Italian:

italian-translator --reverse "Hello, how are you?"
ita -R the cat

Translate an Italian sentence to French

italian-translator --language french "Ciao, come stai?"
ita -L french il gatto

Display 5 examples sentences:

italian-translator --examples 5 "Ciao, come stai"
ita -E 5 il gatto

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

italian_translator-0.1.4.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

italian_translator-0.1.4-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file italian_translator-0.1.4.tar.gz.

File metadata

  • Download URL: italian_translator-0.1.4.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for italian_translator-0.1.4.tar.gz
Algorithm Hash digest
SHA256 fdfb038c18312fa5fa654fadf5a5c3ee88072d2c7db5bde109dc254e0da43dd5
MD5 fd64181cbc9b8427b6708ab7cde1fb94
BLAKE2b-256 d95872bdc025af304dbcd1c5b44a95e4a2567d6515fa948a0e720132b415ade2

See more details on using hashes here.

File details

Details for the file italian_translator-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for italian_translator-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c99ce8384838884195c37ad772419850fd92ed8a1dabdb6cbaf417126a83e0a8
MD5 3eb043d3b45ccff589c4bdbc5c51c2e5
BLAKE2b-256 c719a577eaade2fd32a46664a3850f82e5070ced3f7bab1ce237828a1e3fb1b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page