Skip to main content

connector database

Project description

connector_db_tools

Github License Updates Python 3 Code coverage

connector_db_tools is a Python library that implements for connection databases

Installation

The code is packaged for PyPI, so that the installation consists in running:

pip install spark-datax-schema-tools 

Usage

wrapper take connection database using pandas and modin

example1: (generate dummy_data)
================================
import ray
import os
from connector_db_tools import Core

ray.shutdown()
ray.init(local_mode=True)

""""config.json
 {"ORACLE":{
      "oracle":{
         "host":"XXXXXX",
         "port":1521,
         "db":"XXXXXX",
         "username":"XXXXX",
         "password":"XXXXX",
         "driver":"{Microsoft ODBC for Oracle}"
      }
 }
""""

path = os.getcwd()
path_file_config = os.path.join(path, "config.json")

df = Core.database_query(file_config=path_file_config, 
                         server="oracle", 
                         database="oracle", 
                         query=query, 
                         is_sql_direct=False)
       
df.head(10) 
                          

License

Apache License 2.0.

New features v1.0

BugFix

  • choco install visualcpp-build-tools

Reference

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

connector_db_tools-0.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

connector_db_tools-0.0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file connector_db_tools-0.0.1.tar.gz.

File metadata

  • Download URL: connector_db_tools-0.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for connector_db_tools-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0be78499c3e06b4a755cb86932ba250dd0870a6c582be85d23e7ccd8d2e78743
MD5 5966504753681769910bb45235c7a353
BLAKE2b-256 c77729c4491041492d9acb83f0e19bbfe3baee25a979af4f5e948b3b934d7166

See more details on using hashes here.

File details

Details for the file connector_db_tools-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: connector_db_tools-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for connector_db_tools-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2c50675b07d7aae0c605673c56d26e345585858d68c1622a9385fa83158c8cb
MD5 2333b96d3ff418c0c8eecd8571c6b818
BLAKE2b-256 cca323742a4041112a1b00535ce71c2a1e203724558b12218e4fe1ede878eb72

See more details on using hashes here.

Supported by

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