{"id":48411174,"url":"https://github.com/rclement/django-dagster","last_synced_at":"2026-04-06T06:05:12.020Z","repository":{"id":338877821,"uuid":"1158431536","full_name":"rclement/django-dagster","owner":"rclement","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-03T09:59:37.000Z","size":1778,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-03T14:07:19.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rclement.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-15T11:10:28.000Z","updated_at":"2026-04-03T09:58:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rclement/django-dagster","commit_stats":null,"previous_names":["rclement/django-dagster"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rclement/django-dagster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rclement%2Fdjango-dagster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rclement%2Fdjango-dagster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rclement%2Fdjango-dagster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rclement%2Fdjango-dagster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rclement","download_url":"https://codeload.github.com/rclement/django-dagster/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rclement%2Fdjango-dagster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31461534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-06T06:05:10.265Z","updated_at":"2026-04-06T06:05:12.015Z","avatar_url":"https://github.com/rclement.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-dagster\n\n[![PyPI](https://img.shields.io/pypi/v/django-dagster.svg)](https://pypi.org/project/django-dagster/)\n[![Python Versions](https://img.shields.io/pypi/pyversions/django-dagster?logo=python\u0026logoColor=white)](https://pypi.org/project/django-dagster/)\n[![CI/CD](https://github.com/rclement/django-dagster/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/rclement/django-dagster/actions/workflows/ci-cd.yml)\n[![License](https://img.shields.io/github/license/rclement/django-dagster)](https://github.com/rclement/django-dagster/blob/main/LICENSE)\n\nA Django plugin for interacting with a [Dagster](https://dagster.io/) server through the Django admin interface.\n\n## Features\n\n- Native Django Admin integration — shows up as a **Dagster** section\n- List all jobs from connected Dagster instance\n- View runs with status and job filtering\n- Trigger new job executions with optional JSON run config\n- Cancel running jobs\n- Re-execute failed/canceled jobs\n- View detailed run metadata (config, tags, event logs)\n- Granular permission system using Django's built-in permissions\n\n## Screenshots\n\n| Jobs list | Job detail |\n|---|---|\n| ![Jobs list](https://raw.githubusercontent.com/rclement/django-dagster/main/docs/screenshots/jobs_list.png) | ![Job detail](https://raw.githubusercontent.com/rclement/django-dagster/main/docs/screenshots/job_detail.png) |\n\n| Trigger job | Trigger success |\n|---|---|\n| ![Trigger job](https://raw.githubusercontent.com/rclement/django-dagster/main/docs/screenshots/job_trigger.png) | ![Trigger success](https://raw.githubusercontent.com/rclement/django-dagster/main/docs/screenshots/job_trigger_success.png) |\n\n| Runs list | Run detail |\n|---|---|\n| ![Runs list](https://raw.githubusercontent.com/rclement/django-dagster/main/docs/screenshots/runs_list.png) | ![Run detail](https://raw.githubusercontent.com/rclement/django-dagster/main/docs/screenshots/run_detail.png) |\n\n## Requirements\n\n- Python 3.10+\n- Django 4.2+\n\n## Installation\n\n```bash\npip install django-dagster\n```\n\n## Configuration\n\nAdd `django_dagster` to `INSTALLED_APPS` and set `DAGSTER_URL` in your Django settings:\n\n```python\nINSTALLED_APPS = [\n    ...\n    \"django_dagster\",\n]\n\nDAGSTER_URL = \"http://localhost:3000\"\n```\n\nThen run migrations to create the permission models:\n\n```bash\npython manage.py migrate django_dagster\n```\n\nNo URL configuration or manual admin registration is needed. Navigate to `/admin/` and look for the **Dagster** section.\n\n## Permissions\n\nAccess is governed by standard Django permissions that you can assign to users or groups via the Django admin. Superusers always have full access.\n\n| Permission | Codename | Grants access to |\n|---|---|---|\n| Can view Job | `view_dagsterjob` | View job list and job detail pages |\n| Can view Run | `view_dagsterrun` | View run list and run detail pages |\n| Can trigger Dagster jobs | `trigger_dagsterjob` | Trigger/submit a new job run |\n| Can cancel Dagster runs | `cancel_dagsterrun` | Cancel a running job |\n| Can re-execute Dagster runs | `reexecute_dagsterrun` | Re-execute a completed/failed run |\n| Can access the Dagster UI | `access_dagster_ui` | Show direct links to the Dagster UI |\n\nTo customise behaviour — for example, granting all staff users full access by default — unregister the defaults and register your own subclass in your project's `admin.py`:\n\n```python\nfrom django.contrib import admin\nfrom django_dagster.admin import DagsterJobAdmin, DagsterRunAdmin\nfrom django_dagster.models import DagsterJob, DagsterRun\n\ndef _is_active_staff(request):\n    return request.user.is_active and request.user.is_staff\n\nclass MyDagsterJobAdmin(DagsterJobAdmin):\n    def has_module_permission(self, request):\n        return _is_active_staff(request)\n\n    def has_view_permission(self, request, obj=None):\n        return _is_active_staff(request)\n\n    def has_trigger_dagsterjob_permission(self, request):\n        return _is_active_staff(request)\n\n    def has_access_dagster_ui_permission(self, request):\n        return _is_active_staff(request)\n\nclass MyDagsterRunAdmin(DagsterRunAdmin):\n    def has_module_permission(self, request):\n        return _is_active_staff(request)\n\n    def has_view_permission(self, request, obj=None):\n        return _is_active_staff(request)\n\n    def has_cancel_dagsterrun_permission(self, request):\n        return _is_active_staff(request)\n\n    def has_reexecute_dagsterrun_permission(self, request):\n        return _is_active_staff(request)\n\n    def has_access_dagster_ui_permission(self, request):\n        return _is_active_staff(request)\n\nadmin.site.unregister(DagsterJob)\nadmin.site.unregister(DagsterRun)\nadmin.site.register(DagsterJob, MyDagsterJobAdmin)\nadmin.site.register(DagsterRun, MyDagsterRunAdmin)\n```\n\n## Programmatic API\n\nThe package exposes Django model-like objects for use outside the admin:\n\n```python\nfrom django_dagster import DagsterJob, DagsterRun\n\n# List all jobs\njobs = DagsterJob.objects.all()\n\n# Get a specific job (requires the repository and location names)\njob = DagsterJob.objects.get(\n    name=\"etl_pipeline\",\n    repository=\"__repository__\",\n    location=\"my_location\",\n)\n\n# Trigger a job\nrun_id = job.submit(run_config={\"ops\": {\"my_op\": {\"config\": {\"x\": 1}}}})\n\n# Get default run config\nconfig = job.get_default_run_config()\n\n# List runs (with optional filtering)\nruns = DagsterRun.objects.all()\nruns = DagsterRun.objects.filter(job_name=\"etl_pipeline\", statuses=[\"SUCCESS\"])\n\n# Get a specific run\nrun = DagsterRun.objects.get(run_id=\"abc123\")\n\n# Cancel / re-execute a run\nrun.cancel()\nnew_run_id = run.reexecute()\n\n# Get event logs\nevents = run.get_events()\n```\n\n## Demo\n\nA self-contained demo project is available in the [`demo/`](demo/) directory with sample Dagster jobs and pre-configured users. See [`demo/README.md`](demo/README.md) for instructions.\n\n## License\n\nThis project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frclement%2Fdjango-dagster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frclement%2Fdjango-dagster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frclement%2Fdjango-dagster/lists"}