Skip to main content

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 with pip

pip install py4jdbc

Install from source tarball

tar -zxf py4jdbc-V.X.Y.Z.tar.gz cd py4jdbc-V.X.Y.Z python setup.py install

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;")

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.8.tar.gz (22.9 kB view details)

Uploaded Source

File details

Details for the file py4jdbc-0.1.6.8.tar.gz.

File metadata

  • Download URL: py4jdbc-0.1.6.8.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for py4jdbc-0.1.6.8.tar.gz
Algorithm Hash digest
SHA256 d4992e4670bd5807dca7ef829e01c3f20516a7bd919b361a662940a01d9dbf12
MD5 efcd49b984046b82959ca54456ac16be
BLAKE2b-256 e650f60a9a70625c6d925f6992ea60b125728b224174d525436dc687dc277fd6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.6.8 This release

1 file

0.1.6.7

1 file

0.1.6.6

1 file

0.1.6.5

0.1.6.4

1 file

0.1.6.3

0.1.6.2

1 file

0.1.6.1

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

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