Skip to main content

Python data bindings for the Common Alerting Protocol Version.

Project description

CAP-Tools

Python data bindings for the Common Alerting Protocol Version 1.2.

Getting started

This package contains a Python model for CAP XML documents that was generated using using xsData.

To parse a CAP XML from a file into an instance of cappy.models.Alert, do as follows:

from cappy.models import Alert
from xsdata.formats.dataclass.parsers import XmlParser

parser = XmlParser()
alert = parser.parse("path/to/my/cap.xml", Alert)

For advanced usage, just take a look at the xsData docs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cap_tools-2.3.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

cap_tools-2.3.0-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page