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

Uploaded Source

Built Distribution

async_translate-0.0.10-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: async_translate-0.0.10.tar.gz
  • Upload date:
  • Size: 7.8 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.50.0 CPython/3.8.5

File hashes

Hashes for async_translate-0.0.10.tar.gz
Algorithm Hash digest
SHA256 8b603574e0195b969217ae6aa0a585ed98a84a905881cd5c489531fc120eb5ea
MD5 55a1c3a72121d5765b9e35f9c5bc7807
BLAKE2b-256 28dd5bedfe1417470cb73cd74ed3628e30b1e60ca9ebee04d3c2259f07ec34d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: async_translate-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 10.1 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.50.0 CPython/3.8.5

File hashes

Hashes for async_translate-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 ecf73202bd9fa062d8182fddfd0bfdea02bb44f5163f9a5ca488c504f1589e4e
MD5 e7d3e3bbacc4ac5db9dad43299d574ca
BLAKE2b-256 5f87300454c05f5a97e3e1838fcd007c72d9df30b446f04d058c120dd1c018f5

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