Skip to main content
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 (c) 2019 Justin Bronder and is licensed under the MIT License, see pytak/asyncio_dgram/LICENSE for details.

Release files for pytak 7.6.1

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

Source distribution (sdist)

Source distribution for pytak 7.6.1
File Size Uploaded
pytak-7.6.1.tar.gz 115.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytak 7.6.1
File Interpreter ABI Platform
pytak-7.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 190.3 kB

Release files / pytak-7.6.1.tar.gz

Download URL pytak-7.6.1.tar.gz
Size 115.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9dc7ac271f932ac18585ebcc5d30441c707f5d68d97c0d1408db7695fb7498db
BLAKE2b-256 checksum
How to use checksums
ab1de0494128d4579bce0e98967aa596bd2c5d2d0bbae1d1c2b7caf6511197d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.

Transparency log

Release files / pytak-7.6.1-py3-none-any.whl

Download URL pytak-7.6.1-py3-none-any.whl
Size 75.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a8a36282149022b4937390665ec84ddd1fefa656e2dd6f0689f65be176d3738
BLAKE2b-256 checksum
How to use checksums
233d4430744208ee3c655c1b9a43644a20557c1b190de54fb6c2921c6cbf67cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

7.6.1 This release

2 release files

7.5.2

2 release files

7.5.1

2 release files

7.5.0

2 release files

7.4.3

2 release files

7.4.2

2 release files

7.4.1

2 release files

7.4.0

2 release files

7.3.14

2 release files

7.3.13

2 release files

7.3.12

2 release files

7.3.10

2 release files

7.3.9

2 release files

7.3.7

2 release files

7.3.0

2 release files

7.2.1

2 release files

7.0.2

2 release files

7.0.1

2 release files

7.0.0

2 release files

6.4.0

2 release files

6.3.2

2 release files

6.3.1

2 release files

6.3.0

2 release files

6.2.4

2 release files

6.2.3

2 release files

6.2.2

2 release files

6.2.1

2 release files

6.2.0

2 release files

6.0.0

2 release files

5.6.1

2 release files

5.6.0

2 release files

5.5.0

2 release files

5.4.1

2 release files

5.4.0

2 release files

5.3.1

2 release files

5.3.0

2 release files

5.2.0

2 release files

5.1.0

2 release files

5.0.4

2 release files

5.0.3

2 release files

5.0.2

2 release files

5.0.1

2 release files

5.0.0

2 release files

4.0.0

2 release files

3.5.2

2 release files

3.5.1

2 release files

3.4.0

1 release file

3.2.0

1 release file

3.1.1

1 release file

3.1.0

1 release file

3.0.0

1 release file

2.2.1

1 release file

2.2.0

1 release file

2.1.0

1 release file

2.0.0

1 release file

1.0.0

1 release file

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