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-2.0.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for cap_tools-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59930e5ccb9a441b834c893d920c81118a9b99aba1c7983dbbd8525dcf9ca414 |
|
MD5 | 665960acbb49901ab8704cd6b733a58d |
|
BLAKE2b-256 | 9fb438fa9acb29505a8ee8a07465069bbb891bff35276cc26bb32ff001e43762 |