import json
import os


class DbCredentials:
    
    def __init__(self):
        ''' Currently set up to use VCAP
        but may need to adapt to use json line
        '''
        dbinfo = json.loads(os.environ['VCAP_SERVICES'])['sqldb'][0]
        dbcred = dbinfo["credentials"]
        self.db = dbcred['db']
        self.hostName = dbcred['hostname']
        self.port = dbcred['port']
        self.uid = dbcred['username']
        self.pwd = dbcred['password']
        
                     
295132da1ff1b01018d48cfe2f66dcbb97974609
<mask token>

<mask token>


class DbCredentials:
    <mask token>

<mask token>


class DbCredentials:

    def __init__(self):
        """ Currently set up to use VCAP
        but may need to adapt to use json line
        """
        dbinfo = json.loads(os.environ['VCAP_SERVICES'])['sqldb'][0]
        dbcred = dbinfo['credentials']
        self.db = dbcred['db']
        self.hostName = dbcred['hostname']
        self.port = dbcred['port']
        self.uid = dbcred['username']
        self.pwd = dbcred['password']

import json
import os


class DbCredentials:

    def __init__(self):
        """ Currently set up to use VCAP
        but may need to adapt to use json line
        """
        dbinfo = json.loads(os.environ['VCAP_SERVICES'])['sqldb'][0]
        dbcred = dbinfo['credentials']
        self.db = dbcred['db']
        self.hostName = dbcred['hostname']
        self.port = dbcred['port']
        self.uid = dbcred['username']
        self.pwd = dbcred['password']

import json
import os


class DbCredentials:
    
    def __init__(self):
        ''' Currently set up to use VCAP
        but may need to adapt to use json line
        '''
        dbinfo = json.loads(os.environ['VCAP_SERVICES'])['sqldb'][0]
        dbcred = dbinfo["credentials"]
        self.db = dbcred['db']
        self.hostName = dbcred['hostname']
        self.port = dbcred['port']
        self.uid = dbcred['username']
        self.pwd = dbcred['password']
        
                     