Apache License 2.0

项目介绍

snstac/pytak 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 Apache License 2.0 许可证,目前获得 256 个 Star、68 次 Fork。

仓库全名
snstac/pytak
开源许可证
Apache License 2.0
Star 数
256
Fork 数
68
未关闭 Issue
17

README 摘要

Python Team Awareness Kit (PyTAK) PyTAK is a Python library and command-line TAK client for building small, usable TAK clients, servers, and gateways. It can be embedded in another application or used directly to send and receive Cursor on Target (CoT) data on TAK networks. Install Command-line example Connect with a TAK onboarding URL directly from the CLI: Generate onboarding data packages (PKCS#12, PEM, ATAK +…

完整内容见 GitHub 原始 README 或本页 。

常见问题

pytak 用什么语言开发?

主要使用 Python 编写,采用 Apache License 2.0 许可证,目前有 256 个 Star。

pytak 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 pytak 的源码?

可以直接克隆仓库:git clone https://github.com/snstac/pytak.git,默认分支为 main;安装与运行步骤见仓库 README。

pytak 最近还在维护吗?

仓库最近一次更新为 5 天前,当前有 17 个未关闭 Issue;Star 数为 256,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

PyTAK is a Python package for rapid Team Awareness Kit (TAK) integration.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
406
价值分
174
活跃状态
活跃

语言占比

Makefile
Python
Shell

Release

README

PyTAK Logo

Python Team Awareness Kit (PyTAK)

PyTAK is a Python library and command-line TAK client for building small, usable TAK clients, servers, and gateways. It can be embedded in another application or used directly to send and receive Cursor on Target (CoT) data on TAK networks.

Install

python3 -m pip install pytak

Command-line example

Connect with a TAK onboarding URL directly from the CLI:

pytak "tak://com.atakmap.app/enroll?host=takserver.example.com&username=myuser&token=mytoken"

Generate onboarding data packages (PKCS#12, PEM, ATAK + iTAK ZIPs) without connecting:

pytak dp 'tak://com.atakmap.app/enroll?host=takserver.example.com&username=myuser&token=mytoken'

See Onboarding data packages in the docs.

Quick example

import asyncio, xml.etree.ElementTree as ET
from configparser import ConfigParser
import pytak

class MySender(pytak.QueueWorker):
    async def handle_data(self, data):
        await self.put_queue(data)
    async def run(self):
        while True:
            root = ET.Element("event", version="2.0", type="t-x-d-d",
                              uid="myMarker", how="m-g",
                              time=pytak.cot_time(), start=pytak.cot_time(),
                              stale=pytak.cot_time(3600))
            await self.handle_data(ET.tostring(root))
            await asyncio.sleep(20)

async def main():
    config = ConfigParser()
    config["mytool"] = {"COT_URL": "tcp://takserver.example.com:8087"}
    config = config["mytool"]
    clitool = pytak.CLITool(config)
    await clitool.setup()
    clitool.add_tasks(set([MySender(clitool.tx_queue, config)]))
    await clitool.run()

asyncio.run(main())

Features

  • TAK Protocol support: XML (TAK Protocol v0) and Protobuf (TAK Protocol v1, via takproto)
  • Multiple transports: TCP, TLS, UDP unicast, UDP multicast (Mesh SA), UDP broadcast, file, stdout, WebSockets
  • TLS client auth: PEM certs, PKCS#12 (.p12), password-protected keys
  • TAK enrollment: automatic certificate enrollment from a tak:// onboarding URL; pytak dp exports ATAK/iTAK connection packages
  • Marti REST API: send/receive CoT via TAK Server’s HTTP API (marti:// URL scheme)
  • TAK Data Packages: import .zip pref packages containing server connection settings and certs
  • No required external deps: pure-Python asyncio core; optional extras for TLS enrollment and Protobuf

Documentation

Full documentation at pytak.rtfd.io including installation, configuration, examples, and troubleshooting.

Copyright Sensors & Signals LLC https://www.snstac.com

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

asyncio_dgram is Copyright © 2019 Justin Bronder and is licensed under the MIT License, see pytak/asyncio_dgram/LICENSE for details.

评论

暂无评论