{"id":19585113,"url":"https://github.com/dbcli/pgspecial","last_synced_at":"2025-04-04T08:05:38.336Z","repository":{"id":36914368,"uuid":"41221414","full_name":"dbcli/pgspecial","owner":"dbcli","description":"Python implementation of postgres meta commands (backslash commands)","archived":false,"fork":false,"pushed_at":"2024-05-15T20:57:38.000Z","size":359,"stargazers_count":73,"open_issues_count":9,"forks_count":51,"subscribers_count":18,"default_branch":"main","last_synced_at":"2024-05-15T22:52:39.105Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbcli.png","metadata":{"files":{"readme":"README.rst","changelog":"changelog.rst","contributing":null,"funding":null,"license":"License.txt","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}},"created_at":"2015-08-22T19:28:06.000Z","updated_at":"2024-06-18T12:18:04.237Z","dependencies_parsed_at":"2023-02-10T20:30:58.699Z","dependency_job_id":"343740b7-8991-42c8-ba69-af19ab0f4872","html_url":"https://github.com/dbcli/pgspecial","commit_stats":{"total_commits":297,"total_committers":44,"mean_commits":6.75,"dds":0.6936026936026936,"last_synced_commit":"f05518edb17d89a8d1ecdc02c470dbc8a6c124cd"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbcli%2Fpgspecial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbcli%2Fpgspecial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbcli%2Fpgspecial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbcli%2Fpgspecial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbcli","download_url":"https://codeload.github.com/dbcli/pgspecial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247139184,"owners_count":20890182,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-11T07:52:57.531Z","updated_at":"2025-04-04T08:05:38.310Z","avatar_url":"https://github.com/dbcli.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Meta-commands for Postgres\n--------------------------\n\n|Build Status|  |PyPI|\n\nThis package provides an API to execute meta-commands (AKA \"special\", or\n\"backslash commands\") on PostgreSQL.\n\nQuick Start\n-----------\n\nThis is a python package. It can be installed with:\n\n::\n\n    $ pip install pgspecial\n\n\nUsage\n-----\n\nOnce this library is included into your project, you will most likely use the\nfollowing imports:\n\n.. code-block:: python\n\n    from pgspecial.main import PGSpecial\n    from pgspecial.namedqueries import NamedQueries\n\nThen you will create and use an instance of PGSpecial:\n\n.. code-block:: python\n\n        pgspecial = PGSpecial()\n        for result in pgspecial.execute(cur, sql):\n            # Do something\n\nIf you want to import named queries from an existing config file, it is\nconvenient to initialize and keep around the class variable in\n``NamedQueries``:\n\n.. code-block:: python\n\n    from configobj import ConfigObj\n\n    NamedQueries.instance = NamedQueries.from_config(\n        ConfigObj('~/.config_file_name'))\n\nContributions:\n--------------\n\nIf you're interested in contributing to this project, first of all I would like\nto extend my heartfelt gratitude. I've written a small doc to describe how to\nget this running in a development setup.\n\nhttps://github.com/dbcli/pgspecial/blob/master/DEVELOP.rst\n\nPlease feel free to file an issue if you need help.\n\nProjects using it:\n------------------\n\nThis library is used by the following projects:\n\npgcli_: A REPL for Postgres.\n\n`ipython-sql`_: %%sql magic for IPython\n\nOmniDB_: An web tool for database management\n\nIf you find this module useful and include it in your project, I'll be happy\nto know about it and list it here.\n\n.. |Build Status| image:: https://github.com/dbcli/pgspecial/workflows/pgspecial/badge.svg\n    :target: https://github.com/dbcli/pgspecial/actions?query=workflow%3Apgspecial\n\n.. |PyPI| image:: https://badge.fury.io/py/pgspecial.svg\n    :target: https://pypi.python.org/pypi/pgspecial/\n    :alt: Latest Version\n\n.. _pgcli: https://github.com/dbcli/pgcli\n.. _`ipython-sql`: https://github.com/catherinedevlin/ipython-sql\n.. _OmniDB: https://github.com/OmniDB/OmniDB\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbcli%2Fpgspecial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbcli%2Fpgspecial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbcli%2Fpgspecial/lists"}