Skip to main content

Text translation package based on Google Translate API

Project description

ITranslator

Text translation package based on Google Translate API

Sync Example

from itranslator import Translator

translator = Translator()

translated_text = translator.translate(query='hi there', to_lang='fa')
print(translated_text)

Async Example

from itranslator.asyncio import Translator
from asyncio import run

translator = Translator()


async def main():
    translated_text = await translator.translate("Hello", "fa")
    print(translated_text)

run(main())

Install & Update

pip install itranslator -U

License

ITranslator is released under the GPL-3.0 License. See the bundled LICENSE file for details.

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

itranslator-3.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

itranslator-3.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file itranslator-3.0.tar.gz.

File metadata

  • Download URL: itranslator-3.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for itranslator-3.0.tar.gz
Algorithm Hash digest
SHA256 8a515e3283f58085170ee1ea850e65af3c08d64f62e8ec04e21e9189a827ea36
MD5 dbac37c97492fab09293c68847492a81
BLAKE2b-256 9cb88393d71391e52928d5165c14f6e7bb4ded84964d2d5cf7089ce74310dc27

See more details on using hashes here.

File details

Details for the file itranslator-3.0-py3-none-any.whl.

File metadata

  • Download URL: itranslator-3.0-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for itranslator-3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e129a61d25bf43ea82230f597352f6bb15b5925c11d15df13559c6ddb7c26d6
MD5 41b9c0f1fe2b396a51b36bda7e1b138c
BLAKE2b-256 fc4846a9c71a0d1c51c117a45c5837ae0642e162116be001af30079adaedf958

See more details on using hashes here.

Supported by

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