{"categories":[{"label":"Monitoring","url":"https://skillfed.io/packages/category/system-monitoring/2"}],"enrichment":{"capability":"Provides Django management commands and utilities to view, filter, cancel, and terminate active PostgreSQL queries, plus middleware for annotating queries with application context.","skillfed_tags":["postgres-monitoring","django-admin","query-control"],"use_cases":["Identify and terminate runaway or long-running queries during production incidents.","Debug slow endpoints by correlating slow queries with request URLs via attached context.","Enforce query timeouts on specific operations to prevent resource exhaustion.","Monitor idle-in-transaction connections that may be holding locks.","Inspect active query SQL and connection metadata from a Django management command."],"what_it_does":"django-pgactivity is a Django package that wraps PostgreSQL's pg_stat_activity view to give you visibility into active database queries. It provides a management command to list, filter, and control queries (cancel or terminate them), a proxy model for programmatic access, and optional middleware that attaches request metadata (URL, method) to queries so you can trace them back to your application code. You can also dynamically set statement timeouts on code blocks to prevent long-running queries.\n\nThe package is designed for Django projects using PostgreSQL and targets developers who need to monitor, debug, or manage database activity at runtime. It depends only on django and installs as a wheel with no compiled dependencies, making it straightforward to add to an existing project.","worth_installing":"Yes, if you run Django with PostgreSQL and need runtime visibility into database queries. The low install friction, permissive license, and active (if aging) maintenance make it a practical choice for production monitoring and debugging. No known vulnerabilities and broad Python/Django version support strengthen the case. The 257-day gap since last release is worth noting but not disqualifying given the repository remains active."},"id":"django-pgactivity","links":{"html":"https://skillfed.io/packages/django-pgactivity","md":"https://skillfed.io/packages/django-pgactivity.md","pypi":"https://pypi.org/project/django-pgactivity/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-11-30","license_spdx":null,"license_treatment":"permissive","name":"django-pgactivity","python_support":"supports_current","summary":"Monitor, kill, and analyze Postgres queries."},"popularity":{"monthly_downloads":1448451,"position":3888,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.8.0"}
