hmPy
Purpose
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
btn.on_press(increment_count)
# Add the views to the interface
hmi.add_view(lcd)
hmi.add_view(btn)
# Launch the interface
hmi.start()
For more detailed documentation and advanced examples, see the full documentation.
Documentation
Full documentation and tutorial available at Read the Docs.
Metadata
Release files for hmPy 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hmPy-0.2.0.tar.gz | 12.0 kB | Without provenance | Details for hmPy-0.2.0.tar.gz |
Release files / hmPy-0.2.0.tar.gz
| Download URL | hmPy-0.2.0.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bebf4a5ba8d8d046998f24af213bcddb0d4de1d5f015c4aedae590f5d8aaf36d
|
|
BLAKE2b-256 checksum How to use checksums |
74a3db2fd0b0fdae52c9c953f428637459e66ac60b990004568e1d93c1412116
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for hmPy 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.