Spark JDBC Profiler
Spark JDBC Profiler is a collection of utils functions for profiling source databases with spark jdbc connections.
Install it from PyPI
pip install spark_jdbc_profiler
Usage
from spark_jdbc_profiler.whole_db_profiler.mysql_db_profiler import *
from spark_jdbc_profiler.segmentation_profiler.segmentation_gen import *
jdbcUsername = "test_user"
jdbcPassword = "test_pass"
jdbcHostname = "mariadb"
jdbcPort = "3306"
jdbcDatabase = "test"
jdbcUrl = f"jdbc:mysql://{jdbcHostname}:{jdbcPort}/{jdbcDatabase}?zeroDateTimeBehavior=ROUND"
connectionProperties = {"user": jdbcUsername, "password": jdbcPassword}
df = profile_whole_db(spark, jdbcUrl, connectionProperties)
df.show(n=20)
Development
Read the CONTRIBUTING.md file.
Metadata
Release files for spark-jdbc-profiler 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spark_jdbc_profiler-1.0.4.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spark_jdbc_profiler-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / spark_jdbc_profiler-1.0.4.tar.gz
| Download URL | spark_jdbc_profiler-1.0.4.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fcd8ed68f65aca20aa923f494a461e0ae64f180ee75b185db0f498a58b2b6e3
|
|
BLAKE2b-256 checksum How to use checksums |
3942003e936be4a058c43781abe1eac697fd4e92579151bde8906fa60d1cd573
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / spark_jdbc_profiler-1.0.4-py3-none-any.whl
| Download URL | spark_jdbc_profiler-1.0.4-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3e13032212e691197e3d437dae0f198a644fff10778d910f1eaa9eefdba6042
|
|
BLAKE2b-256 checksum How to use checksums |
b3399c1c12164e762c892d8b9e11412d977f9b92ae9194278ea2f13e0c83b615
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|