ampledata / dummyserial

Dummy Serial module for mocking / testing / simulating Python Serial Interfaces.
Other
17 stars 7 forks source link

Python Module for Dummy Serial


Emulates pyserial's write/read responses from a serial port.

Works by suppling a dictionary of responses to various paramters.

For example::

ds_responses = {
    'taco': 'yum'
}

Would read() yum for a write() of taco.

Derived from Jonas Berg's 'dummy_serial.py'.

Source

Github: https://github.com/ampledata/dummyserial

Authors

Copyright

Copyright 2016 Orion Labs, Inc.

License

Apache License, Version 2.0