Metadata-Version: 2.1
Name: leicacam
Version: 0.2.2
Summary: Control Leica microscopes with python
Home-page: https://github.com/arve0/leicacam
Author: Arve Seljebu
Author-email: arve.seljebu@gmail.com
License: MIT
Keywords: leicacam
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: pydebug

leicacam
========

|build-status-image| |pypi-version| |wheel|

Overview
--------

Control Leica microscopes with python

Installation
------------

Install using ``pip``...

.. code:: bash

    pip install leicacam

Example
-------

**communicate with microscope**

.. code:: python

    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:

.. code:: bash

    pip install -r requirements_dev.txt

Testing
~~~~~~~

.. code:: bash

    tox

Build documentation locally
~~~~~~~~~~~~~~~~~~~~~~~~~~~

To build the documentation:

.. code:: bash

    pip install -r docs/requirements.txt
    make docs

.. |build-status-image| image:: https://secure.travis-ci.org/arve0/leicacam.png?branch=master
   :target: http://travis-ci.org/arve0/leicacam?branch=master
.. |pypi-version| image:: https://img.shields.io/pypi/v/leicacam.svg
   :target: https://pypi.python.org/pypi/leicacam
.. |wheel| image:: https://img.shields.io/pypi/wheel/leicacam.svg
   :target: https://pypi.python.org/pypi/leicacam


