Skip to main content

Control Leica microscopes with python

Project description

leicacam

build-status-image pypi-version wheel

Overview

Control Leica microscopes with python

Installation

Install using pip:

pip install leicacam

Install version using asyncio. This requires Python 3.5+:

pip3 install leicacam[asyncio]

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 requirements_dev.txt

Testing

tox

Build documentation locally

To build the documentation:

pip install -r docs/requirements.txt
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.3.0.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

leicacam-0.3.0-py2.py3-none-any.whl (8.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: leicacam-0.3.0.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for leicacam-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e2a3054a7caa2d0cdfd85ee926acf02b22c894186a8d29c82c56c1fbbabada29
MD5 692e16d0cc7450e5195724f87c3de43e
BLAKE2b-256 0cb636ab87b3958fc89dfcc0c0819aae8ac9153bc5745701d140a0e0c21cf9b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: leicacam-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for leicacam-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fe3d9127d1e62ea76021b42509bf9668d283f64b6f2e4c75b9cbeccf75decfc8
MD5 f22040a2850c9ea8effad0ff58de99f9
BLAKE2b-256 027d5d29f9e99901eaaefae9aa0354181ddbc660582f38f3822cd5fda9772436

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