semvec/pypi-packages huggingface dataset:
message-listener 1.1.0
Server listener and iot_message handler
License: MIT
Keywords: iot_message,raspberry pi

What it is
===========
App used at Raspberry Pi as receiver of incoming messages and pass them to registered handlers 
(relay, screen, sensors) 

.. code-block::

    from message_listener.server import Server
    from iot_message.message import Message
    from message_listener.handler_debug import HandlerDebug
    from iot_message.cryptor.base64 import Cryptor as B64

    Message.node_name = "PC"
    Message.add_decoder(B64())
    #Message.drop_unencrypted = True

    svr = Server()
    # svr.ignore_missing_decoders = False
    svr.add_handler('NodeOne', HandlerDebug({}))
    svr.start()

Add more than one handler:

.. code-block::

    svr = Server()
    svr.add_handler('NodeOne', HandlerDebug({}))
    svr.add_handler('NodeOne', HandlerDebug({}))
    svr.start()

or

.. code-block::

    svr = Server()
    svr.add_handler('NodeOne', [
        HandlerDebug({}),
        HandlerDebug({})
    ])
    svr.start()

Add workers:

.. code-block::

    Handler1(Worker1(), Worker2())


Initialization:

.. code-block::

    __init__(self, port=5053, ip_address='0.0.0.0', buffer_size=65535)

Read more: 

[https://koscis.wordpress.com/2017/03/03/raspberry-pi-as-a-node/](https://koscis.wordpress.com/2017/03/03/raspberry-pi-as-a-node/)

[https://koscis.wordpress.com/2019/08/31/upgrades-to-message_listener/](https://koscis.wordpress.com/2019/08/31/upgrades-to-message_listener/)
jupytertweak 0.2.0
Tweaks for jupyter notebooks
License: MIT
Requires Python: >=3.6

[![Build Status](https://travis-ci.org/kmedian/jupytertweak.svg?branch=master)](https://travis-ci.org/kmedian/jupytertweak)
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/kmedian/jupytertweak/master?urlpath=lab)

# jupytertweak


## Table of Contents
* [Installation](#installation)
* [Usage](#usage)
* [Commands](#commands)
* [Support](#support)
* [Contributing](#contributing)


## Installation
The `jupytertweak` [git repo](http://github.com/kmedian/jupytertweak) is available as [PyPi package](https://pypi.org/project/jupytertweak)

```
pip install jupytertweak
```


## Usage
Check the [examples](http://github.com/kmedian/jupytertweak/examples) folder for notebooks.


## Commands
* Check syntax: `flake8 --ignore=F401`
* Remove `.pyc` files: `find . -type f -name "*.pyc" | xargs rm`
* Remove `__pycache__` folders: `find . -type d -name "__pycache__" | xargs rm -rf`
* Upload to PyPi: `python setup.py sdist upload -r pypi`
* Upload to PyPi with twine: `python setup.py sdist && twine upload -r pypi dist/*`


## Support
Please [open an issue](https://github.com/kmedian/jupytertweak/issues/new) for support.


## Contributing
Please contribute using [Github Flow](https://guides.github.com/introduction/flow/). Create a branch, add commits, and [open a pull request](https://github.com/kmedian/jupytertweak/compare/).