semvec/pypi-packages huggingface dataset:
pyOptoSigma 0.1
Python module for operating stepping moter stages manufactured by OptoSigma and Sigma Koki.
License: MIT
Keywords: OptoSigma,Sigma Koki,シグマ光機,translation stages,rotation stages

Python module for operating stepping moter stages manufactured by OptoSigma and Sigma Koki.

Requirements
------------
* Python 3.4 or later. (Python 2.x are not supported.)
* pyserial

Setup
-----
::

    $ sudo pip3 pyserial pyOptoSigma
    
* In Ubuntu systems, add an user to dialout group.

::

    $ sudo gpasswd -a [username] dialout
    
History
-------
0.1 (2016-5-28)
~~~~~~~~~~~~~~~
* First release.
* Supports SHOT-702, SHOT-302GS, SHOT-304GS controllers.
* Supports SGSP, OSMS series stages.
Choco 1.0.5
A super-fast templating language that borrows the  best ideas from the existing templating languages.
License: MIT
Keywords: templates

=========================
Choco Templates for Python
=========================

Choco is a template library written in Python. It provides a familiar, non-XML 
syntax which compiles into Python modules for maximum performance. Choco's 
syntax and API borrows from the best ideas of many others, including Django
templates, Cheetah, Myghty, and Genshi. Conceptually, Choco is an embedded 
Python (i.e. Python Server Page) language, which refines the familiar ideas
of componentized layout and inheritance to produce one of the most 
straightforward and flexible models available, while also maintaining close 
ties to Python calling and scoping semantics.

Nutshell
========

::

    <%inherit file="base.html"/>
    <%
        rows = [[v for v in range(0,10)] for row in range(0,10)]
    %>
    <table>
        % for row in rows:
            ${makerow(row)}
        % endfor
    </table>

    <%def name="makerow(row)">
        <tr>
        % for name in row:
            <td>${name}</td>\
        % endfor
        </tr>
    </%def>

UI 
============



UI tag is inspired by EmberJs Handlebarjs tempalte.


index.html
----------------


::

    This is an UI Page
    <%@ PostView(post_id)/>



ui/post.html
----------------


::

    This is a Post View

    Name: ${post.title}
    Content: ${post.content}
    

.. code:: python


    def create_ui_container():
        from choco.ui import UIContainer, UIModule
        ui_container = UIContainer(["template/ui"])

        class PostView(UIModule):

            default_template = "post.html"

            def initialize(self):
                self.thing = Thing("Post")

            def render(self, post_id):
                post = self.thing.getByPostId(post_id)
                return {
                    "post": post
                }
        ui_container.put_ui("PostView", PostView)
        return ui_container

    tl2 = lookup.TemplateLookup(directories=["template"], ui_container=create_ui_container())
    t12.get_template("index.html").render(post_id=122)





Philosophy
===========

Python is a great scripting language. Don't reinvent the wheel...your templates can handle it !



License
========

Choco is licensed under an MIT-style license (see LICENSE).
Other incorporated projects may be licensed under different licenses.
All licenses allow for non-commercial and commercial use.
zipcodeignoresamethread 0.1.0
A simple python package for dealing with  zip codes in python.
License: MIT
Keywords: zip codes

A simple python package for dealing with zip codes
==================================================

Simple package for dealing with zip codes in python. This is a fork from
the package zipcode (https://github.com/buckmaxwell/zipcode) created to ignore
checking if the sql object created is in the same thread as the current.

Full documentation at https://pythonhosted.org/zipcode

    >>> import zipcode
    >>> 
    >>> myzip = zipcode.isequal('44102')
    >>> myzip.state     #=> 'OH'
    >>> myzip.city      #=> 'Cleveland'
    >>> 
    >>> myzip.to_dict() #=>  {'zip_type': u'STANDARD', 'city': u'CLEVELAND', 'population': u'27699', 'zip': u'44102', 'yaxis': u'-0.74',     'location_text': u'Cleveland, OH', 'country': u'NA', 'notes': u'', 'lon': -81.67, 'tax_returns_filed': u'17409', 'state': u'OH', 'z    axis': u'0.66', 'location': u'NA-US-OH-CLEVELAND', 'xaxis': u'0.1', 'lat': 41.47, 'wages': u'408225500', 'decommisioned': u'FALSE',     '_LOCATION_TYPE': u'PRIMARY', 'world_region': u'NA'}
    >>>  
    >>> #all keys in the dictionary can be fetched with dot notation.
    >>> 
    >>> zipcode.islike('00') #=> list of Zip objects that begin with given prefix.
    >>> 
    >>> cbus = (39.98, -82.98)
    >>> zipcode.isinradius(cbus, 20) #=> list of all zip code objects within 20 miles of 'cbus'