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.
| |travisci| |version| |versions| |impls| |wheel| |coverage| |br-coverage|
.. |travisci| image:: https://travis-ci.org/jonathaneunice/simplere.svg?branch=master :alt: Travis CI build status :target: https://travis-ci.org/jonathaneunice/simplere
.. |version| image:: http://img.shields.io/pypi/v/simplere.svg?style=flat :alt: PyPI Package latest release :target: https://pypi.python.org/pypi/simplere
.. |versions| image:: https://img.shields.io/pypi/pyversions/simplere.svg :alt: Supported versions :target: https://pypi.python.org/pypi/simplere
.. |impls| image:: https://img.shields.io/pypi/implementation/simplere.svg :alt: Supported implementations :target: https://pypi.python.org/pypi/simplere
.. |wheel| image:: https://img.shields.io/pypi/wheel/simplere.svg :alt: Wheel packaging support :target: https://pypi.python.org/pypi/simplere
.. |coverage| image:: https://img.shields.io/badge/test_coverage-100%25-6600CC.svg :alt: Test line coverage :target: https://pypi.python.org/pypi/simplere
.. |br-coverage| image:: https://img.shields.io/badge/test_coverage-100%25-6600CC.svg :alt: Test branch coverage :target: https://pypi.python.org/pypi/simplere
A simplified interface to Python's regular expression (re
) string
search. Eliminates steps and provides simpler access to results. As a bonus,
also provides compatible way to access Unix glob searches.
Python regular expressions are powerful, but the language's lack of an en passant (in passing) assignment requires a preparatory motion and then a test::
import re
match = re.search(pattern, some_string)
if match:
print match.group(1)
With simplere
, you can do it in fewer steps::
from simplere import *
if match / re.search(pattern, some_string):
print match[1]
That's particularly valuable in complex search-and-manipulate code that requires multiple levels of searching along with pre-conditions, error checking, and post-match cleanup, formatting, and actions.
As a bonus,
simplere
also provides simple glob access.::
if 'globtastic' in Glob('glob*'):
print "Yes! It is!"
else:
raise ValueError('OH YES IT IS!')
It can also conveniently match against multiple glob patterns, and/or do case-insensitive glob searches.
See Read the Docs <http://simplere.readthedocs.org/en/latest/>
_
for the full installation and usage documentation.
FAQs
Simpler, cleaner access to regular expressions. Globs too.
We found that simplere 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.