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-1.1.2.tar.gz (5.0 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-1.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file gpsd_client_async-1.1.2.tar.gz.

File metadata

  • Download URL: gpsd_client_async-1.1.2.tar.gz
  • Upload date:
  • Size: 5.0 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-1.1.2.tar.gz
Algorithm Hash digest
SHA256 46cd36a1345b2e0250fa8156362b0f22a245b883925923683ddeba410edccb3a
MD5 3b0300ddc2150dd5aa17feaa320f2360
BLAKE2b-256 07f728f7804a21844ead3bef5a2caa609f5df96e3d581dab60a79df9660f7159

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpsd_client_async-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 49c79f9f036d160f067d910660cff24a2947957a28bc83231bad301aec7f1afb
MD5 7ed3ac2bde190d2a9d71463f1c9fa480
BLAKE2b-256 4a30971baae86829c2c60adea7bee7ca3a290c10d61157a58c52f56801233693

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