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.2.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for cap_tools-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d46e415ce319081f1d0c872248b6cfd231be63dc5411a91a48a889ebcb5643f8 |
|
MD5 | 7c24211abf0940f04efc3367903f3ad7 |
|
BLAKE2b-256 | 77ee2fb5e8e81cd893d6751d295c24453165466c9c96779683a5ea0b22d337ae |