def _get_password(params):
        """Get the password for a database connection from :mod:`keyring`

        Args:
            params (dict): database configuration, as defined in :mod:`ozelot.config`

        Returns:
            str: password
        """
        user_name = params['user']
        service_name = params['host'] + ':' + params['driver']
        return keyring.get_password(service_name=service_name,
                                    username=user_name)