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.1.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for cap_tools-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c24464ebb107e2af9ed92dea617820d3fad4fc49a9992c5b9f72fd491a55b31e |
|
MD5 | ca98ce89dac7a9bb579a1a757daf7942 |
|
BLAKE2b-256 | ecf85b5c163bde5636c8c66d387f1cad179731c927b6cefa23d518d6826145e2 |