semvec/pypi-packages huggingface dataset:
whapy 0.2.0
A python API for whatsapp web
License: MIT

[![Documentation Status](https://readthedocs.org/projects/whapy/badge/?version=latest)](http://whapy.readthedocs.io/en/latest/?badge=latest)

Checkout the [documentation][doc].

[doc]: http://whapy.readthedocs.io/
    
## Quick Example
```py
import whapy

wap = whapy.WhaPy(whapy.Browser.firefox, True)

@wap.event
async def on_message(chat, messages):
    print("New messages arrived: ")
    for i in range(0,len(messages)):
        if not messages[i].is_media():
            print(messages[i].get_content())
            if messages[i].get_content() == "@who":
                chat.send_message("are you?")

@wap.event
async def on_ready():
    print("Logged in as " + wap.get_me())

wap.run()
```

## Dependencies

- Python 3.4.2+
- `selenium` library
- `a webdriver` (http://selenium-python.readthedocs.io/installation.html#drivers)
prettymatrix 0.1.2
Pretty printer for matrices and column vectors.
License: MIT
Keywords: matrix matrices vector formatting string numpy

prettymatrix
============

|Build Status|

Struggling to tell your rows from your columns?

``prettymatrix`` creates human-friendly string representations of your
numpy matrices and vectors, just like you’re used to.

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

Available through pip:

::

    pip install prettymatrix

Examples
--------

Stringify a single matrix
~~~~~~~~~~~~~~~~~~~~~~~~~

::

    import numpy as np
    import prettymatrix

    M = np.array([['1', '22'], ['333', '4444']])

    print(prettymatrix.matrix_to_string(M))

    # =>
    #  ┌          ┐
    #  │ 1   22   │
    #  │ 333 4444 │
    #  └          ┘
    #

    # We condense large matrices to a readable size
    N = prettymatrix.matrix_to_string(np.full((1000,1000), '0'))

    print(prettymatrix.matrix_to_string(N))

    # =>
    #  ┌                   ┐
    #  │ 0 0 0 … … … 0 0 0 │
    #  │ 0 0 0 … … … 0 0 0 │
    #  │ 0 0 0 … … … 0 0 0 │
    #  │ … … … … … … … … … │
    #  │ … … … … … … … … … │
    #  │ … … … … … … … … … │
    #  │ 0 0 0 … … … 0 0 0 │
    #  │ 0 0 0 … … … 0 0 0 │
    #  │ 0 0 0 … … … 0 0 0 │
    #  └                   ┘
    #

Annotate your matrix with a name:

::

    import numpy as np
    import prettymatrix

    M = np.array([['0'], ['0']])

    print(prettymatrix.matrix_to_string(M, name='M_x_y'))

    # =>
    #  ┌   ┐
    #  │ 0 │
    #  │ 0 │
    #  └   ┘
    #  M_x_y
    #

Or its dimensions:

::

    import numpy as np
    import prettymatrix

    M = np.array([['0'], ['0']])

    print(prettymatrix.matrix_to_string(M, include_dimensions=True))

    # =>
    #  ┌   ┐
    #  │ 0 │
    #  │ 0 │
    #  └   ┘
    #  (2x1)
    #

Stringify a multiple matrices in a row
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

::

    import numpy as np
    import prettymatrix

    M = np.array([['1', '22'], ['333', '4444']])

    print(prettymatrix.matrices_to_string(M, M))

    # =>
    #  ┌          ┐ ┌          ┐
    #  │ 1   22   │ │ 1   22   │
    #  │ 333 4444 │ │ 333 4444 │
    #  └          ┘ └          ┘
    #

.. |Build Status| image:: https://travis-ci.org/samueljamesbell/prettymatrix.svg?branch=master
   :target: https://travis-ci.org/samueljamesbell/prettymatrix
Adafruit-SHT31 1.0.2
Python Library for Adafruit SHT31 module
License: MIT
Keywords: SHT31

# Adafruit_Python_SHT31

This Python driver allows you to read data from the [Adafruit SHT31D Breakout](https://www.adafruit.com/products/2857) on a Raspberry Pi, Pi2 or similar device.

## Requirements

This driver requires that you have previously installed the
[Adafruit_Python_GPIO](https://github.com/adafruit/Adafruit_Python_GPIO) package.

On Raspbian, you can install this package with the following commands:

```
sudo apt-get update
sudo apt-get install build-essential python-pip python-dev python-smbus git
git clone https://github.com/adafruit/Adafruit_Python_GPIO.git
cd Adafruit_Python_GPIO
sudo python setup.py install
```

## Usage

To read a single set of data points from the SHT31, connect your Pi or Pi2
to the SHT31D breakout using I2C (connect SCL0/1 to the SCK pin and SCL0/1
to the SDI pin), and run the following command from this folder:

```
python Adafruit_SHT31_Example.py
```

## Credits

This driver is based on the [Adafruit_BME280](https://github.com/adafruit/Adafruit_Python_BME280)
driver by Tony DiCola (Adafruit Industries), with BME280 additions kindly provided by
David J. Taylor (www.satsignal.eu).
Modified for use with SHT31D by Ralf Mueller, (www.bj-ig.de)

# MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.