Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

py4j JDBC wrapper

Project description

This repo aspires to be a (partially) dbapi 2.0 compliant interface to JDBC. It’s similar to JayDeBeAPI, but uses a much more efficient JVM backend process implemented with Py4j instead of JPype.

Install py4jdbc

Py4jdbc will automatically add its jar file to your $CLASSPATH if installed from githib with pip -install e:

pip install -e

You can also pip install py4jdbc, but you’ll have to manually dig up the jar file and add it to your $CLASSPATH.


A simple example that starts a JVM subprocess:

from py4jdbc import connect

conn = connect("jdbc:postgresql://localhost/postgres, user="cow", password="moo")
cur = conn.cursor()
cur.execute("select 1 as cow;")

Project details

Download files

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

Files for py4jdbc, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size py4jdbc-0.1.2.tar.gz (15.7 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page