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

You can install the package using pip:

pip install italian-translator

Usage

italian-translator [--reverse|-R] [--language|-L <language>] [--examples|-E <number>] <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.
  • --help, -h: Display the help message.

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.0.tar.gz (4.4 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.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: italian_translator-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 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.0.tar.gz
Algorithm Hash digest
SHA256 3df933031a8542f2801079b1c0915ea9e81335cd64f294fb0677746d6e4d9730
MD5 f7729268312807fe66790ae4d75c23da
BLAKE2b-256 f0dfb87ec5f7b2e33a1f627c2345941ab6faee11c28d086c3354695c0f53e483

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for italian_translator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1cdaaaf5c87533bd265114bb45de0d501a34be54037536a7ac5e69552d92fb3
MD5 9a5065fa1c747ed620bf536be409fa92
BLAKE2b-256 0c6d9e0e07a61db9a4a4b739fde1c8defd1d5814933a93a8fc0345282110ad1e

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