
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Moduł Python'a pozwalający na tłumaczenie z polskiego słownika diki.pl.
pip install diki_translate
Moduł zawiera klasę Diki
z funkcją diki.translation(word, exact_word = 1)
word
, akceptuje string, który masz zamiar przetłumaczyć.
exact_word
, opcjonalny argument akceptujący int (domyślnie 1), określający czy funkcja ma zwrócić dokładne tłumaczenie słowa, np. czy dla słowa 'used' mają zostać wyświetlone tłumaczenia słowa 'use'.
Wszystkie operacje są zaimplementowane w klasie Diki
.
Wymaga ona podania języka, na który masz zamiar tłumaczyć.
from diki_translate import Diki
diki = Diki("english")
Wszystkie dozwolone języki to: "english", "german", "spanish", "italian", "french".
>>> list(diki.translation('used'))
['używany', 'przyzwyczajony', 'przywykły']
>>> list(diki.translation('used', 0))
['używany', 'przyzwyczajony', 'przywykły', 'używać', 'korzystać (np. z telefonu, toalety)', 'zużywać', 'wykorzystywać (np. kogoś do swoich celów)',...]
Funkcja zwraca iterator by nie żądać więcej wyników niż trzeba.
FAQs
A module for translating words using diki.pl dictionary.
We found that diki-translate 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.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket investigates hidden protestware in npm packages that blocks user interaction and plays the Ukrainian anthem for Russian-language visitors.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.