dsalib is a module for Python that retrieves all the details for each Debian alert (DSA) published on Debian's security website (http://security.debian.org/ ), parses it, and put it in an exploitable/queryable way. This module has been created for use with the project dsacheck.
Please note that this module uses decorators, so you'll need at least Python 2.4.