Skip to main content

Translate Google Framework For Python

Project description

icon

Translate Google Framework For Python

aiolang

Simple, modern, asynchronous for API building use or normal user use.


Example Usage

Model 1

import asyncio
import asyncio
from aiolang import Aiolang, TranslationError

async def main():
    async with Aiolang() as aiolang:
        try:
            result = await aiolang.translate_text("hello", "fa")
            print(result)
        except TranslationError as log:
            log.display_error()

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

Model 2

import asyncio
from aiolang import Aiolang, TranslationError

async def main():
    aiolang = Aiolang()
    try:
        result = await aiolang.translate_text("hello", "fa")
        print(result)
    except TranslationError as log:
        log.display_error()

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

Key Features

  • API:

No key needed. Google translator public API is used.

  • Easy:

Simple appearance and syntax for novice users.

  • Async:

Written asynchronously for greater flexibility.


Install

pip3 install -U aiolang

support

cover

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

aiolang-0.0.3.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

aiolang-0.0.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file aiolang-0.0.3.tar.gz.

File metadata

  • Download URL: aiolang-0.0.3.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for aiolang-0.0.3.tar.gz
Algorithm Hash digest
SHA256 66e4443585d579edacd6f807131a913e27b2064d37bea3a594379b0d8170c035
MD5 c1108c5f22b72d9242e1ddcc455498fc
BLAKE2b-256 9956b4b2feff8cd6f55747d599ee1e20d605b05f80c5c3fe2de3b9c20a63e664

See more details on using hashes here.

File details

Details for the file aiolang-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: aiolang-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for aiolang-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0b21652ae60c141aa2b5d0dfc069eeac517c1e1405bf9df3aa6d7efe8f1cf205
MD5 b581732f8a78ee17b30748d5dfc2ca12
BLAKE2b-256 29c66ab8e3fdb0e1dad94583253446a8843999c006872785e0eaeeead966521c

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