write_attributes.py
def call_security_method(security_method, user_name, user_password):
    """ Create API call security method
        @param security_method string: Security method to use: basic or kerberos
        @param user_name string: The user's credentials name
        @param user_password string: The user's credentials password
    """

    from requests.auth import HTTPBasicAuth
    from requests_kerberos import HTTPKerberosAuth

    if security_method.lower() == 'basic':
        security_auth = HTTPBasicAuth(user_name, user_password)
    else:
        security_auth = HTTPKerberosAuth(mutual_authentication='REQUIRED',
                                         sanitize_mutual_error_response=False)

    return security_auth
 Create API call security method
        @param security_method string: Security method to use: basic or kerberos
        @param user_name string: The user's credentials name
        @param user_password string: The user's credentials password
    
Create API call security method
@param security_method string: Security method to use: basic or kerberos
@param user_name string: The user's credentials name
@param user_password string: The user's credentials password
Create API call security method @param security_method string : Security method to use : basic or kerberos @param user_name string : The user ' s credentials name @param user_password string : The user ' s credentials password
def call_security_method(security_method, user_name, user_password):
    from requests.auth import HTTPBasicAuth
    from requests_kerberos import HTTPKerberosAuth
    if security_method.lower() == 'basic':
        security_auth = HTTPBasicAuth(user_name, user_password)
    else:
        security_auth = HTTPKerberosAuth(mutual_authentication='REQUIRED',
                                         sanitize_mutual_error_response=False)
    return security_auth
def call_security_method ( security_method , user_name , user_password ) : from requests . auth import HTTPBasicAuth from requests_kerberos import HTTPKerberosAuth if security_method . lower ( ) == 'basic' : security_auth = HTTPBasicAuth ( user_name , user_password ) else : security_auth = HTTPKerberosAuth ( mutual_authentication = 'REQUIRED' , sanitize_mutual_error_response = False ) return security_auth
Create API call security method
@param security_method string: Security method to use: basic or kerberos
@param user_name string: The user's credentials name
@param user_password string: The user's credentials password
Create API call security method @param security_method string : Security method to use : basic or kerberos @param user_name string : The user ' s credentials name @param user_password string : The user ' s credentials password
""" Create API call security method
        @param security_method string: Security method to use: basic or kerberos
        @param user_name string: The user's credentials name
        @param user_password string: The user's credentials password
    """
security_method
user_name
user_password