dramatiq_dashboard
A dashboard for dramatiq, specific to its Redis broker (sorry RabbitMQ users!). Very alpha stuff.
It comes in the form of a WSGI middleware, with as few dependencies as
possible (dramatiq, jinja2 and redis) so it's super easy to plug
into whatever web application you have.
Installation
pip install dramatiq_dashboard
Quickstart
Run the dashboard on top of an existing WSGI app
# Assuming at some point you instantiate your app.
app = create_wsgi_application()
# Import the library, create the middleware and wrap your app with it.
import dramatiq_dashboard
dashboard_middleware = dramatiq_dashboard.make_wsgi_middleware("/drama")
app = dashboard_middleware(app)
Run your app, visit /drama and you should see the dashboard.
Run the dashboard as a standalone webserver
If you don't want to wrap an existing WSGI app, you can also run the
dashboard as a standalone server. Install the WSGI server of your
choice (e.g. uWSGi, gunicorn, bjoern, etc), setup the Redis broker,
and then start DashboardApp directly.
For example, to serve the dashboard on http://127.0.0.1:8080 using
the bjoern WSGI server and a redis server on 17.0.0.1:6379, run
the following:
import bjoern
import dramatiq
from dramatiq.brokers.redis import RedisBroker
from dramatiq_dashboard import DashboardApp
broker = RedisBroker(host="127.0.0.1", port=6379)
broker.declare_queue("default")
dramatiq.set_broker(broker)
app = DashboardApp(broker=broker, prefix="")
bjoern.run(app, "127.0.0.1", 8080)
Then visit http://127.0.0.1:8080/ to see the running dashboard.
Note that if you use custom queues in your application, they won't be
discovered using this approach. You'll have to either add each one of
them manually to your broker or import and pass your application's
broker to DashboardApp.
License
dramatiq_dashboard is licensed under the LGPL. Please see COPYING and COPYING.LESSER for licensing details.
Metadata
Release files for dramatiq-dashboard 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dramatiq_dashboard-0.4.0.tar.gz | 28.0 kB | Without provenance | Details for dramatiq_dashboard-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dramatiq_dashboard-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for dramatiq_dashboard-0.4.0-py3-none-any.whl |
Total release size: 59.2 kB
Release files / dramatiq_dashboard-0.4.0.tar.gz
| Download URL | dramatiq_dashboard-0.4.0.tar.gz |
|---|---|
| Size | 28.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e121e346cfce7fe15316952f035360cd8d4c3265d859576be8d4a3142b90f43a
|
|
BLAKE2b-256 checksum How to use checksums |
3e236735768b891416cfc1ccacb800f445640755819d68fad0f5a3b89403b187
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
|
Release files / dramatiq_dashboard-0.4.0-py3-none-any.whl
| Download URL | dramatiq_dashboard-0.4.0-py3-none-any.whl |
|---|---|
| Size | 31.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb334f32f971a058d5ee9a0673497241547f31779f79343bb71ed8499b1af2f6
|
|
BLAKE2b-256 checksum How to use checksums |
cc18e62e164025cba5e150348c976d472f9b9d6a68a1dfaeec8fffc216bbd448
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
|
Security for dramatiq-dashboard 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.