def __init__(self, token, *args, **kwargs):
        """
        :param Token: Authentication token
        :param header_keyword: Authorization HTTP header prefix
        :return:
        """
        if 'header_keyword' in kwargs:
            header_keyword = kwargs['header_keyword']
            del kwargs['header_keyword']
        else:
            header_keyword = "Token"

        if not self.base_url.startswith('https'):
            warnings.warn(_("You are using unencrypted token authentication!!!"))

        super(TokenAuthClient, self).__init__(*args, **kwargs)

        self.session.headers.update({"authentication": "{keyword} {token}".format(keyword=header_keyword, token=token)})
def __init__ ( self , token , * args , ** kwargs ) : if 'header_keyword' in kwargs : header_keyword = kwargs [ 'header_keyword' ] del kwargs [ 'header_keyword' ] else : header_keyword = "Token" if not self . base_url . startswith ( 'https' ) : warnings . warn ( _ ( "You are using unencrypted token authentication!!!" ) ) super ( TokenAuthClient , self ) . __init__ ( * args , ** kwargs ) self . session . headers . update ( { "authentication" : "{keyword} {token}" . format ( keyword = header_keyword , token = token ) } )
:param Token: Authentication token
        :param header_keyword: Authorization HTTP header prefix
        :return: