fastpluggy-postgres-tools

No description available

Official
v0.1.11
0 downloads this week
Latest version
Requires Python >=3.10

Quick Install

pip install fastpluggy-postgres-tools
Or with specific version:
pip install fastpluggy-postgres-tools==0.1.11

Postgres Tools for FastPluggy

Postgres Tools
Version

A powerful PostgreSQL database monitoring and management plugin for FastPluggy applications.
This plugin provides a user-friendly interface to monitor and manage various aspects of your PostgreSQL databases.

Features

Implemented Features

  • PostgreSQL Sequences Monitoring:
  • View comprehensive sequence information including name, last value, max value, and remaining capacity
  • Monitor sequence usage with percentage metrics (percent used and percent remaining)
  • Identify sequences that are close to reaching their maximum value
  • Filter sequences by schema (excludes system schemas like pg_catalog and information_schema)
  • Sort sequences by remaining capacity to prioritize attention

  • Database Size & Tablespace Usage:

  • View total database size and breakdown by schema and tablespace
  • Identify the largest tables in your database
  • See detailed size information for tables and their indexes
  • Filter by schema and include/exclude system schemas
  • Sort by size to identify storage usage patterns

  • Index Usage Statistics:

  • Track per-index scan counts and rows read
  • Highlight unused indexes below a scan threshold
  • Show index sizes and offer one-click drop operations
  • Filter by schema (excludes system schemas like pg_catalog and information_schema)
  • Sort by scan count to identify unused indexes

  • Table Statistics & Bloat:

  • Monitor table health by reporting live vs. dead rows
  • Estimate bloat percentage and show disk size
  • Surface last vacuum/analyze times
  • Optional pgstattuple integration for exact bloat measurement
  • Highlight tables with high bloat percentage
  • Filter by schema (excludes system schemas like pg_catalog and information_schema)

  • Query Performance Analysis:

  • Leverage pg_stat_statements to list top slow queries
  • View queries by total/mean time
  • Option to include 95th percentile statistics
  • Automatic detection of pg_stat_statements extension
  • Installation instructions if extension is not available

  • Connection & Lock Monitoring:

  • Display all active sessions (state, duration, query)
  • Show current lock contention
  • Flag long-running queries
  • Filter connections by minimum duration and state
  • View detailed information about blocking and waiting queries

  • Vacuum/Autovacuum Status:

  • Show last manual/autovacuum times per table
  • Display dead-tuple counts
  • Monitor live progress of ongoing autovacuum jobs
  • View autovacuum settings
  • Highlight tables that haven't been vacuumed recently

  • Replication & Backups:

  • Report replication status and lag metrics (write_lag, replay_lag)
  • Track backup history and recency
  • Alert for stale backups or high lag
  • Detect primary/replica status automatically
  • Show replication slots and retained WAL size

  • Custom Hooks & Webhooks:

  • Define threshold-based alerts on any metric
  • Post notifications to Slack, Discord, Microsoft Teams, PagerDuty, or custom endpoints
  • Test webhook functionality
  • Enable/disable alerts individually
  • Store alert configuration in the database

  • Global Dashboard & Recommendations:

  • One-page health overview with combined alert list
  • Actionable recommendations for database improvements
  • Extension installation suggestions
  • Database configuration recommendations
  • Key metrics summary

Planned Features

For detailed specifications of each feature, see the individual files in the docs/feature/ directory.

Installation

Install the official plugin package:

pip install fastpluggy-postgres-tools

Configuration

The plugin uses the same database connection that is configured for your FastPluggy application.
No additional configuration is required if your application is already connected to a PostgreSQL database.

Usage

Web Interface

Once installed, access the PostgreSQL tools at /postgres/ in your FastPluggy application. The interface allows you to:

  1. View detailed information about PostgreSQL sequences
  2. Monitor sequence usage and remaining capacity
  3. Identify sequences that may need attention (approaching maximum value)
  4. View database size information and breakdown by schema and tablespace
  5. Identify the largest tables in your database
  6. Monitor storage usage patterns

API Access

The plugin also provides API endpoints for programmatic access to all features. See the API Endpoints Documentation for details on available endpoints, parameters, and response formats.

Development

Requirements

  • Python 3.10+
  • FastPluggy
  • SQLAlchemy 2.0.0+
  • PostgreSQL database

Setup

  1. Clone the repository
  2. Install dependencies: pip install -e .
  3. Run your FastPluggy application with this plugin enabled

Building

python -m build

License

This project is licensed under the MIT License.

No Changelog Available

This plugin does not have a Changelog file or it could not be extracted from the package.

fastpluggy-postgres-tools API

API documentation for this plugin is not available.

Package Analysis

Last analysis performed: 2025-07-10 19:09:56

✓ Valid Entry Point

This plugin has a valid entry point:
postgres_tools = fastpluggy_plugin.postgres_tools.plugin:PostgresToolsModule

No Issues Found

No issues were found during the analysis of this package.

v0.1.13

v0.1.12

v0.1.11

Latest

v0.1.10

v0.1.9

v0.1.8

v0.1.6

v0.1.5

v0.1.4

v0.1.3

v0.1.2

v0.1.1

v0.1.0

Plugin Information

Name
fastpluggy-postgres-tools
Version
0.1.11
Entry Point
fastpluggy_plugin.postgres_tools.plugin:PostgresToolsModule
Python
>=3.10
Status
✓ Official Plugin
License
MIT
Keywords
database postgres

Dependencies

fastpluggy-ui-tools
UI components and developer tools for building FastPluggy-based interfaces
UI

Download Statistics

0
Weekly
1
Monthly
1
Total

Download Frequency: ~1 downloads per month
Average Per Day: 0.0 downloads
Last Download: 31 days ago
Yearly Estimate: 12 downloads
0% estimated growth rate based on 31 days of data