A high level Python wrapper for remotely connecting to SQL databases and querying using pandas dataframes.
Project description
py2edw
A high level Python wrapper for remotely connecting to SQL databases and querying using pandas dataframes.
- SQL commands can be executed using the SQL operator.
- All queries input and outout using pandas dataframes.
- Optional ssh tunnel connection
Connectors:
- postgresql
- mysql
Import:
from py2edw import postgresql, mysql
db & ssh parameter format:
db_params = {"database": <db_name>, "user": <username>, "password": <password>, "host": <host>}
ssh_params = {"ssh_ip": <ip_address>, "ssh_port": <port>, "ssh_username": <username>, "ssh_password": <password>, "remote_bind_ip": <local_ip>, "remote_bind_port": <local_port>}
Sample code:
py2edw = mysql.py2edw(db_params, ssh_params=False)
py2edw.import_DataFrame("select * from table_name")
Avaliable operators:
- sql
- import
- insert
- upsert
- start connection
- close connection
- show tables
py2edw.help() for details
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py2edw-0.0.92.tar.gz.
File metadata
- Download URL: py2edw-0.0.92.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4a1f204adafacf50b46d1be60875e83beefd367a0378c2aeac8d127131f6c47
|
|
| MD5 |
00ccded6c95eba143928dae4368a5a26
|
|
| BLAKE2b-256 |
1bd5c834e0209b9287d330ee0423be87419b6fdade1ff332c2ff3f954f187c86
|
File details
Details for the file py2edw-0.0.92-py3-none-any.whl.
File metadata
- Download URL: py2edw-0.0.92-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e7f7c395fff2c9434750168c1a5c9fa6055e5c4134c55fbbd3a2070bd417f79
|
|
| MD5 |
ab9dad19289c7cf51e079889388d4a62
|
|
| BLAKE2b-256 |
4490dc06b19d3f56c4a60eae3cbd90a258b62645f9af956e256e6e1281f1c5aa
|