Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Return a QGAPIConnect object for v1 API pulling settings from config
file.

        def build_v1_connector():
    """ Return a QGAPIConnect object for v1 API pulling settings from config
    file.
    """
    conf = qcconf.QualysConnectConfig()
    connect = qcconn.QGAPIConnect(conf.get_username(),
                                  conf.get_password(),
                                  conf.get_hostname())
    logger.info("Finished building v1 Connector.")
    return connect
        


src/q/u/QualysConnect-0.0.9/src/scripts/qreports.py   QualysConnect(Download)
from optparse import OptionParser
 
from qualysconnect.util import build_v1_connector, build_v2_session
from qualysconnect.util import is_valid_ip_address, hostname_to_ip
 
    # if requested, fetch and display report types 
    if options.listreports:
        qgc = build_v1_connector()
        ret = qgc.request("report_template_list.php")
        display_QG_report_template_list(QGXP_lxml_objectify(ret))

src/q/u/QualysConnect-0.0.9/src/scripts/qscanhist.py   QualysConnect(Download)
from optparse import OptionParser
 
from qualysconnect.util import build_v1_connector
from qualysconnect.util import is_valid_ip_address, hostname_to_ip
 
 
    # begin session with QualysGuard and process return.
    qgs=build_v1_connector()
 
    # calculate date 1 year (minus a day) in the past for query