Skip to main content

py4j JDBC wrapper

Project description

Py4jdbc is a (mostly) 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

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

Example

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.

Source Distribution

py4jdbc-0.1.6.4.tar.gz (24.5 kB view hashes)

Uploaded Source

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