Skip to main content

Functionality for encoding/decoding ADSB messages written in pure Python 3

Project description

adsb

ADSB and Mode-S decoder/encoder

The Adsb class provides parse and encode functions for creating Adsb objects from a bytes object, and encoding an object to bytes respectively.

The Tracker class implements a simple aircraft tracker that detects vehicles and collects and updates information about them. The Tracker class is meant primarily as an example application.

Example: decoding messages given either as bytes or int:

from adsb import Adsb

print(Adsb.parse(0x8D40621D58C382D690C8AC2863A7))
print(Adsb.parse(b'\x8D\x48\x40\xD6\x20\x2C\xC3\x71\xC3\x2C\xE0\x57\x60\x98')

Example: tracking aircrafts:

from adsb import Tracker

tracker = Tracker()
for msg in readline():
    m = Adsb.parse(msg.strip().encode())
    tracker.process(m)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyadsb-0.0.3.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyadsb-0.0.3-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file pyadsb-0.0.3.tar.gz.

File metadata

  • Download URL: pyadsb-0.0.3.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyadsb-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8d9d7a8f118db70f56bd52e6e4f868812c194d0c1a57e7d60ec826953ffb5fa1
MD5 cc948e936c416e2c5faeac1a78280405
BLAKE2b-256 ecc7ee0ef59d0293fd58d5138d165c25c0979e077eb853dfdf6fc897c85556c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyadsb-0.0.3.tar.gz:

Publisher: python-publish.yml on enok71/adsb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyadsb-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyadsb-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyadsb-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8276f4de5d636fb870df258c27329bd03b24b0fdfad2ecbd7e61452b15f5c989
MD5 75009c5b6f6603f5bfa3ec21fdcecebb
BLAKE2b-256 b6d35170e02b5d0813f0b639d6c8d1d2bc8ec2f2f805cd5b297aa1e631e11595

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyadsb-0.0.3-py3-none-any.whl:

Publisher: python-publish.yml on enok71/adsb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page