pgspecial 2.1.3
pip install pgspecial
Released:
Meta-commands handler for Postgres Database.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (LICENSE.txt)
- Author: Pgcli Core Team
Classifiers
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
Meta-commands for Postgres
This package provides an API to execute meta-commands (AKA “special”, or “backslash commands”) on PostgreSQL.
Quick Start
This is a python package. It can be installed with:
$ pip install pgspecial
Usage
Once this library is included into your project, you will most likely use the following imports:
from pgspecial.main import PGSpecial
from pgspecial.namedqueries import NamedQueries
Then you will create and use an instance of PGSpecial:
pgspecial = PGSpecial()
for result in pgspecial.execute(cur, sql):
# Do something
If you want to import named queries from an existing config file, it is convenient to initialize and keep around the class variable in NamedQueries:
from configobj import ConfigObj
NamedQueries.instance = NamedQueries.from_config(
ConfigObj('~/.config_file_name'))
Contributions:
If you’re interested in contributing to this project, first of all I would like to extend my heartfelt gratitude. I’ve written a small doc to describe how to get this running in a development setup.
https://github.com/dbcli/pgspecial/blob/master/DEVELOP.rst
Please feel free to file an issue if you need help.
Projects using it:
This library is used by the following projects:
pgcli: A REPL for Postgres.
ipython-sql: %%sql magic for IPython
OmniDB: An web tool for database management
If you find this module useful and include it in your project, I’ll be happy to know about it and list it here.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (LICENSE.txt)
- Author: Pgcli Core Team
Classifiers
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pgspecial-2.1.3.tar.gz
.
File metadata
- Download URL: pgspecial-2.1.3.tar.gz
- Upload date:
- Size: 51.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d4d2316aff7d47954db99d4c391d6c0bb26568ebcb9d151f65dab7938b6cbe2 |
|
MD5 | 3f823cbb691ca4ad2e81628ee064d2b4 |
|
BLAKE2b-256 | b6bd21d05caf4c66b87abb4f1a7340ac2596f10087e9f60b95c84369febcf377 |
File details
Details for the file pgspecial-2.1.3-py3-none-any.whl
.
File metadata
- Download URL: pgspecial-2.1.3-py3-none-any.whl
- Upload date:
- Size: 35.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe84f069247cccca037969fec46b4e699f68c23e0015fffd4c40d6bcd2aafcd5 |
|
MD5 | 7d4f8d2ea1412cc16b7591b61717eaff |
|
BLAKE2b-256 | 14970c25576c0728d3d5a7a4bb760235b6ad7626a593d55798f10aeabca32242 |