This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import cx_Oracle | |
username = "user" | |
password = "pass" | |
database = "tnsname" | |
con = cx_Oracle.connect(username, password, database) | |
cur = con.cursor() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sqlalchemy import create_engine | |
class SQLKeyring: | |
"""A SQLKeyring object provides a tiny bit of glue between | |
the secure credential storage of the Python Keyring Lib and | |
the database connectivity of SQLAlchemy | |
""" | |
def get_connection_url(self, name): | |
return self.keyring.get_password('sqlkeyring', name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -x | |
here=`dirname $0` | |
env | |
python ${here}/fig-config-glue.py ${here}/../test.ini | |
sleep 10 | |
nosetests |
NewerOlder