Skip to main content

A Python3 library for translating text using Google Translate API.

Reason this release was yanked:

Fixed README

Project description

gpytranslate

A Python3 library for translating text using Google Translate API.


Features

  • Asynchronous
  • Type hinted
  • Free to use
  • Easy

Quick Start

Installation

Requirements:

  • Python 3.6 or higher.
$ python -m pip install gpytranslate

Usage

Example:

from gpytranslate import Translator
import asyncio


async def main():
    tr = Translator()
    translation = await tr("Ciao come stai? Io bene ahah.", targetlang='en')
    language = await tr.detect("Ciao come stai? Io bene ahah.")
    print(f"Translation: {translation.text}\nDetected language: {language}")


if __name__ == "__main__":
    asyncio.run(main())

Output:

Translation: Hello how are you? I'm fine, haha.
Detected language: it

Development

Want to contribute? Pull requests are accepted!


License

GNU GPLv3

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

gpytranslate-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

gpytranslate-0.1.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gpytranslate-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for gpytranslate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ab2e22b33bfb70803cf95ec088d7d57b2024f4c516c948548ddc8e581fcfb8aa
MD5 a3c1464d007d1df5f62511bf4f23b4d1
BLAKE2b-256 04df9ca5592ed41f90d52b5499b5ecc2e34e693a6976c35ded78bec8b35dba86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gpytranslate-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for gpytranslate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f6eb124f1b4c1de031cafe21349761d9473ce135e8e72ded6d6f1090c7b4518
MD5 da92bb4209a71e88f6c8431899c2697c
BLAKE2b-256 468a74757883f0714ddd1689851f577fe1c9593be3748e54acfffd97eaa7a0e0

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