Skip to main content

PySerial reader extension for Tornado

https://readthedocs.org/projects/soners/badge/?version=latest https://badge.fury.io/py/soners.png https://travis-ci.org/cpapazaf/soners.svg?branch=master

Usage

Simple example:

import tornado
from soners.soners_server import SonersServer


def temperature_handler(device, temperature):
    print(temperature)


if __name__ == '__main__':
    my_sensor = SonersServer([('^T:(?P<temperature>.*)$', temperature_handler)])
    my_sensor.listen()
    tornado.ioloop.IOLoop.current().start()

Installation

Or using last source:

$ pip install git+git://github.com/cpapazaf/soners.git

Contribution

Creating Issues

If you find a problem please create an issue in the ticket-system and describe what is going wrong or what you expect to happen. If you have a full working example or a log file this is also helpful. You should of course describe only a single issue in a single ticket and not mixing up several different things into a single issue.

Creating a Pull Request

Before you create a pull request it is necessary to create an issue in the ticket-system and describe what the problem is or what kind of feature you would like to add. Afterwards you can create an appropriate pull request.

It is required if you want to get a Pull request to be integrated into to squash your commits into a single commit which references the issue in the commit message.

A pull request has to fulfill only a single ticket and should never create/add/fix several issues in one, cause otherwise the history is hard to read and to understand and makes the maintenance of the issues and pull request hard.

License

Distributed under the Apache License 2.0 license: http://opensource.org/licenses/Apache-2.0

Metadata

Release files for soners 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for soners 1.0.7
File Size Uploaded
soners-1.0.7.tar.gz 3.2 kB Details

Release files / soners-1.0.7.tar.gz

Download URL soners-1.0.7.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e1ecc3fc2667a9ab9bf76cab31095197fdafd718af875213ce79a9bf8c6cb54f
BLAKE2b-256 checksum
How to use checksums
f14efe5db4299a2245e053aaee9eef26ab3474a965ad85e25313c7e4a638afda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.7 This release

1 release file

1.0.6

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page