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.
rq-scheduler-dashboard
Advanced tools
rq-scheduler-dashboard is a copy of rq-dashboard for rq-scheduler jobs, based on the code from this PR: https://github.com/ducu/rq-dashboard/pull/95
rq-scheduler-dashboard
is a copy of rq-dashboard for rq-scheduler jobs,
based on the code from this PR: https://github.com/ducu/rq-dashboard/pull/95.
This just wraps the code from @helenst into a separate package.
|image1|
.. code:: console
$ pip install rq-scheduler-dashboard
Run the dashboard standalone, like this:
.. code:: console
$ rq-scheduler-dashboard
* Running on http://127.0.0.1:9181/
...
.. code:: console
$ rq-scheduler-dashboard --help
Usage: rq-scheduler-dashboard [OPTIONS]
Run the RQ Scheduler Dashboard Flask server.
All configuration can be set on the command line or through environment
variables of the form RQ_SCHEDULER_DASHBOARD_*. For example RQ_SCHEDULER_DASHBOARD_USERNAME.
A subset of the configuration (the configuration parameters used by the
underlying flask blueprint) can also be provided in a Python module
referenced using --config, or with a .cfg file referenced by the
RQ_SCHEDULER_DASHBOARD_SETTINGS environment variable.
Options:
-b, --bind TEXT IP or hostname on which to bind HTTP server
-p, --port INTEGER Port on which to bind HTTP server
--url-prefix TEXT URL prefix e.g. for use behind a reverse proxy
--username TEXT HTTP Basic Auth username (not used if not set)
--password TEXT HTTP Basic Auth password
-c, --config TEXT Configuration file (Python module on search
path)
-H, --redis-host TEXT IP address or hostname of Redis server
-P, --redis-port INTEGER Port of Redis server
--redis-password TEXT Password for Redis server
-D, --redis-database INTEGER Database of Redis server
-u, --redis-url TEXT Redis URL connection (overrides other
individual settings)
--interval INTEGER Refresh interval in ms
--help Show this message and exit.
The dashboard can be integrated in to your own Flask
_ app by accessing the
blueprint directly in the normal way, e.g.:
.. code:: python
from flask import Flask
import RQ_SCHEDULER_DASHBOARD
app = Flask(__name__)
app.config.from_object(RQ_SCHEDULER_DASHBOARD.default_settings)
app.register_blueprint(RQ_SCHEDULER_DASHBOARD.blueprint)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.run()
The cli.py:main
entry point provides a simple working example.
We use piptools_ to keep our development dependencies up to date
::
$ pip install --upgrade pip
$ pip install git+https://github.com/nvie/pip-tools.git@future
Now make changes to the requirements.in
file, and resolve all the
2nd-level dependencies into requirements.txt
like so:
::
$ pip-compile --annotate requirements.in
Develop in a virtualenv and make sure you have all the necessary build time (and run time) dependencies with
::
$ pip install -r requirements.txt
Develop in the normal way with
::
$ python setup.py develop
Then use Fabric to perform various development tasks. For example, to tag, build and upload to testpypi
::
$ git tag 0.3.5 # no 'v' prefix or anything
$ fab build
$ fab upload
This requires write access to both the GitHub repo and to the PyPI test site.
See fab -l
for more options and fab -d <subcommand>
for details.
The RQ Scheduler Dashboard is currently being developed and is in beta stage.
.. _piptools: https://github.com/nvie/pip-tools .. _Flask: http://flask.pocoo.org/ .. _RQ: http://python-rq.org/
.. |image1| image:: https://cloud.githubusercontent.com/assets/3680882/14828693/129cd2f2-0bb6-11e6-9adf-dd635aa81334.png
FAQs
rq-scheduler-dashboard is a copy of rq-dashboard for rq-scheduler jobs, based on the code from this PR: https://github.com/ducu/rq-dashboard/pull/95
We found that rq-scheduler-dashboard 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.