Skip to main content

Multi-provider async translate API

Project description

async_translate

Multi-provider async translate API

Why?

Most translate APIs work on one backend (usually Google Translate), and few are fully asynchronous.

I wanted a translate API that uses async and await, and I wanted to be able to use multiple providers without having to deal with their different APIs.

I built this to use with my Discord bot, Mr. Translate.

Installation

Currently this uses Python 3.8 specific features. See ROADMAP.md

Install with pip install -U async-translate.

Optional Default Providers

A few providers are baked into this package. You can install them with:

Custom Providers

See CUSTOM_PROVIDERS.md on making your own providers.

Feel free to contribute back to the project with a pull request containing code for other providers.

Sample Usage

See sample.py for basic sample usage

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

async_translate-0.0.4.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

async_translate-0.0.4-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file async_translate-0.0.4.tar.gz.

File metadata

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

File hashes

Hashes for async_translate-0.0.4.tar.gz
Algorithm Hash digest
SHA256 aabce70c9ac11b34cec060c3062c34b5e87d4b314f3f803843ca15ec308514c1
MD5 db6cd0ae6ed0545c249ff60c8cc00d9e
BLAKE2b-256 6458776668810df482748c6485c312f638ef98f88c88e89f9ae404cb7457cff5

See more details on using hashes here.

File details

Details for the file async_translate-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: async_translate-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for async_translate-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 624aa9c74caa223e5a314fea91b9f57a835c441ee560e61aee1737202db28f13
MD5 3ad414b31314be1aeba19a742d5c82c2
BLAKE2b-256 a8d7a9378c515db29cd88adba0c3e2f194d86ad7adeaf723dbbe4d35ed517008

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