semvec/pypi-packages huggingface dataset:
pydendroheatmap-kmyoo 0.1
Tool for creating heatmaps, where rows and columns are organized by hierarchical clusters
License: MIT
Keywords: dendroheatmap dendrogram heatmap

Tool for creating heatmaps, where rows and columns are organized by hierarchical clusters as seen in https://github.com/themantalope/dendroheatmap, which is based onhttp://code.activestate.com/recipes/578175-hierarchical-clustering-heatmap-python/
email_hunter_python 1.1.0
Client for Email Hunter REST API
License: MIT
Keywords: email hunter client rest api cli

email\_hunter\_python
=====================

An Email Hunter API client written in Python
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

Requirements:

-  Python 3 (because it's 2015)

To install:

::

    pip install email-hunter-python

To update:

::

    pip install --upgrade email-hunter-python

Usage
-----

email\_hunter\_python supports the three main methods of the `Email
Hunter <https://emailhunter.co/api/docs>`__ API: ``search``,
``generate``, and ``exist``. There are two ways to use
email\_hunter\_python:

-  As a Python library
-  As a command line (CLI) tool.

To use the email\_hunter\_python Python library:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Import the client and instantiate it:

.. code:: python

    from email_hunter import EmailHunterClient

::

    client = EmailHunterClient('my_api_key')

You can search:

.. code:: python

    client.search('google.com')

A max of 100 results are returned, so use offset to paginate:

.. code:: python

    client.search('google.com', offset=1)

You can also change type (personal or generic):

.. code:: python

    client.search('google.com', type='personal')

You can generate:

.. code:: python

    client.generate('google.com', 'Sergey', 'Brin')

And you can check if an email exists:

.. code:: python

    client.exist('sergey@google.com')

To use email\_hunter\_python as a CLI tool:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

::

    email_hunter [command name] [api_key] [other args]

The command name is ``search``, ``generate`` or ``exist``, the api\_key
is the API key associated with your Email Hunter account

The other arguments depend on the command you are using:

::

    --domain       Required for search and generate commands
    --offset       Optional, used with search command.
    --type         Optional, used with search command
    --first_name   Required for generate command
    --last_name    Required for generate command
    --email        Required for exist command
    --file         Path to a CSV to be used with the specified command.
                   CSV must have a column for each argument used.

The file argument is useful when you want to make several requests of
the same type. For example if you wanted to find the email addresses for
several people at an organization you would do the following:

::

    email_hunter generate [api_key] --file people.csv > emails.csv

Where ``people.csv`` looks like:

::

    domain,first_name,last_name
    google.com,larry,page
    google.com,sergey,brin
    facebook.com,mark,zuckerberg

The output will also be in a CSV format.

License
-------

Copyright © 2015 Alan Vezina

Released under The MIT License (MIT), see the LICENSE file for details
PyExceptionInfo 0.2
PyExceptionInfo: Easily lookup the exception on web
License: MIT
Keywords: error handling exception development

PyExceptionInfo: Easily lookup your errors on the web
=====================================================

# Exceptions happen

Exceptions do happen and we all have seen it more than once while we are
developing our code. Mostly we would want to know more about the exception or
error that we generated and the logical step that follows up is to inspect our
code and still if we are stuck, we might lookup on the internet.

PyExceptionInfo helps you on the last part. Use it in your exception handling,
and it will automatically lookup the exception on Google for you.

## Installation

Use pip for Installation

    pip install PyExceptionInfo

## Example

Look up the test.py source code for usage

    import PyExceptionInfo

    try:
        # Some exception here
    except Exception as e:
        PyExceptionInfo.getInfo(e)

Thanks!
ADDPIO 1.0.3b1
Android IO project
License: MIT
Keywords: GPIO Android Raspberry Pi sensors IO

ADDPIO  project
==================

This project allows the Raspberry Pi* to access the sensors (accelerometer, gyroscope, ...)
and other IO of an Android* device, similar to the GPIO library. There is a corresponding
Android app (ADDPIO on the Google Play Store) to run on the Android device(s). The Raspberry
Pi and all Android devices must be connected to the same network. This uses UDP port 6297 to
communicate. Create a new ADDPIO object passing the ip address (this is displayed on the
Android app). The object has an input and output function that takes a type number and value.
See below for the standard type number symbols or use the number displayed on the Android app.
The Android sensors return an array of values (e.g. x,y,z). For ADDPIO sensor input the value
parameter represents the index into the array of values returned by the sensor. For other input,
the value is ignored.
The Android app has several widgets for IO:
buttons, LEDs, a touchpad, alarm, notification, and text.
Read the ip address and available sensors from the Android app.


from ADDPIO import ADDPIO
myHost = ADDPIO("192.168.0.0")
myValue = myHost.input(ADDPIO.SENSOR_ACCELEROMETER,1)
myValue = myHost.input(12345,47)
myHost.output(ADDPIO.ALARM,1)
myHost.output(ADDPIO.ALARM,0)


See the testADDPIO.py program for an example.

# Android sensors
SENSOR_ACCELEROMETER
SENSOR_AMBIENT_TEMPERATURE
SENSOR_GAME_ROTATION_VECTOR
SENSOR_GEOMAGNETIC_ROTATION_VECTOR
SENSOR_GRAVITY
SENSOR_GYROSCOPE
SENSOR_GYROSCOPE_UNCALIBRATED
SENSOR_HEART_BEAT
SENSOR_HEART_RATE
SENSOR_LIGHT
SENSOR_LINEAR_ACCELERATION
SENSOR_MAGNETIC_FIELD
SENSOR_MAGNETIC_FIELD_UNCALIBRATED
SENSOR_MOTION_DETECT
SENSOR_ORIENTATION
SENSOR_POSE_6DOF
SENSOR_PRESSURE
SENSOR_PROXIMITY
SENSOR_RELATIVE_HUMIDITY
SENSOR_ROTATION_VECTOR
SENSOR_SIGNIFICANT_MOTION
SENSOR_STATIONARY_DETECT
SENSOR_STEP_COUNTER
SENSOR_STEP_DETECTOR
SENSOR_TEMPERATURE

# Android input/output
BUTTON_1          input 0/1
BUTTON_2          input 0/1
LED_RED           output 0/1
LED_GREEN         output 0/1
LED_BLUE          output 0/1
ALARM             output 0/1
NOTIFICATION      output any number
TEXT              output any number
TOUCH_PAD_X_IN    input 0-255
TOUCH_PAD_Y_IN    input 0-255
TOUCH_PAD_X_OUT   output 0-255
TOUCH_PAD_Y_OUT   output 0-255


* Raspberry Pi is a trademark of the Raspberry Pi Foundation - http://www.raspberrypi.org
* Android is a trademark of Google Inc.
plytix-retailers-sdk 1.0.11
Plytix Retailers SDK for Python
License: MIT
Keywords: plytix

Plytix Retailers SDK for Python
===============================

The Plytix Retailers SDK for Python is a library designed to simplify the access to the Plytix Retailers API to applications developed in Python. The library gives you an easy way to manage your authentication and to consume the Retailers API services. Thanks to the Plytix Retailers SDK for Python, you can quickly integrate our platform in your site's back end.

You will find the all documentation and examples of how to use it at `the Plytix for developers page <https://plytix.com/developers/>`_.

Plytix Retailers SDK for Python is easy to use
----------------------------------------------

.. code-block:: python

   from plytix.retailers.client import PlytixRetailersClient

   client = PlytixRetailersClient('api-key', 'api-pwd')

Once you have the client, you can start to consume the Plytix Retailers API's services immediately. For example, you get a list of all sites you manage with:

.. code-block:: python

   sites = client.sites.list()
   for site in sites:
       print site.name

Only a few lines are needed to get a list of the sites you manage at Plytix. Quick and easy.


Links
-----

* `Plytix website <https://plytix.com>`_
* `Documentation <https://plytix.com/developers/>`_
* `Development version <https://bitbucket.org/plytixdevs/plytix-sdk-python>`_
liveprofiler_sampler 0.9.3
Module for sampling profiling output from the main process
License: MIT

[![CircleCI](https://circleci.com/gh/fieldaware/liveprofiler_sampler.svg?style=svg)](https://circleci.com/gh/fieldaware/liveprofiler_sampler)
[![PyPI version](https://badge.fury.io/py/liveprofiler_sampler.svg)](https://badge.fury.io/py/liveprofiler_sampler)

# Object and middleware for profiling live services

This is a package that should be used to profile python services on production. This is fallow up work based on https://github.com/nylas/nylas-perftools. So most of the credit goes to: nylas.com

To really understand what is going on here check this great blog post: https://www.nylas.com/blog/performance

# Usage

For wsgi applications you can this library as any other middleware. Here we have a little flask example:

```
from flask import Flask
app = Flask(__name__)

import liveprofiler_sampler
app.wsgi_app = liveprofiler_sampler.ProfilingMiddleware(app, interval=0.05, secret_header='secret')
app.run()


> curl -v localhost:5000/liveprofiler
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 5000 (#0)
> GET /liveprofiler HTTP/1.1
> Host: localhost:5000
> User-Agent: curl/7.43.0
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 403 YOU SHALL NOT PASS!!!!!!!!!!!!1111oneoneonelephant
< Connection: close
< Server: Werkzeug/0.11.10 Python/2.7.8
< Date: Thu, 30 Jun 2016 15:30:21 GMT
<
* Closing connection 0

```

Our tiny app denied the request, because we should not expose our profiling data to anyone. The `secret_header` param passed to `ProfilingMiddleware` constructor is the secret value that protects our stacks. Passing the secret token will return a json ready to consume and visualise.

```
> curl curl --header "PROFILER_TOKEN: secret" -v localhost:5000/liveprofiler
* Rebuilt URL to: curl/
* Could not resolve host: curl
* Closing connection 0
curl: (6) Could not resolve host: curl
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 5000 (#1)
> GET /liveprofiler HTTP/1.1
> Host: localhost:5000
> User-Agent: curl/7.43.0
> Accept: */*
> PROFILER_TOKEN: secret
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Connection: close
< Server: Werkzeug/0.11.10 Python/2.7.8
< Date: Thu, 30 Jun 2016 15:31:39 GMT
<
{"granularity": 0.05, "stacks": [{"count": 9, "frame": "<module>(__main__);start_ipython(IPython);launch_instance(traitlets.config.application);
start(IPython.terminal.ipapp);mainloop(IPython.terminal.interactiveshell);
interact(IPython.terminal.interactiveshell);run_cell(IPrt(IP...........
```

To visualize the data please check: https://github.com/fieldaware/liveprofiler
# Installation

To install the package simply type:

```
pip install liveprofiler_sampler
```

# uWSGI integration

Because sampler is implemented based on signals, you have to be aware of that when running your service under uWSGI.
In order to gather any samples you need to add following configuration to your uwsgi.ini
```
py-call-osafterfork = true  # enable child processes running cpython to trap OS signals
lazy-apps = true  # load apps in each worker instead of the master

```