Skip to main content

Plesty PyForPICam

Python ctypes bindings for the Princeton Instruments PICam library.

This is a low-level support module for plesty-picamccd: it wraps the C functions exposed by the PICam SDK (Picam.dll) as plain synchronous Python functions. It is not a Plesty device on its own — it provides the raw call surface that a device driver builds on.

Async use is not baked in here. Callers that need await wrap the consuming device with plesty.lib.device.async_wrapper.AsyncWrapperSafe, which offloads the blocking ctypes calls to a worker thread.

Installation

uv add "plesty-pyforpicam @ git+https://gitlab.com/plesty/hub/devices/princeton_instruments/pyforpicam.git"

Usage

import plesty.pyforpicam as pyforpicam
from plesty.pyforpicam.PiFunctions import Picam_InitializeLibrary

Each Picam_* function takes the loaded PICam handle as its first argument and returns True on success, raising the matching PicamError subclass otherwise.

License

Licensed under the GNU General Public License, version 3 or later (GPL-3.0-or-later); see LICENSE. Note that PiFunctions.py derives from PythonForPicam by Joe Lowney, distributed under the GNU General Public License (see COPYING), and has been modified by the Plesty team.

Download files

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

Source Distribution

plesty_pyforpicam-0.5.0.tar.gz (194.8 kB view details)

Uploaded Source

Built Distribution

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

plesty_pyforpicam-0.5.0-py3-none-any.whl (57.3 kB view details)

Uploaded Python 3

File details

Details for the file plesty_pyforpicam-0.5.0.tar.gz.

File metadata

  • Download URL: plesty_pyforpicam-0.5.0.tar.gz
  • Upload date:
  • Size: 194.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for plesty_pyforpicam-0.5.0.tar.gz
Algorithm Hash digest
SHA256 9c7a7efcf4e7e7a7e74ba91d11436c311fad0d5b3fbac97d64532c60f4557c12
MD5 3d0b053b44f0fbd267675ec2de27a46b
BLAKE2b-256 9d0516247cba56027e25ab00b96790534292438fc70ac1759699a9715297c30b

See more details on using hashes here.

File details

Details for the file plesty_pyforpicam-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: plesty_pyforpicam-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 57.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for plesty_pyforpicam-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1067de857e365a610df1f8f2c847ca0ac86901b2adcf9bd2c49c39fa279fe57f
MD5 965c317b40942298411c7eb13fe529f5
BLAKE2b-256 bac43a738c1b0714e17200e433e983fc7541dc6149f066f566fc69b016bfcbba

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 files

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