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:
- Azure Cognitive Services
pip install -U async-translate[azure]
- Google Translate
pip install -U async-translate[google]
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for async_translate-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 318e4d5055e69c131e63a7c150e3fa7df79d9e18897797a2a8363463a6364a88 |
|
MD5 | cf1195f1fa85b3d3dc1f8b473b342c6f |
|
BLAKE2b-256 | c92beb405ed55cb3818c36d8fc0fd8e92b9118aac567f9ed1a578bdf2625d8cf |