Skip to main content

python connection tools collection

Project description

# pyconn3
pyconn3 is a tool set which include:
* Connect and query kdb+, Oracle database
* Send message via `wechat`

# Requirements
- Python 3.6+
- qpython
- pandas
- numpy
- cx_Oracle

# Usage

## Query kdb+
from pyconn.db.kdb import KDB
from pyconn.db.kdb import Server

db = Server() = "DBNAME" = ""
db.port = 8888
db.username = "username"
db.password = "password"

q = KDB(server=db)
result = q.query_sync("{:1+1}[]")

## Query Oracle
from import ORACLE
from import OracleServerInfo

db = OracleServerInfo() = "db name"
db.sid = "oracle sid"
db.username = "username"
db.password = "password"

q = ORACLE(server=db)
sql_str = "select * from t"
result = q.query(sql_str)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyconn3, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size pyconn3-1.1.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page