{ "info": { "author": "Steven A. Cholewiak", "author_email": "steven@cholewiak.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "opto\n====\n\nopto is a Python module that allows you to control `Optotune focus\ntunable\nlenses `__ using\nthe `Optotune Lens Driver\n4 `__.\nTested with an `Optotune\nEL-10-30 `__.\n\nExamples\n~~~~~~~~\n\nOpens the serial port, connects to the Optotune, sets the lens current\nto 50 mA, and closes the serial port, gently returning the lens to 0 mA\ncurrent:\n\n.. code:: python\n\n from opto import Opto\n\n o = Opto(port='/dev/cu.usbmodem1411')\n o.connect()\n o.current(50.0)\n o.close(soft_close=True)\n\nAlternatively, here we use the ``with`` statement to create a sinusoidal\ntransition from minimum to maximum current and back:\n\n.. code:: python\n\n from opto import Opto\n import numpy as np\n import time\n\n with Opto(port='/dev/cu.usbmodem1411') as o:\n current_low = o.current_lower()\n current_high = o.current_upper()\n current_delta = current_high-current_low\n for i in np.linspace(0, 2*np.pi, 1000):\n o.current(np.sin(i)*current_delta+current_low)\n time.sleep(0.01)\n\nInstallation\n------------\n\nUse ``pip`` to install from github:\n\n::\n\n pip install git+https://github.com/OrganicIrradiation/opto.git\n\nor clone the package using git:\n\n::\n\n git clone https://github.com/OrganicIrradiation/opto.git\n\nRequirements\n------------\n\nRequires `pySerial `__", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/OrganicIrradiation/opto/tarball/v0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/OrganicIrradiation/opto", "keywords": "Optotune,optics,lens", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "opto", "package_url": "https://pypi.org/project/opto/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/opto/", "project_urls": { "Download": "https://github.com/OrganicIrradiation/opto/tarball/v0.1", "Homepage": "https://github.com/OrganicIrradiation/opto" }, "release_url": "https://pypi.org/project/opto/0.1/", "requires_dist": null, "requires_python": null, "summary": "Python interface to Optotune focus-tunable lenses", "version": "0.1" }, "last_serial": 2345027, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "316de7bd8e3a90259eda6b5bac0893c5", "sha256": "321557fc36ec99cc570248b15a3d0996ffbd23ce42b788eb33ab664364791178" }, "downloads": -1, "filename": "opto-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "316de7bd8e3a90259eda6b5bac0893c5", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 6742, "upload_time": "2016-09-15T19:30:36", "url": "https://files.pythonhosted.org/packages/00/c6/74ade62215dfddb182d134c3a29c01c192c2d7b105fef221fae34ae21fc9/opto-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b49580266d93e2b1e43edcdd1dde8f1a", "sha256": "41152d84af1943c9ade02b09d162d4f691f0b26a243c2e34c05cee63d1578928" }, "downloads": -1, "filename": "opto-0.1.tar.gz", "has_sig": false, "md5_digest": "b49580266d93e2b1e43edcdd1dde8f1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5182, "upload_time": "2016-09-15T19:30:33", "url": "https://files.pythonhosted.org/packages/d7/a7/d16e603b7b973e78fe04a20592e982623357a1e4571f007c505cbc4b2b15/opto-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "316de7bd8e3a90259eda6b5bac0893c5", "sha256": "321557fc36ec99cc570248b15a3d0996ffbd23ce42b788eb33ab664364791178" }, "downloads": -1, "filename": "opto-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "316de7bd8e3a90259eda6b5bac0893c5", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 6742, "upload_time": "2016-09-15T19:30:36", "url": "https://files.pythonhosted.org/packages/00/c6/74ade62215dfddb182d134c3a29c01c192c2d7b105fef221fae34ae21fc9/opto-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b49580266d93e2b1e43edcdd1dde8f1a", "sha256": "41152d84af1943c9ade02b09d162d4f691f0b26a243c2e34c05cee63d1578928" }, "downloads": -1, "filename": "opto-0.1.tar.gz", "has_sig": false, "md5_digest": "b49580266d93e2b1e43edcdd1dde8f1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5182, "upload_time": "2016-09-15T19:30:33", "url": "https://files.pythonhosted.org/packages/d7/a7/d16e603b7b973e78fe04a20592e982623357a1e4571f007c505cbc4b2b15/opto-0.1.tar.gz" } ] }