Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

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
- cx_Oracle

# Usage

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

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

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

## Query Oracle
```
from pyconn.db.oracle import ORACLE
from pyconn.db.oracle import OracleServerInfo

db = OracleServerInfo()
db.name = "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.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyconn3-1.8.tar.gz (7.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page