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.1.tar.gz (3.6 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.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spark_jdbc_reader-1.0.1.tar.gz
  • Upload date:
  • Size: 3.6 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.1.tar.gz
Algorithm Hash digest
SHA256 9c0bb4174556eb02173f869e84ae088a049dfc9eb0a537cce61878810332ae51
MD5 a6d80dd797ee870276aa1e70d6d25f39
BLAKE2b-256 23800974fbf8051580ece4903fd1a9fe8dd9cf2ed36c893559bb59d4bfc7bd68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_jdbc_reader-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 085625ce931b1b221bd6814cddbf3b5aab76b3f00d4a7f75a2d26894feb010d8
MD5 2b9768a743578a4ff34ede8b3f31d6b2
BLAKE2b-256 36e8b3ff59bce0ad2513757cb93f124c76fb98f28066bd6265f7f85002a9db3a

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