Skip to main content

Jupancon, connector to several DBs that returns pandas. Magic included.

Project description

jupancon

Database Connectors and SQL magics for Jupyter lab.

(What follows is all still very WIP)

Install

pip install jupancon

Configure

Write a ~/.jupycon/config.yml (old name, have to fix that) YAML file that looks like so (C&P from my actual config file, but heavily censored for obvious reasons):

default: my-redshift-cluster

my-redshift-cluster: 
    type: redshift
    host: XXXXXX.XXXXXX.XXXXXXX.redshift.amazonaws.com
    # explicitly setting redshift port (optional)
    port: 5439
    user: XXXXXXXX
    pass: XXXXXXXX
    dbname: XXXXXX


my-gcp:
    type: bigquery
    project: XXXXX-XXXXX-123456

How to use

Regular usage

from jupancon import query, list_schemas, list_tables

list_schemas()

list_tables()

query("select * from foo")

Magical usage

from jupancon import load_magics

load_magics()
select * from foo
df = %select * from foo
%%sql

select * 
from foo
where cond = 1
and whatever

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

jupancon-0.1.3.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

jupancon-0.1.3-py2.py3-none-any.whl (6.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file jupancon-0.1.3.tar.gz.

File metadata

  • Download URL: jupancon-0.1.3.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.26.0

File hashes

Hashes for jupancon-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ca38a133a968b54ee3fd07ed986ccdff5ac84ed4249506c4707c983e56205392
MD5 5234b83cba5388ae8d733ecbfe551861
BLAKE2b-256 2e5dab8a8d026be6e3c15e0ce091c84d03d9b43deaccd0211ba6e749ecbc4be7

See more details on using hashes here.

File details

Details for the file jupancon-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: jupancon-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.26.0

File hashes

Hashes for jupancon-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a59a7b2096d009671d3d511de8d293f1d9a2307656f94cb0df175b67b646fad2
MD5 5b04e0a6d2413ebe4e16d97cd201287f
BLAKE2b-256 a2eb091e6f2b3713045591ecbf5ff658e45ce3aeb17474a5258b09b385495aa0

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