Python Serial


pyserial 2.7
https://pypi.python.org/pypi/pyserial

Dokumentation
http://pyserial.sourceforge.net/

Install:

$ sudo apt-get update
$ sudo apt-get install python-serial

Example

>>> import serial
>>> UART = serial.Serial("/dev/ttyAMA0", baudrate=9600)
>>> UART.write("\n")