Pure Python SDK for Klein colorimeters derived from the Klein SDK 2.75 API surface.
Project description
Klein Colorimeter Python SDK
This workspace now includes a pure Python SDK package, klein_colorimeter, that mirrors the public surface of the Klein KClmtr SDK and talks to the meter over the same serial protocol.
Install
python -m pip install -e .
Examples
from klein_colorimeter import KClmtr
meter = KClmtr()
if meter.connect("COM3"):
measurement = meter.getNextMeasurement()
print(measurement.getBigY(), measurement.getCIE1931_x(), measurement.getCIE1931_y())
meter.closePort()
Translated sample scripts are in examples/python/:
connect_and_measure.pyfor a single measurement after connecting.continuous_measure_callback.pyfor continuous measurements using the callback/inheritance pattern from the original SDK.single_flicker.pyfor a one-shot flicker capture.continuous_flicker_callback.pyfor continuous flicker reporting.counts_once.pyfor raw counts and thermal values.calfiles.pyfor listing and selecting calibration profiles.
Notes
- The package is pure Python.
pyserialis required for live device access, andnumpyis used when available for faster math paths. - The API names intentionally track the original SDK so existing examples can be translated with minimal changes.
- Derived-work copyright and permission notice from the original Klein SDK source is included in LICENSE.
PyPI Release
Release instructions for building and publishing are in PUBLISHING.md.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file klein_colorimeter_sdk-0.1.0.tar.gz.
File metadata
- Download URL: klein_colorimeter_sdk-0.1.0.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e972cc166b2c16933abd27b60a202958db58b58ddfa26a4e48fe70fd873a2ff9
|
|
| MD5 |
e52968bcddea45582074e8d0da8b142a
|
|
| BLAKE2b-256 |
2b64d42fff6ef18ca011caf849f776058489e168b0ae234890f04cd261f175e2
|
File details
Details for the file klein_colorimeter_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: klein_colorimeter_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5f9b50bc2436b6830ccdb7b2101373902f310eae19e2d47cdfc146d44264d80
|
|
| MD5 |
8b6f07ef447974dc20d77697520d49f1
|
|
| BLAKE2b-256 |
2940615d38b0ece4287f985905c02d121c4533611af9a441430ba2c5ea2b76e9
|