pyJDBCConnector
pyJDBCConnector is a high level JDBC connection API that was designed to provide a further abstraction for jdbc connections in python.
This package is designed as an introduction to jdbc connections in Python and as such provides much less customizability with a focus on
accessibility.
Motivation
This package came about due to intricacies of dealing with the Denodo JDBC driver with SSL enabled.
The jaydebeapi package that this package is heavily reliant on doesn't provide the ability to specify
the location of a Trust Store file at JVM start-up. This was a big problem for us and we needed to solve this
for analysts with less engineering experience and enable them to get an introduction to Python programming
with familiar data.
Limitations
- Currently this package has only been tested for the Denodo JDBC driver
Examples
Installation/Usage:
This package is currently on PyPi and can be installed through:
pip install pyjdbcconnector
This package is driven primarily through config files. To understand how config files are set up please see the Documentation
Connect to a Denodo JDBC with SSL enabled
"""
This example demonstrates how to use the DenodoConnector
api for connecting to a Denodo based JDBC with a Trust Store
file
"""
import pandas as pd
from pyjdbcconnector.connectors import DenodoConnector
# Initialize a DenodoConnector object
# the DenodoConnector object acts as
# a builder.
dc = DenodoConnector()
# Here, we build the connection using the built-in
# builder functions
conn = dc\
.from_config("path/to/denodo_config.ini")\
.connect()
# this connection acts as a normal sql connection and we can use it
# as we would use any other connection in Python
# Assuming we want to read a table into a pandas dataframe
SQL_QUERY = "select * from tablename"
data = pd.read_sql(SQL_QUERY, conn)
To connect to a JDBC without SSL, omit the lines that require a Trust Store.
Metadata
Release files for pyjdbcconnector 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyjdbcconnector-0.2.1.tar.gz | 4.6 kB | Without provenance | Details |
Release files / pyjdbcconnector-0.2.1.tar.gz
| Download URL | pyjdbcconnector-0.2.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75be572404b1ddbb42938193abf2aac0896432633f6ccc029530f991b27b00b0
|
|
BLAKE2b-256 checksum How to use checksums |
ddd9fb294fcc82151ca4173ddc92c5443d50dd32eb86fa8b33968f3bd24cd436
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
|
Security for pyjdbcconnector 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.