Skip to main content

read-the-docs PyPI version pre-commit Ruff DOI

What is this repository for?

The goal is to provide reusable code for hardware control using python and Qt.

Documentation can be found at Read the Docs.

How do I get set up?

The easiest way is to pip install the software:

pip install hardware-control

Examples

If you want to have a quick look at some basic functionality, you can run the demos in the example directory. If you have the same hardware that is used in the example, you will have to update the connection address, e.g. ip address. Otherwise, you can still run the examples by providing the --dummy command line argument that will simulate instrument output. The logging level can also be redirected to the terminal using --console and the log-level changed by providing --info or --debug options on the command line.

Tests

We use pytest to provide some simple tests for some of the functionallity of the package. However, to check if an instrument is really working, one needs to have the instrument connected, which makes testing harder. When the instruments are not available some functionallity, such as the Qt layout, can still be tested using "--dummy" mode. In this mode instrument parameters can return a predefined value or the result of a function.

To run the tests use:

python -m pytest

Contribution guidelines

Feel free to contribute new drivers for hardware or other changes.

We use black to format the code, so please format your code accordingly. The easiest way to achieve this is to install pre-commit and use the config file we provide:

pip install pre-commit
# cd into repo
pre-commit install

How to cite this package

Please use the following citation.

@article{Giesbrecht2022,
  doi = {10.21105/joss.02688},
  url = {https://doi.org/10.21105/joss.02688},
  year = {2022},
  publisher = {The Open Journal},
  volume = {7},
  number = {72},
  pages = {2688},
  author = {Grant Giesbrecht and Ariel Amsellem and Timo Bauer and Brian Mak and Brian Wynne and Zhihao Qin and Arun Persaud},
  title = {Hardware-Control: Instrument control and automation package},
  journal = {Journal of Open Source Software}
}

Who do I talk to?

If you have questions, please contact Arun at apersaud@lbl.gov.

See the files COPYRIGHT and LICENSE in the top level directory

Metadata

Release files for hardware-control 4.1.1

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

Source distribution (sdist)

Source distribution for hardware-control 4.1.1
File Size Uploaded Provenance Actions
hardware_control-4.1.1.tar.gz 14.5 MB With provenance Details for hardware_control-4.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hardware-control 4.1.1
File Interpreter ABI Platform Actions
hardware_control-4.1.1-py3-none-any.whl Python 3 none any Details for hardware_control-4.1.1-py3-none-any.whl

Total release size: 14.8 MB

Release files / hardware_control-4.1.1.tar.gz

Download URL hardware_control-4.1.1.tar.gz
Size 14.5 MB
Tags Source
SHA-256 checksum
How to use checksums
db5866119be4e86012175f2ea70d606eba64e19ef97a100d195a2154e1b666a3
BLAKE2b-256 checksum
How to use checksums
a9c4ce0cb62545cb05f9a04536c76ca3dd02830f40cdefc17f75359f84e95d9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / hardware_control-4.1.1-py3-none-any.whl

Download URL hardware_control-4.1.1-py3-none-any.whl
Size 360.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20609b2ae4631119662a0ca2293cdddfa8264158df029203e5d77a35de140d92
BLAKE2b-256 checksum
How to use checksums
bf654c5e612ba9f3e2784975ac7cec998340300af47e92a331ea4101f123d606
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for hardware-control 4.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hardware_control-4.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

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.

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