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.

Release files for leicacam 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for leicacam 0.7.1
File Size Uploaded
leicacam-0.7.1.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for leicacam 0.7.1
File Interpreter ABI Platform
leicacam-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 20.7 kB

Release files / leicacam-0.7.1.tar.gz

Download URL leicacam-0.7.1.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
53322f271496d8c74bb009511649794c7173965e198e30f27d8166a333b6841f
BLAKE2b-256 checksum
How to use checksums
7e6a17199c5a985d4e9d2f7dc442bbb535b8914382d579642d95c434049f70bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.

Transparency log

Release files / leicacam-0.7.1-py3-none-any.whl

Download URL leicacam-0.7.1-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43881a1b8e41a0b9d90204828e5a4563b4b0e695aa16a101d6ed081f0a813548
BLAKE2b-256 checksum
How to use checksums
736536e667221a9badc1c6982be3b97914583596e54c580120b647843496359f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release 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