connector database
Project description
connector_db_tools
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
New features v1.0
BugFix
- choco install visualcpp-build-tools
Reference
- Jonathan Quiza github.
- Jonathan Quiza RumiMLSpark.
- Jonathan Quiza linkedin.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0be78499c3e06b4a755cb86932ba250dd0870a6c582be85d23e7ccd8d2e78743 |
|
MD5 | 5966504753681769910bb45235c7a353 |
|
BLAKE2b-256 | c77729c4491041492d9acb83f0e19bbfe3baee25a979af4f5e948b3b934d7166 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2c50675b07d7aae0c605673c56d26e345585858d68c1622a9385fa83158c8cb |
|
MD5 | 2333b96d3ff418c0c8eecd8571c6b818 |
|
BLAKE2b-256 | cca323742a4041112a1b00535ce71c2a1e203724558b12218e4fe1ede878eb72 |