aiotranslate
Free google translate module that uses async/await syntax.
Example
from aiotranslate import Translator
import asyncio
async def main():
translator = Translator()
# you can add aiohttp session if you want like -> Translator(session=aiohttp.ClientSession())
# also you can save the translates like -> Translator(save_translates=True)
translated = await translator.translate("hello", "tr", "en")
# first argument: the text will be translated
# second argument: the language will converted
# last argument: the language that text
print(translated) # -> Merhaba
print(translator.history()) # shows all translates that saved.
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Metadata
Release files for aiotranslate 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aiotranslate-0.0.1.tar.gz | 2.2 kB | Without provenance | Details |
Release files / aiotranslate-0.0.1.tar.gz
| Download URL | aiotranslate-0.0.1.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f089c4aae8a32c076260c950168d24a015d48006f4f65688a8d4cfe13ad4d594
|
|
BLAKE2b-256 checksum How to use checksums |
54405831af46715881b735b3bdf0f69f024aaf14a4e166e0a387b28ad62581b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.0
|
Security for aiotranslate 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.