Skip to main content

A python library for generating human machine interfaces

Project description

travis docs pypi


hmPy is a Python library for building HMIs.

Installing hmPy

To install the latest version of hmPy using pip:

$ pip install hmPy

Running Tests

hmPy’s test suite can be run using tox:

$ tox

Note that pep8 compliance is required for the tests to pass.

Example Code

For those of you who want to hit the ground running:

from hmpy import Interface
from hmpy.views import ButtonView, LCDView

# Create the base interface
hmi = Interface()

# Initialize counter to 0
count = 0

# Initialize an LCD View and a button View
lcd = LCDView()
btn = ButtonView("Increment")

def increment_count():
    lcd.value += 1

# Call the increment count method whenever the button is pressed

# Add the views to the interface

# Launch the interface

For more detailed documentation and advanced examples, see the full documentation.


Full documentation and tutorial available at Read the Docs.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hmPy-0.2.0.tar.gz (12.0 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page