Translate Google Framework For Python
Project description
Translate Google Framework For Python
aiolang
Simple, modern, asynchronous for API building use or normal user use.
Example Usage
Model 1
import asyncio
from aiolang import Aiolang, TranslationError
async def main():
async with Aiolang() as aiolang:
try:
result = await aiolang.translate_text("hello", "fa")
print(result)
except TranslationError as log:
log.display_error()
if __name__ == "__main__":
asyncio.run(main())
Model 2
import asyncio
from aiolang import Aiolang, TranslationError
async def main():
aiolang = Aiolang()
try:
result = await aiolang.translate_text("hello", "fa")
print(result)
except TranslationError as log:
log.display_error()
if __name__ == "__main__":
asyncio.run(main())
Key Features
- API:
No key needed. Google translator public API is used.
- Easy:
Simple appearance and syntax for novice users.
- Async:
Written asynchronously for greater flexibility.
Install
pip3 install -U aiolang-python
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
aiolang_python-0.0.2.tar.gz
(9.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiolang_python-0.0.2.tar.gz.
File metadata
- Download URL: aiolang_python-0.0.2.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
912215bf9d4d90321e6f56c6bb6e209ef9bd716866de0af2bee90996f23475c5
|
|
| MD5 |
024fff175a9466b2a246e58b4cd41ab9
|
|
| BLAKE2b-256 |
2ea0d2931d394085e74f78e08c884ed8fb47701e264a2a8eb10ac6dbb9c765dc
|
File details
Details for the file aiolang_python-0.0.2-py3-none-any.whl.
File metadata
- Download URL: aiolang_python-0.0.2-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc04f139d47a06d8cd56ee128d77b8fabd2ed3cce8c7f7cc12f024675c5ffb3a
|
|
| MD5 |
08a1d2305acc8646bd8dc16934554da0
|
|
| BLAKE2b-256 |
a3878ade35900503630797c521fa78344010b9e4ec0ff3ec8ce51574f3e29810
|