Skip to main content

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.py for a single measurement after connecting.
  • continuous_measure_callback.py for continuous measurements using the callback/inheritance pattern from the original SDK.
  • single_flicker.py for a one-shot flicker capture.
  • continuous_flicker_callback.py for continuous flicker reporting.
  • counts_once.py for raw counts and thermal values.
  • calfiles.py for listing and selecting calibration profiles.

Notes

  • The package is pure Python. pyserial is required for live device access, and numpy is 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

klein_colorimeter_sdk-0.1.0.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

klein_colorimeter_sdk-0.1.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

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

Hashes for klein_colorimeter_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e972cc166b2c16933abd27b60a202958db58b58ddfa26a4e48fe70fd873a2ff9
MD5 e52968bcddea45582074e8d0da8b142a
BLAKE2b-256 2b64d42fff6ef18ca011caf849f776058489e168b0ae234890f04cd261f175e2

See more details on using hashes here.

File details

Details for the file klein_colorimeter_sdk-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for klein_colorimeter_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5f9b50bc2436b6830ccdb7b2101373902f310eae19e2d47cdfc146d44264d80
MD5 8b6f07ef447974dc20d77697520d49f1
BLAKE2b-256 2940615d38b0ece4287f985905c02d121c4533611af9a441430ba2c5ea2b76e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page