Skip to main content

Control Leica microscopes with python

Project description

leicacam

CI Status Documentation Status Test coverage percentage

uv Ruff pre-commit

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.

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

leicacam-0.7.0.tar.gz (12.3 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.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leicacam-0.7.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for leicacam-0.7.0.tar.gz
Algorithm Hash digest
SHA256 05ad1186b0b04e7c5eec8aa79b992da93b5c201144e9921f55633213abc93eb7
MD5 f2a49efae4addc0bd308b5c27a99b510
BLAKE2b-256 b5d4035565c6e172f6057ff9f7406bf48dc21c8a45ebc87f2de1000b802107b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for leicacam-0.7.0.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.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for leicacam-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6be6b55f00f65956e9219c7bba9d387b7d9ec6bfb5282a509e214f8ae6c833fe
MD5 1b604bcc9d8b9fada75134ed6e3ff78a
BLAKE2b-256 a6184f43558adcbad90c5aaf4fd203317c7e9cdda0016ca8e20194c16b81ae0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for leicacam-0.7.0-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.

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