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.3.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.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spark_jdbc_reader-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 3e5e797289099b12d6f0dc9adc417c130e4f00a934ec6cf8a509723a9a5fb692
MD5 0dfc8cf73db0cc4b7ebdb7e939bd1be8
BLAKE2b-256 04a72df83b52a3880b8c248daba2900ad5bd078c8c21523298b4aa0b46d512b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spark_jdbc_reader-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2655b58c20273b242951656cce535d5a04833d4401094696825ba5d7a474ba2c
MD5 d3175bb92e16243f0933af2acbfab242
BLAKE2b-256 a16812eb3859b29719b88e98e1d6a82bffab9f316aab27dd6e5321ef2e8481ba

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