semvec/pypi-packages huggingface dataset:
apple-mango 0.2
Light weight BDD Pattern
License: MIT
Keywords: tdd,bdd,test

# Light weight BDD Pattern

## Installation
* `pip install apple-mango`

## Goal
* Easy to Use
* Compatible with Python unittest
* Compatible with existing test code
* Support Python3

## Next Step
* Register to pypi
* Add CI
* Support pytest

## Usage
* Define regular test class
* Define regular test method with `@mango.given()`
* Define inner `when` method with `@mango.when()`
* Define inner `then` method with `@mango.then()`
* Run python test: `python -m unittest test_file.py`
* No need to call inner `when` and `then` method becuase `given(), when(), then()` decorators will take care of it

### Example
```python
# test_exampel.py

class MangoUseCase(TestCase):
    def setUp(self):
        self.user = 'jun'

    @mango.given('I am logged-in user')
    def test_profile(self):
        self.given.user_profile = 'my_profile'
        self.given.user_photo = 'my_photo'

        self.given.notifications_count = 3
        self.given.unread_notifications_count = 1

        @mango.when('I click profile')
        def when_click_profile():
            print('click')

            @mango.then('I see profile')
            def then_profile():
                self.assertEqual(self.given.user_profile, 'my_profile')

            @mango.then('I see my photo')
            def then_photo():
                self.assertEqual(self.given.user_photo, 'my_photo')

        @mango.when('I click notification')
        def when_click_notification():
            print('click')

            @mango.then('I see 3 notifications')
            def then_notification():
                self.assertEqual(self.given.notifications_count, 3)

            @mango.then('I see 1 unread notification')
            def then_unread_notification():
                self.assertEqual(self.given.unread_notifications_count, 1)

    @mango.given('I am logged-out user')
    def test_auth(self):
        self.given.status_code = 401

        @mango.when('I access profile by url')
        def when_access_profile():
            print('access profile')

            @mango.then('I see 401 error')
            def then_error():
                self.assertEqual(self.given.status_code, 401)

```

### Run Example
```python
python -m unittest test_example.py
```

## Contributing

### Run Test
```python
python -m unittest tests/test_mango.py
```
cayenne-mqtt 1.1.0
Cayenne MQTT Python Library
License: MIT
Keywords: myDevices Cayenne MQTT

Cayenne MQTT Python Library
***************************
The Cayenne MQTT Python Library provides functions to easily connect to the `Cayenne IoT project builder <https://mydevices.com>`_. With it you can send data to and receive data from Cayenne.

Requirements
============
* `Python 2.7.9+ or 3.4+ <https://www.python.org/downloads/>`_.
* `This library <https://github.com/myDevicesIoT/Cayenne-MQTT-Python/archive/master.zip>`_.
* `Eclipse Paho MQTT Python client library <https://github.com/eclipse/paho.mqtt.python>`_. This is installed as part of the Cayenne library installation.

Getting Started
===============
Installation
------------
This library can be installed using pip:
::

  pip install cayenne-mqtt

It can also be installed from the repository:
::

  git clone https://github.com/myDevicesIoT/Cayenne-MQTT-Python
  cd Cayenne-MQTT-Python
  python setup.py install
  
Cayenne Setup
-------------
1. Create your Cayenne account at https://mydevices.com.
2. Add a new device using the Bring Your Own Thing API selection.

Examples
--------
Simple examples are available in the repository here: https://github.com/myDevicesIoT/Cayenne-MQTT-Python/tree/master/examples.

Below is an example of a simple client that publishes some sample data and receives data from Cayenne in a message callback. The Cayenne authentication variables must be modified with the authentication info you received when adding a new device in Cayenne:
::

  import cayenne.client
  import time

  # Cayenne authentication info. This should be obtained from the Cayenne Dashboard.
  MQTT_USERNAME  = "MQTT_USERNAME"
  MQTT_PASSWORD  = "MQTT_PASSWORD"
  MQTT_CLIENT_ID = "MQTT_CLIENT_ID"

  # The callback for when a message is received from Cayenne.
  def on_message(message):
    print("message received: " + str(message))
    # If there is an error processing the message return an error string, otherwise return nothing.
    
  client = cayenne.client.CayenneMQTTClient()
  client.on_message = on_message
  client.begin(MQTT_USERNAME, MQTT_PASSWORD, MQTT_CLIENT_ID)
  # For a secure connection use port 8883 when calling client.begin:
  # client.begin(MQTT_USERNAME, MQTT_PASSWORD, MQTT_CLIENT_ID, port=8883)

  i=0
  timestamp = 0

  while True:
    client.loop()
    
    if (time.time() > timestamp + 10):
      client.celsiusWrite(1, i)
      client.luxWrite(2, i*10)
      client.hectoPascalWrite(3, i+800)
      timestamp = time.time()
      i = i+1

Documentation
-------------
For more detailed info about the Cayenne client API you can use **pydoc**.
::

  pydoc cayenne.client
  

Additional Cayenne MQTT Libraries
=================================
Additional libraries are available for connecting to Cayenne with other languages. These can be found at https://github.com/myDevicesIoT.
listManager 1.0
To ease lists management
License: MIT
Keywords: list arrays listmanager

This project has been made to easier to manage lists in Python 3.
Sometimes for newbies manage elements into lists can be frustrating, and can
make a simple problem become an upset problem.

Functionability

On this package are in total twelve functions to help you work with lists.

subtract_elements()

Allows subtraction from left values to right side values. Returns a list.

multiply_elements()

This function allows to multiply elements in list. Returns a list.

divide_elements()

Allows to divide from left to right side. Returns a list.

remove_repeated_elements()

Will remove repeated elements in array. Returns the array without repeated elements.

return_common_elements()

Returns common elements between two arrays. Returns a list.

return_uncommon_elements()

Returns uncommon elements between two arrays. Returns a list.

return_element_index()

Returns index(es) for a specific element in array. Returns a list.

element_average()

Returns the percentage represented by element in the array. Returns a float.

array_average()

Returns the array average. Returns a float.

array_mode()

Returns array mode. Returns an integer.

odd_array_median()

Returns median for an odd array. Can return a float or an integer.

pair_array_median()

Returns median for a pair array. Returns a float.
zeppelin-handy-helpers 0.0.1a2
Console tool for zeppelin
License: MIT
Keywords: helpers,console,zeppelin,notifier,monitoring

# zeppelin-handy-helpers

Console helper to check, monitor, stop zeppelin paragraph and receive notifications to Slack

[![Build Status](https://travis-ci.org/sbilello/zeppelin-handy-helpers.svg?branch=master)](https://travis-ci.org/sbilello/zeppelin-handy-helpers)
[![CircleCI](https://circleci.com/gh/sbilello/zeppelin-handy-helpers.svg?style=svg)](https://circleci.com/gh/sbilello/zeppelin-handy-helpers)
[![PyPI version](https://badge.fury.io/py/zeppelin-handy-helpers.svg)](https://badge.fury.io/py/zeppelin-handy-helpers)

### Disclaimer

This tool is just a small helper and it is not ready for production yet. It works pretty well for my use cases. Feel free to expand or improve.

### Installation

```
pip install zeppelin-handy-helpers
```

### Usage

```
usage: zhh [-h] [--end_point [END_POINT]]
           [--slack_end_point [SLACK_END_POINT]] [--read] [--check] [--stop]
           [--monitor]

optional arguments:
  -h, --help            show this help message and exit
  --end_point [END_POINT]
                        Specify Zeppelin API end_point
  --slack_end_point [SLACK_END_POINT]
                        Specify Slack Incoming Webhook
  --read                Show all notebook names and ids
  --check               Show all running paragraphs
  --stop                Stop all runnning paragraphs
  --monitor             Monitor all running paragraphs
```


### Examples

```
(demo) ➜  zeppelin-handy-helpers git:(master) ✗ zhh --end_point http://localhost/api/notebook --slack_end_point https://hooks.slack.com/services/XXXXX/XXXX/XXXXX --read
[
    {
        "id": "2CFH4E3TG",
        "name": "OWL"
    },
    {
        "id": "2CF34ERK6",
        "name": "SparkPi"
    },
    {
        "id": "2D62499YH",
        "name": "DemoNotebook"
    }
]

Execution completed
```
cgstats 1.2.2
Models and access to cgstats
License: MIT

# CGSTATS [![Build Status][travis-img]][travis-url]

Models and CRUD to cgstats.

## configuration

cgstats has a parameter `--database` that needs to hold a connection string to the database:

```bash
$ cgstats --database mysql+pymysql://user:pass@127.0.0.1:3306/cgstats
```

[travis-img]: https://travis-ci.org/Clinical-Genomics/cgstats.svg?branch=master
[travis-url]: https://travis-ci.org/Clinical-Genomics/cgstats
openslides-gui 1.1.4
GUI frontend for managing OpenSlides server
License: MIT
Keywords: OpenSlides

================
 OpenSlides GUI
================

Overview
========

Simple GUI frontend for `OpenSlides <http://openslides.org/>`_ to run and configure OpenSlides' web server.
Used with `OpenSlides Portable <https://github.com/OpenSlides/openslides-portable>`_ to build a full portable distribution of OpenSlides.


Requirements
============

- Python 3.5+
- OpenSlides 2.2
- wxPython 4.x (Phoenix)

See requirements.txt


Install
=======

This is an instruction to install OpenSlides GUI.

1. Install Python 3.5+ and Setuptools

   Follow the instructions in the README of OpenSlides.


2. Install requirements::

   $ pip install -r requirements.txt


3. Install openslides-gui::

   $ pip install openslides-gui


4. Run the OpenSlides GUI::

   $ openslides-gui


License
=======

This plugin is Free/Libre Open Source Software and distributed under the
MIT License, see LICENSE file.


Authors
=======

* Andy Kittner <andkit@gmx.net>
* Emanuel Schütze <emanuel@intevation.de>


Changelog
=========

Version 1.1.4 (2018-02-16)
--------------------------
* Use get_default_user_data_dir instead of get_default_user_data_path
* Updated wxphoenix.
* Updated credits.

Version 1.1.3 (2017-11-17)
--------------------------
* Install wxpython from pypi.

Version 1.1.2 (2017-03-29)
--------------------------
* Don't kill browser after stopping server.
  (Removed psutil as requirements)
* Added option to use Geiss and Redis server.

Version 1.1.1 (2017-01-26)
--------------------------
* Updated README to Python 3.5.
* Updated Credits to 2016.

Version 1.1 (2016-03-21)
------------------------
* Added port/host arguments for openslides start command.
* Improved OpenSlides app icon.

Version 1.0.1 (2016-02-03)
--------------------------
* Updated README to Python 3.4.
* Updated Credits to 2016.

Version 1.0 (2015-12-07)
------------------------
* First release of openslides-gui for OpenSlides 2.x.
  It's moved from old OpenSlides 1.x repository into an own openslides-gui package.