Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

The CAP to GeoJSON Converter

The Python package for making CAP alerts visualizable

License Badge Super-Linter Unit-Tests Publish-To-PyPI

Features

Getting Started

1. Installation

pip install cap2geojson

2A. Using the API

We can convert the CAP XML to GeoJSON using the transform(cap) method:

  • cap: The CAP alert XML string contents.
from cap2geojson import transform

with open(<cap-alert-directory>, 'r') as f:
    cap = f.read()

result = transform(cap)

2B. Using the CLI

We can convert a CAP alert directly to a GeoJSON file using the following command:

cap2geojson transform <cap-alert-directory>

Bugs and Issues

All bugs, enhancements and issues are managed on GitHub.

Contact

Metadata

Release files for cap2geojson 0.1.0.dev4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cap2geojson 0.1.0.dev4
File Size Uploaded Provenance Actions
cap2geojson-0.1.0.dev4.tar.gz 16.0 kB Without provenance Details for cap2geojson-0.1.0.dev4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cap2geojson 0.1.0.dev4
File Interpreter ABI Platform Actions
cap2geojson-0.1.0.dev4-py3-none-any.whl Python 3 none any Details for cap2geojson-0.1.0.dev4-py3-none-any.whl

Total release size: 30.6 kB

Release files / cap2geojson-0.1.0.dev4.tar.gz

Download URL cap2geojson-0.1.0.dev4.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9dabca6bf1468e0915c1a3d102a3fcd1cebb7f802dbd8dc3f8ac55d81de1ca36
BLAKE2b-256 checksum
How to use checksums
ee8ee961ef6b1088a143c791272ce81d86d3163527827521bc27a117b7d72c8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / cap2geojson-0.1.0.dev4-py3-none-any.whl

Download URL cap2geojson-0.1.0.dev4-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2386c6c86971c367bd98c584095129d5d6d0f7537cb41ac335eaca418f96e900
BLAKE2b-256 checksum
How to use checksums
652fcefb7d044b1416ea9b748a3031721163dd87e4d49c857f87e8ac8c2d71b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Security for cap2geojson 0.1.0.dev4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page