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

Uploaded Source

Built Distribution

leicacam-0.1.1-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for leicacam-0.1.1.tar.gz
Algorithm Hash digest
SHA256 78df0dfc0dd06ef1ddc37375bd6a703f73dac88b0c45a27d2d17441a4cc87ea2
MD5 ae5f418deb133614cd96f07ff5793b84
BLAKE2b-256 bbc03ccdc4d8982033cb45f5305eb96498694b8530254def503a7d2dc63d3365

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for leicacam-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f86575d3529dcdae086fc16a8b0de2364d973a077ec7c818738938fb1d7fce8c
MD5 3b05b021c2d03c02eec57ac10ca678c1
BLAKE2b-256 f406867063a3c1c829f278ad720320a5f5e439959e6d75f41f034bf6d14bfc4b

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