leicacam
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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| leicacam-0.7.1.tar.gz | 12.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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