Metadata-Version: 2.1
Name: hivemind-bus-client
Version: 0.0.1
Summary: Hivemind Websocket Client
Home-page: https://github.com/JarbasHiveMind/hivemind_websocket_client
Author: JarbasAi
Author-email: jarbasai@mailfence.com
License: Apache-2.0
Description: # Hivemind Websocket Client
        
        ## Install
        
        ```bash
        pip install hivemind_bus_client
        ```
        
        ## Usage
        
        ```python
        from time import sleep
        from mycroft_bus_client import Message
        from hivemind_bus_client import HiveMessageBusClient
        from hivemind_bus_client.decorators import on_escalate, \
            on_shared_bus, on_ping, on_broadcast, on_propagate, on_mycroft_message, \
            on_registry_opcode, on_third_party, on_cascade, on_handshake, on_hello, \
            on_rendezvous, on_hive_message, on_third_party, on_payload
        
        key = "super_secret_access_key"
        crypto_key = "ivf1NQSkQNogWYyr"
        
        bus = HiveMessageBusClient(key, crypto_key=crypto_key, ssl=False)
        
        bus.run_in_thread()
        
        
        @on_mycroft_message(payload_type="speak", bus=bus)
        def on_speak(msg):
            print(msg.data["utterance"])
        
        
        mycroft_msg = Message("recognizer_loop:utterance",
                              {"utterances": ["tell me a joke"]})
        bus.emit_mycroft(mycroft_msg)
        
        
        sleep(50)
        
        bus.close()
        ```
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
