Skip to main content

Control Leica microscopes with python

Project description

build-status-image pypi-version wheel

Overview

Control Leica microscopes with python

Installation

Install using pip

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)

Documentation

See available commands in the API reference: http://leicacam.rtfd.org.

Development

Install dependencies and link development version of leicacam to pip:

pip install -r dev-requirements.txt
./setup.py develop

Testing

pip install tox
tox

Build documentation locally

To build the documentation:

make docs

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

Uploaded Source

Built Distribution

leicacam-0.1.0-py2.py3-none-any.whl (6.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: leicacam-0.1.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for leicacam-0.1.0.tar.gz
Algorithm Hash digest
SHA256 47b682cdd3d440c24ee3e39019194dd0dbbe55992bf7d1b35e59e872c61ff1ca
MD5 47b9a52da7ee25e8171fc600cb35014f
BLAKE2b-256 666c834ff2ce8b841b24581bccc035bb0602fb1d07fa44b9a552fa3ab75f8cd1

See more details on using hashes here.

File details

Details for the file leicacam-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for leicacam-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 037ffb5e0c4ea8959c3cf7c41196be6bcc07a198538eb02f09dc6c83f07da40c
MD5 285b6aca1a2da88d5dfa9aa86207a3ba
BLAKE2b-256 70ef648e8af1fa307589eb7a002d5b9ecff15d1b4279b678918a8e32dd17cfdd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page