Skip to main content

leicacam

CI Status Documentation Status Test coverage percentage

uv Ruff prek

PyPI Version Supported Python versions License


Documentation: https://leicacam.readthedocs.io

Source Code: https://github.com/MartinHjelmare/leicacam


Control Leica microscopes with python

Installation

Install this via pip (or your favourite package manager):

pip install leicacam

Example

Communicate with microscope

from leicacam import CAM

cam = CAM()  # initiate and connect, default localhost:8895

# some commands are created as short hands
# start matrix scan
response = cam.start_scan()
print(response)

# but you could also create your own command with a list of tuples
command = [("cmd", "enableall"), ("value", "true")]
response = cam.send(command)
print(response)

# or even send it as a bytes string (note the b)
command = b"/cmd:enableall /value:true"
response = cam.send(command)
print(response)

Credits

Copier

This package was created with Copier and the browniebroke/pypackage-template project template.

Download files

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

Source Distribution

leicacam-0.7.1.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

leicacam-0.7.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file leicacam-0.7.1.tar.gz.

File metadata

  • Download URL: leicacam-0.7.1.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for leicacam-0.7.1.tar.gz
Algorithm Hash digest
SHA256 53322f271496d8c74bb009511649794c7173965e198e30f27d8166a333b6841f
MD5 6686a6a73086e6f7be670704663e802c
BLAKE2b-256 7e6a17199c5a985d4e9d2f7dc442bbb535b8914382d579642d95c434049f70bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for leicacam-0.7.1.tar.gz:

Publisher: ci.yml on MartinHjelmare/leicacam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file leicacam-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: leicacam-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for leicacam-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43881a1b8e41a0b9d90204828e5a4563b4b0e695aa16a101d6ed081f0a813548
MD5 5d9348ac66cfc25154cd8048259573e3
BLAKE2b-256 736536e667221a9badc1c6982be3b97914583596e54c580120b647843496359f

See more details on using hashes here.

Provenance

The following attestation bundles were made for leicacam-0.7.1-py3-none-any.whl:

Publisher: ci.yml on MartinHjelmare/leicacam

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

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