pyThorlabsKCubeKPC101
pyThorlabsKCubeKPC101 is a Python library/GUI interface to control the K-Cube® Piezo Controller and Strain Gauge Reader KPC101 from Thorlabs. The package is composed of two parts: a
low-level driver to perform basic operations, and a high-level GUI, written with PyQt5, which can be easily embedded into other GUIs. The low-level driver can be used as stand-alone library.
The interface can work either as a stand-alone application (via either the high-level GUI or the low-level driver), or as a module of ergastirio.
Note: so far the code has only been tested with the translation stage NFL5DP20S connected to the KPC101.
Table of Contents
- Installation
- Usage via the low-level driver
- Usage as a stand-alone GUI interface
- Embed the GUI within another GUI
Installation
Use the package manager pip to install,
pip install pyThorlabsKCubeKPC101
This will install pyThorlabsKCubeKPC101 together with all libraries required to run the low-level driver. In particular, the library pythonnet is required and it will be installed. If during the installation any error message appears related to pythonnet, try running again the command pip install pythonnet.
In order to use the GUI, it is necessary to install additional libraries, specified in the requirements.txt files,
pip install abstract_instrument_interface>=0.10
pip install "PyQt5>=5.15.6"
pip install "pyqtgraph>=0.12.4"
pip install numpy
Usage via the low-level driver
TO-DO
Usage as a stand-alone GUI interface
The installation sets up an entry point for the GUI. Just type
pyThorlabsKCubeKPC101
in the command prompt to start the GUI.
Embed the GUI within another GUI
The GUI controller can also be easily integrated within a larger graphical interface, as shown in the [TO DO]
Metadata
Release files for pyThorlabsKCubeKPC101 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 | |
|---|---|---|---|---|
| pythorlabskcubekpc101-0.1.tar.gz | 28.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pythorlabskcubekpc101-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.4 kB
Release files / pythorlabskcubekpc101-0.1.tar.gz
| Download URL | pythorlabskcubekpc101-0.1.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e48f8bcb89a98f0ad98ed2a15c163b1e58e7912f89d7d93b33c46e2d09197df0
|
|
BLAKE2b-256 checksum How to use checksums |
350e72027473ea3aefdb16fb0d5286841598fb2006b400e086851af477801788
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / pythorlabskcubekpc101-0.1-py3-none-any.whl
| Download URL | pythorlabskcubekpc101-0.1-py3-none-any.whl |
|---|---|
| Size | 27.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
257b689d5500b26d4c28a5556ba5b07f89cc5bbb2ff9474926d4955037d01357
|
|
BLAKE2b-256 checksum How to use checksums |
6685ecd1db63df77a0b8ecdf2c792cacb3277194775c8abaf1dc2fa69ea572b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Security for pyThorlabsKCubeKPC101 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.