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.3.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for cap_tools-2.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60a282fda79863275de1665a52d1618e4356d29d12a59e123b1dac2c7eb102b4 |
|
MD5 | dca7e947d47a97882b4716a2eead3f5e |
|
BLAKE2b-256 | 02410dd282a83061aa1b7a4662551f714453024d078ca2668c0efd2c006c0ea2 |