snstac / pytak

PyTAK is a Python package for rapid TAK integration.
https://pytak.readthedocs.io/en/stable/
Apache License 2.0
156 stars 42 forks source link

Decouple client cot object from transmission tak_proto version #49

Open sei-jmattson opened 11 months ago

sei-jmattson commented 11 months ago

As a developer, I'd like to build COT event objects as either protobuf or XML and have pytak convert as necessary to the desired tak_protocol bytes for transmission.

This allows folks to develop withtakproto but still be able to function in TAK_PROTO=0 environments. This allows mixing of new code producing protobuf event objects and legacy code with ET events in the same client. Likewise, it would allow receipt of both TAK_PROTO 0 and 1 messages at the same time (which seems to be how ATAK is functioning).   If you'd be amenable to a PR implementing such, I'm thinking along these lines:

ampledata commented 9 months ago

@sei-jmattson PR welcome!