Skip to main content

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

gpsd_client_async-2.0.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

gpsd_client_async-2.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for gpsd_client_async-2.0.0.tar.gz
Algorithm Hash digest
SHA256 4925752d72504fc689e3dda4f407c042af178932161de8c9d341a1cd8761428f
MD5 91a6577b57452ea2df8538c08110e4c9
BLAKE2b-256 374205368e8dad98b70034d170208f1c096e951419c9228f3b3c175add4c044b

See more details on using hashes here.

File details

Details for the file gpsd_client_async-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gpsd_client_async-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f231c47e97c40e89882832879146e80438be8105aa559dace2d083aa97271fd2
MD5 a24775e36b32edffdb6a74e45647f419
BLAKE2b-256 182c4eb93022438951943d97da6bff08c86ea6daf00563fa00e51bd4183e79bc

See more details on using hashes here.

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