Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Library to aid in organizing, running, and debugging regular expressions against large bodies of text.
Library to aid in organizing, running, and debugging regular expressions against large bodies of text.
The goal of this library is to simplify the deployment of regular expression on large bodies of text, in a variety of input formats.
To get a local copy up and running follow these simple steps.
git clone https://github.com/kpwhri/runrex.git
requirements-dev
is for test packages)
pip install -r requirements.txt -r requirements-dev.txt
requirements-db.txt
requirements-psql.txt
requirements-sas.txt
set/export PYTHONPATH=src
pytest tests
patterns.py
: defines regular expressions of interest
examples/example_patterns.py
for some examplestest_patterns.py
: tests for those regular expressions
algorithm.py
: defines algorithm (how to use regular expressions); returns a Result
examples/example_algorithm.py
for guidanceconfig.(py|json|yaml)
: various configurations defined in schema.py
examples/example_config.py
for basic configAccepts a variety of input formats, but will need to at least specify a document_id
and document_text
. The names are configurable.
By default, the input document text is expected to have each sentence on a separate line. If a sentence splitting scheme is desired, it will need to be supplied to the application.
For more details, see the example config or consult the schema
jsonl
import json
with open('output.jsonl') as fh:
for line in fh:
data = json.loads(line) # data is dict
Output variables are configurable and can include:
Scripts to accomplish useful tasks with the output are included in the scripts
directory.
Uses SEMVER.
See https://github.com/kpwhri/runrex/releases.
See the open issues for a list of proposed features (and known issues).
Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License.
See LICENSE
or https://kpwhri.mit-license.org for more information.
Please use the issue tracker.
FAQs
Library to aid in organizing, running, and debugging regular expressions against large bodies of text.
We found that runrex 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.