Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
async-google-trans-new
Advanced tools
This is a library based on google_trans_new but it is async!
It's very easy to use and solve the problem that the old api which use tk value cannot be used.
This interface is for academic use only, please do not use it for commercial use.
Run this:
pip install async-google-trans-new
import asyncio
import async_google_trans_new
async def coro():
g = async_google_trans_new.AsyncTranslator()
print(await g.translate("こんにちは、世界!","en"))
loop = asyncio.get_event_loop()
loop.run_until_complete(coro())
-> Hello world!
import asyncio
from async_google_trans_new import AsyncTranslator
async def coro():
g = AsyncTranslator()
texts = ["こんにちは、世界!", "こんばんは、世界!", "おはよう、世界!"]
gathers = []
for text in texts:
gathers.append(g.translate(text, "en"))
print(await asyncio.gather(*gathers))
loop = asyncio.get_event_loop()
loop.run_until_complete(coro())
-> ['Hello World! ', 'Good evening, the world! ', 'Good morning, the world! ']
Please see LICENSE.
FAQs
google_trans_new but it is async!
We found that async-google-trans-new demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.