# 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.
<b>Example</b>: 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')
```
<b>Example</b>: tracking aircrafts:
```
from adsb import Tracker
tracker = Tracker()
for msg in readline():
m = Adsb.parse(msg.strip().encode())
tracker.process(m)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/enok71/adsb",
"name": "pyadsb",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Oskar Enoksson <enok@lysator.liu.se>",
"keywords": "adsb, ads-b, aircraft, mode-s",
"author": "Oskar Enoksson",
"author_email": "Oskar Enoksson <enok@lysator.liu.se>",
"download_url": "https://files.pythonhosted.org/packages/ec/c7/ee0ef59d0293fd58d5138d165c25c0979e077eb853dfdf6fc897c85556c0/pyadsb-0.0.3.tar.gz",
"platform": null,
"description": "# adsb\nADSB and Mode-S decoder/encoder\n\nThe `Adsb` class provides `parse` and `encode` functions for creating `Adsb` objects from a bytes object, and encoding an object to bytes respectively.\n\nThe `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.\n\n<b>Example</b>: decoding messages given either as `bytes` or `int`:\n```\nfrom adsb import Adsb\n\nprint(Adsb.parse(0x8D40621D58C382D690C8AC2863A7))\nprint(Adsb.parse(b'\\x8D\\x48\\x40\\xD6\\x20\\x2C\\xC3\\x71\\xC3\\x2C\\xE0\\x57\\x60\\x98')\n```\n\n<b>Example</b>: tracking aircrafts:\n```\nfrom adsb import Tracker\n\ntracker = Tracker()\nfor msg in readline():\n m = Adsb.parse(msg.strip().encode())\n tracker.process(m)\n```\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Functionality for encoding/decoding ADSB messages written in pure Python 3",
"version": "0.0.3",
"project_urls": {
"Documentation": "https://github.com/enok71/adsb/wiki",
"Homepage": "https://github.com/enok71/adsb",
"Issues": "https://github.com/enok71/adsb/issues"
},
"split_keywords": [
"adsb",
" ads-b",
" aircraft",
" mode-s"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b6d35170e02b5d0813f0b639d6c8d1d2bc8ec2f2f805cd5b297aa1e631e11595",
"md5": "75009c5b6f6603f5bfa3ec21fdcecebb",
"sha256": "8276f4de5d636fb870df258c27329bd03b24b0fdfad2ecbd7e61452b15f5c989"
},
"downloads": -1,
"filename": "pyadsb-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "75009c5b6f6603f5bfa3ec21fdcecebb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 9527,
"upload_time": "2024-12-08T01:48:26",
"upload_time_iso_8601": "2024-12-08T01:48:26.947561Z",
"url": "https://files.pythonhosted.org/packages/b6/d3/5170e02b5d0813f0b639d6c8d1d2bc8ec2f2f805cd5b297aa1e631e11595/pyadsb-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ecc7ee0ef59d0293fd58d5138d165c25c0979e077eb853dfdf6fc897c85556c0",
"md5": "cc948e936c416e2c5faeac1a78280405",
"sha256": "8d9d7a8f118db70f56bd52e6e4f868812c194d0c1a57e7d60ec826953ffb5fa1"
},
"downloads": -1,
"filename": "pyadsb-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "cc948e936c416e2c5faeac1a78280405",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 8827,
"upload_time": "2024-12-08T01:48:28",
"upload_time_iso_8601": "2024-12-08T01:48:28.090548Z",
"url": "https://files.pythonhosted.org/packages/ec/c7/ee0ef59d0293fd58d5138d165c25c0979e077eb853dfdf6fc897c85556c0/pyadsb-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-08 01:48:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "enok71",
"github_project": "adsb",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pyadsb"
}