Skip to main content

Setup

pip install hatch

Running Tests

hatch run cov

Running Examples

hatch run examples/network.py

Using InfluxDB

hwtest includes an InfluxDB telemetry logger. If you choose to use this, make sure you have InfluxDB configured by following the setup guide. Be sure to install version 2+, as that's the API the logger uses.

You'll also need to create an org and access token inside the InfluxDB UI (accessible via http://localhost:8086/ if running locally). The logger creates the InfluxDB client using environment variables for configuration. Specifically, you'll need to set at least INFLUXDB_V2_ORG and INFLUXDB_V2_TOKEN.

To test your configuration, run:

hatch run examples/influxdb.py

This should write 10 datapoints to the bucket named network-example.

You can also try the subprocess driver example, which runs the same test as the influxdb.py example, but attempts to log telemetry at 50 Hz in the background while running the test.

Distributing hwtest

You may need to distribute a copy of hwtest to customers so they can run tests against your hardware. In order to create packages you can distribute, run

hatch build

This will create a hwtest-*.whl file under a dist/ directory. This will include just the source code, not any examples, tests, or documentation. This .whl file can be installed on another machine with pip install filename.whl. You don't need hatch to use the .whl file.

Metadata

Release files for hwtest 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for hwtest 0.0.1
File Interpreter ABI Platform
hwtest-0.0.1-py3-none-any.whl Python 3 none any Details

Release files / hwtest-0.0.1-py3-none-any.whl

Download URL hwtest-0.0.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b67d61d77f912ee0a49b5f774dd697edcf0196dff83672b7da912cfe03a1f11a
BLAKE2b-256 checksum
How to use checksums
465707cfd75f07df7bf5c81a55f8494c45653a8d611793fd41734e39d35de430
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.23.3

Security for hwtest 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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page