Firmata is a protocol for communicating with microcontrollers from software on a computer (or smartphone/tablet, etc). The protocol can be implemented in firmware on any microcontroller architecture as well as software on any computer software package (see list of client libraries below). ~ Firmata Protocol Documentation
You can install this library on your machine using PIP.
pip install zorg-firmata
To use this library with your microcontroller, you will need to load the Standard Firmata software onto it first. See Uploading StandardFirmata To Arduino for an example of how to do this.
Several examples for using the zorg-firmata
module are available on GitHub.
https://github.com/zorg/zorg-firmata/tree/master/examples
This module wraps the PyMata library to provide Firmata support within the Zorg robotics framework.