{"id":46990375,"url":"https://github.com/snstac/pytak","last_synced_at":"2026-05-07T07:04:49.425Z","repository":{"id":38026638,"uuid":"307516821","full_name":"snstac/pytak","owner":"snstac","description":"PyTAK is a Python package for rapid Team Awareness Kit (TAK) integration.","archived":false,"fork":false,"pushed_at":"2026-01-11T10:18:48.000Z","size":4207,"stargazers_count":206,"open_issues_count":18,"forks_count":59,"subscribers_count":13,"default_branch":"main","last_synced_at":"2026-01-11T15:27:10.811Z","etag":null,"topics":["atak","cot","cursor-on-target","python","tak"],"latest_commit_sha":null,"homepage":"https://pytak.readthedocs.io/en/stable/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snstac.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"ampledata","patreon":null,"open_collective":null,"ko_fi":"ampledata","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":"https://www.buymeacoffee.com/ampledata"}},"created_at":"2020-10-26T22:09:18.000Z","updated_at":"2026-01-11T10:18:48.000Z","dependencies_parsed_at":"2023-11-28T19:26:06.451Z","dependency_job_id":"134eb037-296c-49e3-a8e8-2f869a3c868f","html_url":"https://github.com/snstac/pytak","commit_stats":null,"previous_names":["ampledata/pytak"],"tags_count":68,"template":false,"template_full_name":null,"purl":"pkg:github/snstac/pytak","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snstac%2Fpytak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snstac%2Fpytak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snstac%2Fpytak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snstac%2Fpytak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snstac","download_url":"https://codeload.github.com/snstac/pytak/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snstac%2Fpytak/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30382810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T12:49:11.341Z","status":"ssl_error","status_checked_at":"2026-03-11T12:46:41.342Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atak","cot","cursor-on-target","python","tak"],"created_at":"2026-03-11T13:52:52.289Z","updated_at":"2026-05-07T07:04:49.406Z","avatar_url":"https://github.com/snstac.png","language":"Python","funding_links":["https://github.com/sponsors/ampledata","https://ko-fi.com/ampledata","https://www.buymeacoffee.com/ampledata"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/snstac/pytak/main/docs/media/pytak_logo.png\" alt=\"PyTAK Logo\" width=\"200\"\u003e\n\n# Python Team Awareness Kit (PyTAK)\n\nPyTAK is a Python library for building [TAK](https://tak.gov) clients, servers \u0026 gateways — things that send and receive Cursor on Target (CoT) data on TAK networks.\n\n## Install\n\n```sh\npython3 -m pip install pytak\n```\n\n## Quick example\n\n```python\nimport asyncio, xml.etree.ElementTree as ET\nfrom configparser import ConfigParser\nimport pytak\n\nclass MySender(pytak.QueueWorker):\n    async def handle_data(self, data):\n        await self.put_queue(data)\n    async def run(self):\n        while True:\n            root = ET.Element(\"event\", version=\"2.0\", type=\"t-x-d-d\",\n                              uid=\"myMarker\", how=\"m-g\",\n                              time=pytak.cot_time(), start=pytak.cot_time(),\n                              stale=pytak.cot_time(3600))\n            await self.handle_data(ET.tostring(root))\n            await asyncio.sleep(20)\n\nasync def main():\n    config = ConfigParser()\n    config[\"mytool\"] = {\"COT_URL\": \"tcp://takserver.example.com:8087\"}\n    config = config[\"mytool\"]\n    clitool = pytak.CLITool(config)\n    await clitool.setup()\n    clitool.add_tasks(set([MySender(clitool.tx_queue, config)]))\n    await clitool.run()\n\nasyncio.run(main())\n```\n\n## Features\n\n- **TAK Protocol support** — XML (TAK Protocol v0) and Protobuf (TAK Protocol v1, via `takproto`)\n- **Multiple transports** — TCP, TLS, UDP unicast, UDP multicast (Mesh SA), UDP broadcast, file, stdout\n- **TLS client auth** — PEM certs, PKCS#12 (`.p12`), password-protected keys\n- **TAK enrollment** — automatic certificate enrollment from a `tak://` onboarding URL\n- **Marti REST API** — send/receive CoT via TAK Server's HTTP API (`marti://` URL scheme)\n- **TAK Data Packages** — import `.zip` pref packages containing server connection settings and certs\n- **FreeTAKServer compat** — built-in rate-limiting mode (`FTS_COMPAT`)\n- **No required external deps** — pure-Python asyncio core; optional extras for TLS enrollment and Protobuf\n\n## Documentation\n\nFull documentation at **[pytak.rtfd.io](https://pytak.rtfd.io/)** including installation, configuration, examples, and troubleshooting.\n\n## License \u0026 Copyright\n\nCopyright Sensors \u0026 Signals LLC https://www.snstac.com\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nasyncio_dgram is Copyright (c) 2019 Justin Bronder and is licensed under the MIT\nLicense, see pytak/asyncio_dgram/LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnstac%2Fpytak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnstac%2Fpytak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnstac%2Fpytak/lists"}