def connect_to_local():
    from bitcoin.connection import BitcoinConnection
    from bitcoin.config import read_default_config    

    cfg = read_default_config()
    port = int(cfg.get('rpcport', '8332'))
    return BitcoinConnection(cfg['rpcuser'],cfg['rpcpassword'],'localhost',port)
Connect to default bitcoin instance owned by this user, on this machine.
dataset/ETHPy150Open bitxbay/BitXBay/bitcoin/__init__.py/connect_to_local