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
Release history Release notifications | RSS feed
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-1.0.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for cap_tools-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0edefb18bbe15c0bbad23b06247df4484c20f259d6b6582fab578f15d589c765 |
|
MD5 | 9a05440f3dc0783b27420ef36ca4f636 |
|
BLAKE2b-256 | 2697c642d2e84bafa4bfb8af1bce8d770a0f14beb1792c691784796d3b6e74ea |