Skip to main content

A lightweight JDBC table and query reader for PySpark.

Project description

spark-jdbc-reader

A lightweight JDBC utility for reading SQL tables and queries into PySpark DataFrames.

Installation

pip install spark-jdbc-reader

Usage

from spark_jdbc_reader import read_table
df = read_table("localhost", "admin", "secret", "my_db", "employees", port=5432)
df.show()

from spark_jdbc_reader import execute_query
df = execute_query("localhost", "admin", "secret", "SELECT * FROM employees WHERE salary > 50000", port=5432)
df.show()

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

spark_jdbc_reader-1.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spark_jdbc_reader-1.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file spark_jdbc_reader-1.0.2.tar.gz.

File metadata

  • Download URL: spark_jdbc_reader-1.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for spark_jdbc_reader-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a586007b95faafefd90303ceb7ef5d33917eff82ff97063c868879fe1516a7bc
MD5 67afb309b50f43d27ee8ec08faaa6f93
BLAKE2b-256 59a10f1c9e81d166db64bb7a41dd9fc7fa009516582a38e14cbfb478e002f161

See more details on using hashes here.

File details

Details for the file spark_jdbc_reader-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for spark_jdbc_reader-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 49245cd51a30e662d1f101d6b4692a6fc56e8837abb811663ecf8ee85b35150e
MD5 1e72d9f96736ba3302fad941e1a1f1f7
BLAKE2b-256 d272c05cc47f892b03f4a2bf23a806da005b21ea98ef9c481c0543a7bda838dd

See more details on using hashes here.

Supported by

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