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.6.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for leicacam-0.6.0.tar.gz
Algorithm Hash digest
SHA256 8b2d43e0cbde11431aaec28d7af919a462bb4fe925e37d440c0b7a2cb6a1f946
MD5 0c04507c5728498da55e131dcbd9d3d9
BLAKE2b-256 8b593ccf2a22308c5d58a238c087396fc0e246ce468a586243bd71e7649f3c55

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: leicacam-0.6.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.12.9

File hashes

Hashes for leicacam-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b6589da6c5cefd6002a6c0db76b329562ec39f79bbfd9b75c2aa0180542575a
MD5 6e5ddd41d833a3a75acb23de2c03473e
BLAKE2b-256 7f3b7287db0f8e4d5e40f91fc38f1df7ac5d43e62579cd66df1692952541931c

See more details on using hashes here.

Provenance

The following attestation bundles were made for leicacam-0.6.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 AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page