Skip to main content

postgresql_kernel

keywords: jupyter,jupyter-kernel,postgresql,sql

本项目fork自postgres_kernel.由于这个项目已经快4年每更新过了而我自己常用它,但它又有一些不好用的地方所以才有了现在这个项目.

特性

  • 输入sql语言获得表格结果
  • 可选的自动提交
  • 不再需要设置环境变量DATABASE_URL
  • jupyter console中可以退出.

TODO

  1. 加入常用可视化功能
  2. 改用魔术命令配置连接信息

安装

pip install postgresql_kernel

使用

  1. 连接设置

    -- connection: postgres://postgres:postgres@localhost:5432/postgres
    -- autocommit: true
    -- (or false)
    
  2. 输入sql获得结果 -- connection: postgres://postgres:postgres@localhost:5433/postgres

0.0.2

  1. 修复bug
  2. 更新jupyter相关依赖项

0.0.1

  1. 增加类型注释
  2. 更新依赖项,将psycopg2改为psycopg2-binary
  3. 不再支持python3.7及以下版本

0.0.0

项目创建,原样复刻了postgres_kernel的功.

MIT License

Copyright (c) 2021 网络编程组件

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for postgresql-kernel 0.0.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 postgresql-kernel 0.0.2
File Size Uploaded Provenance Actions
postgresql_kernel-0.0.2.tar.gz 279.3 kB Without provenance Details for postgresql_kernel-0.0.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for postgresql-kernel 0.0.2
File Interpreter ABI Platform Actions
postgresql_kernel-0.0.2-py3.10.egg Legacy Egg format - - Details for postgresql_kernel-0.0.2-py3.10.egg
postgresql_kernel-0.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for postgresql_kernel-0.0.2-py2.py3-none-any.whl

Total release size: 1.4 MB

Release files / postgresql_kernel-0.0.2.tar.gz

Download URL postgresql_kernel-0.0.2.tar.gz
Size 279.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0ea8a52c25395bd1811114152cdcd953af568c29c821d4985b2065b811efebf2
BLAKE2b-256 checksum
How to use checksums
b2486cb5efab548809f7c198b40ee88f38b6f5731dea69de3509dfa0936fc4a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / postgresql_kernel-0.0.2-py3.10.egg

Download URL postgresql_kernel-0.0.2-py3.10.egg
Size 553.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
80d573466949dba67c3973f93e7a7e1fcc9fe07027d6e3311ca59ed629743fc2
BLAKE2b-256 checksum
How to use checksums
60d4369cc2da372c8c07972c2e1050fb4b277b3803d06b560d5c132189ec2600
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / postgresql_kernel-0.0.2-py2.py3-none-any.whl

Download URL postgresql_kernel-0.0.2-py2.py3-none-any.whl
Size 547.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6455897702db3b278b17106f7461dbe256f8a1cc38f85f8cdaaadc810e5130e7
BLAKE2b-256 checksum
How to use checksums
5bda8341e8b018c6c15342eb9dae32b8db7db7801d594799d257bf8b68f1ad14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Security for postgresql-kernel 0.0.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