semvec/pypi-packages huggingface dataset:
mqtthandler 0.1.3
A Python logging handler using MQTT protocol
License: MIT

MQTTHandler
===========

A Python logging handler using MQTT protocol.

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

.. code:: sh

    pip install mqtthandler

Example usage
-------------

.. code:: py

    import mqtthandler
    import logging
    import time

    mqtthdlr = mqtthandler.MQTTHandler('server.mqtt.com', 'topic/test')
    mqtthdlr.setLevel(logging.INFO)

    logger = logging.getLogger()
    logger.addHandler(mqtthdlr)
    logger.setLevel(logging.INFO)

    logging.info('test')  # Automatically connecting to the MQTT broker if not connected (equal to loop_start()) and sending log message to MQTT broker
    logging.info('test 2')

    # Wait for log being sent to the MQTT broker
    while True:
      time.sleep(1)

    # You will only see
    #   test 2
    # on the broker if QoS = 0.

MQTTHandler will not wait for connected, you have to do it yourself.
E.g.

.. code:: py

    mqtthdlr.loop_start()   # Manually connect to the MQTT server
    import time; time.sleep(3)   # A dirty way to wait for MQTT connected
    logging.info('test')  # send log message to MQTT broker

MQTTHandler will create a thread to maintain the connection
(automatically reconnecting if disconnected) itself. This will make your
program never exit. You have to terminate MQTTHandler yourself to stop
the MQTTHandler thread.

.. code:: py

    mqtthdlr.loop_stop()  # Stop MQTT thread

API
---

MQTTHandler
~~~~~~~~~~~

Constructor
^^^^^^^^^^^

::

    MQTTHandler(host, topic, port=1883, keepalive=60, bind_address='', client_id='', clean_session=True, userdata=None, protocol=mqttc.MQTTv311, qos=0, retain=False)

Reference to `paho.mqtt.python`_.

Methods
^^^^^^^

::

    loop_start()

::

    loop_stop()

::

    max_inflight_messages_set(inflight)

::

    message_retry_set(retry)

::

    tls_set(ca_certs, certfile=None, keyfile=None, cert_reqs=ss.CERT_REQUIRED, tls_version=ssl.PROTOCOL_TLSv1, ciphers=None)

::

    tls_insecure_set(value)

::

    username_pw_set(username, password)

::

    user_data_set(userdata)

::

    will_set(topic, payload=None, qos=0, retain=False)

Reference to `paho.mqtt.python`_.

.. _paho.mqtt.python: https://github.com/eclipse/paho.mqtt.python/blob/master/README.rst
overloading 0.5.0
Function overloading for Python 3
License: MIT
Keywords: overload function method dispatch

``overloading`` is a module that provides function and method dispatching
based on the types and number of runtime arguments.

When an overloaded function is invoked, the dispatcher compares the supplied
arguments to available signatures and calls the implementation providing the
most accurate match:

.. code:: python

    @overload
    def biggest(items: Iterable[int]):
        return max(items)

    @overload
    def biggest(items: Iterable[str]):
        return max(items, key=len)

.. code:: python

    >>> biggest([2, 0, 15, 8, 7])
    15
    >>> biggest(['a', 'abc', 'bc'])
    'abc'


Features
========

* Function validation during registration and comprehensive resolution rules
  guarantee a well-defined outcome at invocation time.
* Supports the `typing`_ module introduced in Python 3.5.
* Supports optional parameters.
* Supports variadic signatures (``*args`` and ``**kwargs``).
* Supports class-/staticmethods.
* Evaluates both positional and keyword arguments.
* No dependencies beyond the standard library

.. _typing:   https://docs.python.org/3/library/typing.html


Documentation
=============

The full documentation is available at https://overloading.readthedocs.org/.
digicert-express 1.1.dev2
Express Install for DigiCert, Inc.
License: MIT

digicert_express
----------------

This module is used to automate the installation of DigiCert SSL Certificates.

**PLEASE NOTE**: This project is "pre-release" and not complete. We have not yet released our *test* package. Also, this tool requires a DigiCert account that has the express install feature enabled. You will need to contact `DigiCert Customer Support`_ in order to use this tool.

*As this project is currently in alpha testing there may be bugs and we cannot currently guarantee your results. Use at your own risk.*

.. _DigiCert Customer Support: https://www.digicert.com/support/