8000 GitHub - samliu/pp-gpsd-py3: Post Perception's Fork of the Python 3 GPSD client
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

samliu/pp-gpsd-py3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
< 8000 a href="/samliu/pp-gpsd-py3/commits/master/" class="prc-Button-ButtonBase-c50BI LinkButton-module__code-view-link-button--xvCGA flex-items-center fgColor-default" data-loading="false" data-size="small" data-variant="invisible" aria-describedby=":R1iqj8pab:-loading-announcement history-icon-button-tooltip">
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python3 GPSD client

This is a library for polling gpsd in Python3

Installation

Install through pip:

$ pip3 install gpsd-py3

Usage

Just import it and poll the gps. Only a single gpsd server a time is supported:

import gpsd

# Connect to the local gpsd
gpsd.connect()

# Connect somewhere else
gpsd.connect(host="127.0.0.1", port=123456)

# Get gps position
packet = gpsd.get_current()

# See the inline docs for GpsResponse for the available data
print(packet.position())

More detailed documentation is available in the inline docstrings in the module. A list is also readable in DOCS.md (thanks @richteelbah for the detailed docs)

About

Post Perception's Fork of the Python 3 GPSD client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0