Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

python connection tools collection

Project description

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

# Requirements
- Python 2.7+
- qpython
- pandas

# 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 = 9800
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.

Files for pyconn, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size pyconn-0.1.3.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

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