
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.
A utility library for quickly cleaning texts
Python version in the dev environment: 3.11.5
pip install -U texy
Pipelines with parallelization in Rust:
>>> from texy.pipelines import extreme_clean, strict_clean, relaxed_clean
>>> data = ["hello ;/ from the other side 😊 \t "]
print(extreme_clean(data))
>>> ['hello from the other side']
print(strict_clean(data))
>>> ['hello ;/ from the other side']
print(relaxed_clean(data))
>>> ['hello ;/ from the other side 😊']
Parallelize custom functions with Python Multiprocessing:
from texy.pipelines import parallelize
def dummy(x):
return [i[0] for i in x]
data = ["a ", "b ", "c ", "d ", "e ", "f ", "g ", "h ?."] * 100
print(parallelize(dummy, data, 2))
Pipeline | Actions |
---|---|
relaxed_clean | remove_newlines , remove_html , remove_xml , merge_spaces |
strict_clean | remove_newlines , remove_urls , remove_emails , remove_html , remove_xml , remove_emoticons , remove_emojis , remove_infrequent_punctuations , merge_spaces |
extreme_clean | remove_newlines , remove_urls , remove_emails , remove_html , remove_xml , remove_emoticons , remove_emojis , remove_all_punctuations , merge_spaces |
FAQs
Supercharge text processing
We found that texy 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.