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.
Lingua-py is an Python wrapper for the Rust lingua crate with PyO3/Maturin.
Lingua is a NIF-based bridge for the lingua Rust language detection library.
In imitation of Upstream, introduce basic usage.
Alternatively please see tests
section.
languages: list[Language] = [Language.English, Language.Japanese]
detector: LanguageDetector = LanguageDetectorBuilder.from_languages(
languages
).build()
expected: Language = Language.Japanese
actual: Language = detector.detect_language_of("ใใใฏไฝ่ชใงใใ๏ผ")
assert actual == expected
rye sync --no-lock
rye run python -m pytest -s -vv python/tests/small_usage/test_basic.py::test_basic
Apache License v2, and lingua-rs is also Apache License v2.
FAQs
Python bindings for the Lingua(LanguageDetect) Rust library
We found that lingua-py 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.