
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Tested with:
Use the following command to install using pip:
pip install farsi-tools
Use replace_arabic_digits_with_farsi
method to replace arabic digits with farsi digits.
from farsi_tools import replace_arabic_digits_with_farsi
replace_arabic_digits_with_farsi('٤') # returns ۴
Use replace_ascii_digits_with_farsi
method to replace ASCII digits with farsi digits.
from farsi_tools import replace_ascii_digits_with_farsi
replace_ascii_digits_with_farsi('4') # returns ۴
Use replace_farsi_digits_with_ascii
method to replace farsi digits with ASCII digits.
from farsi_tools import replace_farsi_digits_with_ascii
replace_farsi_digits_with_ascii('۴') # returns 4
Use replace_arabic_digits_with_ascii
method to replace farsi digits with ASCII digits.
from farsi_tools import replace_arabic_digits_with_ascii
replace_arabic_digits_with_ascii('٤') # returns 4
Use standardize_persian_text
method to convert characters to standard persian form
from farsi_tools import standardize_persian_text
standardize_persian_text('سلام خوبي؟ کمك ﻧميخواي؟') # returns "سلام خوبی؟ کمک نمیخوای؟"
Use stopwords
method to retrieve list of persian stop-words
from farsi_tools import stop_words
stop_words()
FAQs
Farsi Tools: Tools for processing Farsi (Persian) text
We found that farsi-tools 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 researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.