Skip to main content

metakernel for postgres_kernel

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

postgresql_kernel-0.0.2.tar.gz (279.3 kB view details)

Uploaded Source

Built Distributions

postgresql_kernel-0.0.2-py3.10.egg (553.4 kB view details)

Uploaded Source

postgresql_kernel-0.0.2-py2.py3-none-any.whl (547.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file postgresql_kernel-0.0.2.tar.gz.

File metadata

  • Download URL: postgresql_kernel-0.0.2.tar.gz
  • Upload date:
  • Size: 279.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for postgresql_kernel-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0ea8a52c25395bd1811114152cdcd953af568c29c821d4985b2065b811efebf2
MD5 0889752eb821f0a3f849de81bc6fa11e
BLAKE2b-256 b2486cb5efab548809f7c198b40ee88f38b6f5731dea69de3509dfa0936fc4a2

See more details on using hashes here.

File details

Details for the file postgresql_kernel-0.0.2-py3.10.egg.

File metadata

  • Download URL: postgresql_kernel-0.0.2-py3.10.egg
  • Upload date:
  • Size: 553.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for postgresql_kernel-0.0.2-py3.10.egg
Algorithm Hash digest
SHA256 80d573466949dba67c3973f93e7a7e1fcc9fe07027d6e3311ca59ed629743fc2
MD5 b37c436ce826da0861aa1ea65635c034
BLAKE2b-256 60d4369cc2da372c8c07972c2e1050fb4b277b3803d06b560d5c132189ec2600

See more details on using hashes here.

File details

Details for the file postgresql_kernel-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: postgresql_kernel-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 547.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for postgresql_kernel-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6455897702db3b278b17106f7461dbe256f8a1cc38f85f8cdaaadc810e5130e7
MD5 fc10031f49135aed3fe8e9204c754aa4
BLAKE2b-256 5bda8341e8b018c6c15342eb9dae32b8db7db7801d594799d257bf8b68f1ad14

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page