Skip to main content

Django plugin for interacting with a Dagster server

Project description

django-dagster

PyPI Python Versions CI/CD License

A Django plugin for interacting with a Dagster server through the Django admin interface.

Features

  • Native Django Admin integration — shows up as a Dagster section
  • List all jobs from connected Dagster instance
  • View runs with status and job filtering
  • Trigger new job executions with optional JSON run config
  • Cancel running jobs
  • Re-execute failed/canceled jobs
  • View detailed run metadata (config, tags, event logs)
  • Optional granular permission system using Django's built-in permissions

Screenshots

Jobs list Job detail
Jobs list Job detail
Trigger job Trigger success
Trigger job Trigger success
Runs list Run detail
Runs list Run detail

Requirements

  • Python 3.10+
  • Django 4.2+

Installation

pip install django-dagster

Configuration

Add django_dagster to INSTALLED_APPS and set DAGSTER_URL in your Django settings:

INSTALLED_APPS = [
    ...
    "django_dagster",
]

DAGSTER_URL = "http://localhost:3000"

Then run migrations to create the permission models:

python manage.py migrate django_dagster

No URL configuration is needed — the plugin registers itself with the Django admin automatically. Navigate to /admin/ and look for the Dagster section.

Permissions

By default, all staff users (is_staff=True) have full access to all Dagster views and actions. To enable granular, Django-native permission control, add this to your settings:

DAGSTER_PERMISSIONS_ENABLED = True

When enabled, access is governed by standard Django permissions that you can assign to users or groups via the Django admin:

Permission Codename Grants access to
Can view Job view_dagsterjob View job list and job detail pages
Can view Run view_dagsterrun View run list and run detail pages
Can trigger Dagster jobs trigger_dagsterjob Trigger/submit a new job run
Can cancel Dagster runs cancel_dagsterrun Cancel a running job
Can re-execute Dagster runs reexecute_dagsterrun Re-execute a completed/failed run

Superusers always have all permissions regardless of this setting.

Programmatic API

The package also exposes a Python API for use outside the admin:

from django_dagster import get_jobs, get_runs, get_run, submit_job, cancel_run, reexecute_run

Demo

A self-contained demo project is available in the demo/ directory with sample Dagster jobs and pre-configured users. See demo/README.md for instructions.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_dagster-0.1.0.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_dagster-0.1.0-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file django_dagster-0.1.0.tar.gz.

File metadata

  • Download URL: django_dagster-0.1.0.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_dagster-0.1.0.tar.gz
Algorithm Hash digest
SHA256 623c28666de0239b328df866beeacfc503bbda5d0d81370b1b0ee19e4952b8c3
MD5 5b1aa4564a19b69e76eb979ab91aa95d
BLAKE2b-256 a7ddcde18a108d7e1d68a8758818fb83c2df1a08eb0b96900072b7383b8a64ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_dagster-0.1.0.tar.gz:

Publisher: ci-cd.yml on rclement/django-dagster

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_dagster-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_dagster-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_dagster-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88d6f9de66ffbc1176d37bdb8ffafcdde69c4ea422cb75b7479a39b249b930ec
MD5 1200eb5409fd737e00f3f5fa221bb0c4
BLAKE2b-256 1c7db7414d4552dfa1b3d2db2bfd00d7c4ad14383a028c984560e628eac2795e

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_dagster-0.1.0-py3-none-any.whl:

Publisher: ci-cd.yml on rclement/django-dagster

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page