semvec/pypi-packages huggingface dataset:
opto 0.1
Python interface to Optotune focus-tunable lenses
License: MIT
Keywords: Optotune,optics,lens

opto
====

opto is a Python module that allows you to control `Optotune focus
tunable
lenses <http://www.optotune.com/products/focus-tunable-lenses>`__ using
the `Optotune Lens Driver
4 <http://www.optotune.com/products/focus-tunable-lenses/lens-drivers>`__.
Tested with an `Optotune
EL-10-30 <http://www.optotune.com/products/focus-tunable-lenses/electrical-lens-el-10-30?task=view&id=18>`__.

Examples
~~~~~~~~

Opens the serial port, connects to the Optotune, sets the lens current
to 50 mA, and closes the serial port, gently returning the lens to 0 mA
current:

.. code:: python

    from opto import Opto

    o = Opto(port='/dev/cu.usbmodem1411')
    o.connect()
    o.current(50.0)
    o.close(soft_close=True)

Alternatively, here we use the ``with`` statement to create a sinusoidal
transition from minimum to maximum current and back:

.. code:: python

    from opto import Opto
    import numpy as np
    import time

    with Opto(port='/dev/cu.usbmodem1411') as o:
        current_low = o.current_lower()
        current_high = o.current_upper()
        current_delta = current_high-current_low
        for i in np.linspace(0, 2*np.pi, 1000):
            o.current(np.sin(i)*current_delta+current_low)
            time.sleep(0.01)

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

Use ``pip`` to install from github:

::

    pip install git+https://github.com/OrganicIrradiation/opto.git

or clone the package using git:

::

    git clone https://github.com/OrganicIrradiation/opto.git

Requirements
------------

Requires `pySerial <https://pypi.python.org/pypi/pyserial>`__
wsinfo 1.3.0
Python package for simply retrieving information about a specific website.
License: MIT
Keywords: website,http,url,internet,online,information

The wsinfo library
==================

.. image:: https://api.travis-ci.org/linusg/wsinfo.svg?branch=master
   :target: https://travis-ci.org/linusg/wsinfo/
   :alt: Travis CI test status

.. image:: https://landscape.io/github/linusg/wsinfo/master/landscape.svg?style=flat
   :target: https://landscape.io/github/linusg/wsinfo/master
   :alt: Code health

.. image:: https://img.shields.io/pypi/v/wsinfo.svg
   :target: https://pypi.python.org/pypi/wsinfo
   :alt: Version

.. image:: https://img.shields.io/pypi/dm/wsinfo.svg
   :target: https://pypi.python.org/pypi/wsinfo
   :alt: Monthly downloads

.. image:: https://img.shields.io/badge/docs-latest-blue.svg
   :target: https://wsinfo.readthedocs.io/en/latest/
   :alt: Documentation

wsinfo (short for website information) is a Python package for getting some
useful information about some website, without the need to write some
complicated hackish Python code.

Requirements
------------

The package is compatible with both Python 2 and 3, so everything you need is
a recent Python installation.

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

The wsinfo library is available on `PyPI <http://pypi.python.org/pypi/wsinfo>`_,
so you can install it using ``pip``::

    pip install wsinfo

Usage
-----

The usage of the wsinfo library is as easy as::

    >>> import wsinfo
    >>> w = wsinfo.Info("https://github.com")
    >>> w.ip
    '192.30.253.112'
    >>> w.http_status_code
    200
    >>> w.title
    'How people build software · GitHub'
    >>> w.content
    '<!DOCTYPE html>\n<html>\n[...]\n</html>'

Documentation
-------------

The latest documentation is always available here: https://wsinfo.readthedocs.io/en/latest/

Tested Platforms and Python Versions
------------------------------------

The code was tested on all major platforms using a wide range of Python
versions.

If you experience some issues, feel free to contact me or `open an issue on
GitHub <https://github.com/linusg/wsinfo/issues/new>`_.

Changes
=======

1.3.0
-----

- Added properties: ``content_type``, ``http_header_dict`` and ``server_os``
- Correct handling of HTTP Errors (retrieve error page)
- Documentation updates
- Code cleanup
- Minor fixes and improvements

1.2.0
-----

- Hosted docs on `readthedocs.io <http://wsinfo.readthedocs.io/en/latest/>`_
- Minor documentation changes

1.1.0
-----

- Added function to list a websites heading structure
- Documentation improvements
- Code formatting
- Minor improvements
- Added/extended project infrastructure:

  - GitHub
  - PyPI
  - TravisCI
  - Landscape

1.0.0
-----

- Initial release
clrmagic 0.0.1a2
IPython cell magic to use .NET languages
License: MIT
Keywords: .NET CLR Mono Jupyter IPython notebook C# CSHARP pythonnet

IPython cell magic to use .NET languages (C#, VB.NET, F#) from jupyter notebooks:

https://pypi.python.org/pypi/clrmagic/

Based on a blog post from Xavier Dupré @sdpython:

http://www.xavierdupre.fr/blog/2014-09-20_nojs.html

Simple wheel installation::

    pip install clrmagic

Launch Jupyter notebook with IPython kernel::

    jupyter notebook

In open notebook load clrmagic extension::

    %reload_ext clrmagic

Magic cell with C# code::

    %%CS mypower System.dll
    public static double mypower(double x, double y)
    {
      if (y == 0) return 1.0 ;
      return System.Math.Pow(x,y) ;
    }
    <function clrmagic.create_cs_function.<locals>.<lambda>>

Next evaluate in normal IPython cell::

    mypower(3.0,3.0)
    27.0