Skip to main content

# A simple Jupyter kernel for PostgreSQL

Install with pip install postgres_kernel

To use, run one of:

`bash jupyter notebook # In the notebook interface, select PostgreSQL from the 'New' menu jupyter qtconsole --kernel postgres jupyter console --kernel postgres `

## How to use:

There are a couple of specially formatted comments for controlling the connection string and autocommit mode.

`sql -- connection: postgres://brian:password@localhost:5432/dbname -- autocommit: true -- (or false) `

For details of how this works, see Jupyter’s docs on [wrapper kernels](http://jupyter-client.readthedocs.io/en/latest/wrapperkernels.html). This is heavily based on [takluyver/bash_kernel](https://github.com/takluyver/bash_kernel). Just look at our git log :)

![](images/console.png)

![](images/notebook.png)

Metadata

Release files for postgres_kernel 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for postgres_kernel 0.2.2
File Size Uploaded Provenance Actions
postgres_kernel-0.2.2.tar.gz 4.5 kB Without provenance Details for postgres_kernel-0.2.2.tar.gz

Release files / postgres_kernel-0.2.2.tar.gz

Download URL postgres_kernel-0.2.2.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e7fd318baff171714d2810968bc50836100504a654381e9ce0d14da5e6639640
BLAKE2b-256 checksum
How to use checksums
e03be995a6fa2a1e643f465576e61ef6a81c62644bc81655b7c82c73071764b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Security for postgres_kernel 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page