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.1.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for cap_tools-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d815f5ad3d4606fbde78e335f50da5dbcfd5fcb7d8f71066a352c02cf9905cc |
|
MD5 | a64fbeb43cf4b4d180fc363a536b5193 |
|
BLAKE2b-256 | f3a438ab1c146cd6295d6af7b6ed9d308faf90a4f379b7384eddd918cc61bb3f |