Metadata-Version: 2.4
Name: gpsd-client-async
Version: 1.1.2
Summary: Read data from gpsd daemon using asyncio library
Author-email: Tomas Peterka <tomas.peterka@dronetag.com>, Zachary Juang <zachary822@me.com>
License: MIT
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pydantic<3.0,>=2.9.0
Dynamic: license-file

# Asycio GPSd Client

Fork of very well done asyncio-gpsd-client that was unfortunately quite out of date.
I just cleaned it up a bit and updated dependencies.

GPSd is an unified interface to GNSS modules in Linux. GPSd publishes its data on localhost:2367.
Upon connection, it sends initial data (Devices, Watch, Version messages) that are available in
GpsdClient instance. The client then provides an async iterator that reports the runtime messages
TPV (location update) and Sky (status update). For details about messages, refer to `messages.py`.

# Install

```shell
pip install gpsd-client-async
```

# Usage

```python
import asyncio

import gpsd_client_async as gpsd

async def main():
    async with gpsd.GpsdClient() as client:
        async for message in client:
            print(message)  # TPV or Sky message

asyncio.run(main())
```

## Debugging

The client reports messages to `"agpsd"` logger.
