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.2.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

async_translate-0.2.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: async_translate-0.2.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for async_translate-0.2.0.tar.gz
Algorithm Hash digest
SHA256 588fa93c602c57b1f1ab0e53cfa26dd735fa5bb0b3d65e001944e04193e9bff7
MD5 aa952d9698ce1746694644ce0baa1298
BLAKE2b-256 ca27ea0c8d5ffcce74c307623ab4886978ff8f468071d695e166f955862d3147

See more details on using hashes here.

File details

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

File metadata

  • Download URL: async_translate-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for async_translate-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3f0299e9ebbf994aee2fbc1d7f37821b47c0d7b24db734c008e4e79849cf317
MD5 d0c9cf9224a4835a920171c5b579cd05
BLAKE2b-256 983640d547db16835ca1b52da3fc9b0c2aee01cdeb552d53ea4486ee1e41e530

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