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.
Python Hot Reload starts the given program and reloads it whenever any file changes in the current directory or imported modules.
Python Hot Reload starts the given program and reloads it whenever any file changes in the current directory or imported modules.
You can install the Python Hot Reload from PyPI:
python -m pip install py-hot-reload
Python Hot Reload is supported on Python 3.6 and above.
Python Hot Reload has a command line implementation called py-hot-reload
. To see help message, call the program with -h, --help
:
$ py-hot-reload -h
Usage: py-hot-reload [OPTIONS] PYTHON_FILE
Options:
-V, --version Show the version and exit.
-C, --copyright Show the copyright and exit.
-v, --verbose Verbose.
-ep, --extra-patterns TEXT Extra patterns
-ip, --ignore-patterns TEXT Ignore patterns
-i, --interval INTEGER Interval
--add-current-folder-to-patterns
Add current folder to patterns.
--ignore-venv-and-python-lib Ignore venv and python lib.
-h, --help Show this message and exit.
To run ignoring certain patterns, run using -ip, --ignore-patterns
:
$ py-hot-reload -ip="*.txt;*/dir/*" <python-file>
To run with extra patterns, run using -ep, --extra-patterns
:
$ py-hot-reload -ep="*.txt;*/dir/*" <python-file>
You can also call the Python Hot Reload in your own Python code, by importing from the py_hot_reload
package:
import py_hot_reload
def main():
print(1)
py_hot_reload.run_with_reloader(main)
FAQs
Python Hot Reload starts the given program and reloads it whenever any file changes in the current directory or imported modules.
We found that py-hot-reload 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.