Read data from gpsd daemon using asyncio library
Project description
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
pip install gpsd-client-async
Usage
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gpsd_client_async-2.0.0.tar.gz.
File metadata
- Download URL: gpsd_client_async-2.0.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4925752d72504fc689e3dda4f407c042af178932161de8c9d341a1cd8761428f
|
|
| MD5 |
91a6577b57452ea2df8538c08110e4c9
|
|
| BLAKE2b-256 |
374205368e8dad98b70034d170208f1c096e951419c9228f3b3c175add4c044b
|
File details
Details for the file gpsd_client_async-2.0.0-py3-none-any.whl.
File metadata
- Download URL: gpsd_client_async-2.0.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f231c47e97c40e89882832879146e80438be8105aa559dace2d083aa97271fd2
|
|
| MD5 |
a24775e36b32edffdb6a74e45647f419
|
|
| BLAKE2b-256 |
182c4eb93022438951943d97da6bff08c86ea6daf00563fa00e51bd4183e79bc
|