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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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