Control Leica microscopes with python
Project description
leicacam
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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for leicacam-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe3d9127d1e62ea76021b42509bf9668d283f64b6f2e4c75b9cbeccf75decfc8 |
|
MD5 | f22040a2850c9ea8effad0ff58de99f9 |
|
BLAKE2b-256 | 027d5d29f9e99901eaaefae9aa0354181ddbc660582f38f3822cd5fda9772436 |