Python framework for a NMEA 0183 TCP Server inspired by Flask developer API
Project description
nmeaserver
Python framework for a NMEA 0183 TCP Server inspired by Flask developer API
Create your first NMEA Server
The nmeaserver framework is inspired from the Flask interface to make it straight-forward to setup server.
The first step is to install nmeaserver locally.
pip install nmeaserver
To create your first server, all you need to do is:
from nmeaserver import server, formatter
# Creates a nmeaserver
app = server.NMEAServer()
# Create a message handler that receives all messages with the sentence ID: 'RXTST'
@app.message('RXTST')
def tst_handler(self, context, message):
return formatter.format('TXTST,Message Received!')
# Starts the server
app.start()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nmeaserver-0.1.10.tar.gz
(6.7 kB
view details)
File details
Details for the file nmeaserver-0.1.10.tar.gz
.
File metadata
- Download URL: nmeaserver-0.1.10.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80f0820e1c3f60beded4bfe5e7fc118e026abe530da1bb68ef0fe12f6ddedad1 |
|
MD5 | b90efdcd452461acdb218f75402697d1 |
|
BLAKE2b-256 | d61ae029bfc776bb1a64bef401af88aa4103be7e3563d2a534500d82b6024dc2 |