skip to navigation
skip to content

qualysapi 3.5.6

QualysGuard(R) Qualys API Package

Latest Version: 4.1.0


Python package, qualysapi, that makes calling any QualysGuard API very simple. QualysGuard API versions v1, v2, & WAS & AM (asset management) are all supported.

My focus was making the API super easy to use. The only parameters the user needs to provide is the call, and data (optional). It automates the following:
* Automatically identifies API version through the call requested.
* Automatically identifies url from the above step.
* Automatically identifies http method as POST or GET for the request per Qualys documentation.


Check out the example scripts in the [/examples directory](

Detailed example found at [](

Sample example below.

>>> import qualysapi
>>> a = qualysapi.connect()
QualysGuard Username: my_username
QualysGuard Password:
>>> print a.request('about.php')

<api-version major="1" minor="4"/>



Use pip to install:
pip install qualysapi

NOTE: If you would like to experiment without installing globally, look into 'virtualenv'.


* requests (
* lxml (

Tested successfully on Python 2.7.


By default, the package will ask at the command prompt for username and password. By default, the package connects to the Qualys documented host (

You can override these settings and prevent yourself from typing credentials by doing any of the following:

1. By running the following Python, `qualysapi.connect(remember_me=True)`. This automatically generates a .qcrc file in your current working directory, scoping the configuration to that directory.
2. By running the following Python, `qualysapi.connect(remember_me_always=True)`. This automatically generates a .qcrc file in your home directory, scoping the configuratoin to all calls to qualysapi, regardless of the directory.
3. By creating a file called '.qcrc' (for Windows, the default filename is 'config.ini') in your home directory or directory of the Python script.
4. This supports multiple configuration files. Just add the filename in your call to qualysapi.connect('config.txt').

Example config file
; Note, it should be possible to omit any of these entries.

hostname =
username = jerry
password = I<3Elaine
# Supports NTLM. Username should be in format of 'domain\\username'.
ntlm = True

; This section is optional. Leave it out if you're not using a proxy.
; You can use environmental variables as well:

; proxy_protocol set to https, if not specified.
proxy_url =

; proxy_port will override any port specified in proxy_url
proxy_port = 8080

; proxy authentication
proxy_username = kramer
proxy_password = giddy up!

Apache License, Version 2.0


Special thank you to Colin Bell for qualysconnect.  
File Type Py Version Uploaded on Size
qualysapi-3.5.6.macosx-10.9-x86_64.exe (md5) MS Windows installer any 2014-01-24 80KB
qualysapi-3.5.6.tar.gz (md5) Source 2014-01-24 17KB