Vegetronix VegeHub
This package is intended to simplify interactions with the Vegetronix VegeHub. It allows remote setup of the API key and target server address, as well as simplifying retrieval of information about the Hub, including its MAC address.
This package was written for use with the VegeHub integration for Home Assistant, but may be used in other projects as well.
Development on this library was done using Python Poetry for dependency management and building/publishing. Find more info about how to use it here.
Development
Running Unit Tests
The library includes comprehensive unit tests that use mocked HTTP responses:
poetry run pytest
Running Integration Tests
Integration tests are available to test the library against real VegeHub devices on your local network. These tests:
- Automatically discover VegeHub devices using mDNS
- Allow you to select which device to test
- Optionally test actuator functionality (with safety warnings)
- Cover all major library features
To run integration tests:
-
Install the optional test dependency:
poetry install # zeroconf is included in dev dependencies
-
Ensure your VegeHub device is powered on and connected to the same network
-
Run the integration test script:
poetry run python integration_test.py
-
Or use the VS Code task: Terminal > Run Task > Run Integration Tests
The integration tests will:
- Scan for VegeHub devices on your network
- Let you choose which device to test
- Ask if you want to test actuator control (optional)
- Run comprehensive tests covering all library functionality
- Provide a detailed report of test results
Note: Integration tests are separate from unit tests and require physical hardware. They are designed to be run manually when you have access to a VegeHub device.
Metadata
Release files for vegehub 0.1.26
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 |
|---|---|---|---|---|
| vegehub-0.1.26.tar.gz | 18.5 kB | Without provenance | Details for vegehub-0.1.26.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vegehub-0.1.26-py3-none-any.whl | Python 3 | none | any | Details for vegehub-0.1.26-py3-none-any.whl |
Total release size: 37.9 kB
Release files / vegehub-0.1.26.tar.gz
| Download URL | vegehub-0.1.26.tar.gz |
|---|---|
| Size | 18.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0499680f751554b90d9edb40fbdd37123251ddbedfa8efeba683a56e55f658db
|
|
BLAKE2b-256 checksum How to use checksums |
d09aa70c56bbbd4b880a78ba677b1014422f0aad3f7398032e425bf2dda9de8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.3 Linux/6.8.0-85-generic
|
Release files / vegehub-0.1.26-py3-none-any.whl
| Download URL | vegehub-0.1.26-py3-none-any.whl |
|---|---|
| Size | 19.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
463bfa46eb92ac6e913372777a56110803d6330323813a0b7673527ffc05b04f
|
|
BLAKE2b-256 checksum How to use checksums |
b3f8afc4bc46522f283cc29582cbf56e5754359b3fee1d1493c29a7ba4684676
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.3 Linux/6.8.0-85-generic
|
Security for vegehub 0.1.26
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.