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-python

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_python-0.0.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

aiolang_python-0.0.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file aiolang_python-0.0.1.tar.gz.

File metadata

  • Download URL: aiolang_python-0.0.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for aiolang_python-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e0e4837d11220d018dd3af4f561d0f896523e62bd75422283ecf385164f644a4
MD5 29e748c3c25b8723f13bac64b5c0c0c3
BLAKE2b-256 494590ebead7d8f6af98ef4b482be3087f79ab2502e94cce925c7a3b4da53784

See more details on using hashes here.

File details

Details for the file aiolang_python-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: aiolang_python-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for aiolang_python-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7253922e0c81820097d0472664e674421c8ee4a658296556af56f9f7b3769cbd
MD5 8b0647dd815ded032236f0cc54b15df2
BLAKE2b-256 a5c01203421a86f27162f572ad2942bf6b56936024103382fc56cc41160d50d8

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