python-hhc-n10
What is this lib ?
This library is made to communicate with HHC-N10 devices. They are relays that can be toggled via ethernet (TCP/IP).
How to use the lib
from hhcn10 import hhcn10
h = hhcn10.HHCN10()
h.set_relay(True)
print('The relay is: ' + str(h.read_relay()))
time.sleep(1)
h.set_relay(False)
print('And now the relay is: ' + h.read_relay())
Please note that the implementation of their TCP stack is finnicky and only accepts 5 parallel connections. If you try to open too many sockets at once the relay will hang for some time.
Default params
The relay default's IP is 192.168.0.105/24. If your computer is not in this same subnet, you'll need to add a static route + a static IP in the same subnet as this relay. You can then change the device's IP using the change_ip(addr, netmask, gw) method.
Metadata
Release files for python-hhc-n10 0.0.1
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 |
|---|---|---|---|---|
| python-hhc-n10-0.0.1.tar.gz | 2.3 kB | Without provenance | Details for python-hhc-n10-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_hhc_n10-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for python_hhc_n10-0.0.1-py3-none-any.whl |
Total release size: 5.0 kB
Release files / python-hhc-n10-0.0.1.tar.gz
| Download URL | python-hhc-n10-0.0.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df205bd45d163df4f42aeba51be4210d18340f54cf05d115eeb7b3507c9441c3
|
|
BLAKE2b-256 checksum How to use checksums |
551c7f638a30e6d3a5367bfc5777c2128537d4945fe93f275f38dd0cc3ef3bdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / python_hhc_n10-0.0.1-py3-none-any.whl
| Download URL | python_hhc_n10-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4538d0c4bfc5743c684736f307077fb553e4d77664b6c355428b10fdb232fb3b
|
|
BLAKE2b-256 checksum How to use checksums |
fffa0d9a4f8227e7fa5849067549dced50e0b85ace2b078037e858d8ba9b283d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for python-hhc-n10 0.0.1
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.