{"categories":[{"label":"Front-Ends","url":"https://skillfed.io/packages/category/database-front-ends"}],"enrichment":{"capability":"Executes PostgreSQL meta-commands (backslash commands) programmatically through a Python API, enabling applications to run special commands on a database connection.","skillfed_tags":["postgres-cli","database-introspection"],"use_cases":["Building a PostgreSQL REPL or interactive shell that supports backslash commands.","Adding database introspection to a Jupyter notebook or IPython environment.","Implementing a web-based database management tool that needs to expose PostgreSQL admin commands.","Automating database inspection tasks in scripts without reimplementing meta-command logic."],"what_it_does":"pgspecial is a Python library that wraps PostgreSQL's meta-commands\u2014the backslash commands you'd normally type in psql\u2014into a callable API. It lets you execute commands programmatically against a live database connection, returning structured results you can process in code.\n\nThe library is designed for tools that need to expose PostgreSQL introspection and administration commands without reimplementing them. It depends on click, sqlparse, and psycopg for the database connection itself. You instantiate PGSpecial, pass it a cursor and a command string, and iterate over the results. It also supports loading named queries from config files via the NamedQueries class.","worth_installing":"Yes, if you need to execute PostgreSQL meta-commands programmatically. The library is stable, has low install friction, carries a permissive license, and is actively used by established projects. The 473-day release gap is a minor concern for a mature, narrow-scope package, but verify compatibility with your PostgreSQL and psycopg versions before production use."},"id":"pgspecial","links":{"html":"https://skillfed.io/packages/pgspecial","md":"https://skillfed.io/packages/pgspecial.md","pypi":"https://pypi.org/project/pgspecial/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-04-28","license_spdx":null,"license_treatment":"permissive","name":"pgspecial","python_support":"supports_current","summary":"Meta-commands handler for Postgres Database."},"popularity":{"monthly_downloads":650487,"position":5561,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.2.1"}
