django_dramatiq_charts 📊
Draw charts by django_dramatiq task history in db.
Chart types: load and timeline.
Python version |
3.6+ |
License |
Apache-2.0 |
PyPI |
Installation
$ pip install django-dramatiq-charts
Requirements:
Django 2.2+
dramatiq 1.11+
django-dramatiq 0.10.0+
Guide
Configuration
Add django_dramatiq_charts to installed apps after django_dramatiq app:
INSTALLED_APPS = [
'django_dramatiq',
'django_dramatiq_charts',
'my_app',
# ...
]
Add lib views to your urls:
from django_dramatiq_charts.views import load_chart, timeline_chart, clean_cache
urlpatterns = [
path('django_dramatiq_charts/load_chart/', load_chart, name='ddc_load_chart'),
path('django_dramatiq_charts/timeline_chart/', timeline_chart, name='ddc_timeline_chart'),
path('django_dramatiq_charts/clean_cache/', clean_cache, name='ddc_clean_cache'),
# ...
]
Configure lib in your project settings file:
Parameter |
Description |
Default |
|---|---|---|
DJANGO_DRAMATIQ_CHARTS_PERM_FN |
users with access to the charts |
def fn(request): return request.user.is_superuser |
DJANGO_DRAMATIQ_CHARTS_LOAD_QS_FILTER |
Additional queryset filter for load chart |
None |
DJANGO_DRAMATIQ_CHARTS_TIMELINE_QS_FILTER |
Additional queryset filter for timeline chart |
None |
DJANGO_DRAMATIQ_CHARTS_CACHE_FORM_DATA_SEC |
Minutes to cache choices of queue and actor form fields (False-like to disable) |
4 hours |
DJANGO_DRAMATIQ_CHARTS_CLEAN_CACHE_REDIRECT_URL |
Url for redirect to after clean cache |
None |
Load chart
Shows the number of simultaneously executed actors in each time interval on timeline
Tasks running more than one day are not counted (assumed to be an error).
Timeline chart
Shows actors on timeline
If the task duration is less than a second, this task is displayed on the chart with a duration of 1 second.
Release notes
History of important changes: release_notes.rst
Thanks
Thanks to all who helped develop this library:
MilkyCake, lexa2907, python, django, plotly, jquery, select2, flaticon.com
Metadata
Release files for django-dramatiq-charts 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 | |
|---|---|---|---|
| django_dramatiq_charts-0.4.0.tar.gz | 1.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_dramatiq_charts-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.3 MB
Release files / django_dramatiq_charts-0.4.0.tar.gz
| Download URL | django_dramatiq_charts-0.4.0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
870fdbbbf903f887c188a799f3f188e9383fecbf7639871a5276d394fd667fd3
|
|
BLAKE2b-256 checksum How to use checksums |
213c54781f23910905cc99b153a3b4cb253bc6dbedf27792f51873f6cd15adbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.6
|
Release files / django_dramatiq_charts-0.4.0-py3-none-any.whl
| Download URL | django_dramatiq_charts-0.4.0-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63c22152dde1a25b81b9341026cfac843c6aec1d4adb050902f4be1105ff929d
|
|
BLAKE2b-256 checksum How to use checksums |
95c907cc17710e5c71f3c015b2e7aa0315a5afda36cc9d0a86b4db91ab9ee416
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.6
|