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.
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.
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-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edbf0a50927ba1e4ec70ab0415bae4e1d529ae37eb10c6fdd1b8e09944171394 |
|
MD5 | 3560fb0db366c195667c9c71f9fbf7a1 |
|
BLAKE2b-256 | 64dc09ee19b70f2567a6d9863194d3cc2d23c4598ff0d622450fe2d1edae9c9f |