Metadata-Version: 2.1
Name: ssdp
Version: 1.0.1
Summary: Python asyncio library for Simple Service Discovery Protocol (SSDP).
Home-page: https://github.com/codingjoe/ssdp
Author: Johannes Hoppe
Author-email: info@johanneshoppe.com
License: MIT License
Description: Python SSDP
        ===========
        
        |version| |ci| |coverage| |license|
        
        Python asyncio library for Simple Service Discovery Protocol (SSDP).
        
        SSDP is a UPnP sub standard. For more information see: https://en.wikipedia.org/wiki/Simple_Service_Discovery_Protocol
        
        Setup
        -----
        
        .. code:: shell
        
            pip install ssdp
        
        
        Usage
        -----
        
        .. code:: python
        
            import asyncio
            import ssdp
        
        
            class MyProtocol(ssdp.SimpleServiceDiscoveryProtocol):
        
                def response_received(self, response, addr):
                    print(response, addr)
        
                def request_received(self, request, addr):
                    print(request, addr)
        
        
            loop = asyncio.get_event_loop()
            connect = loop.create_datagram_endpoint(MyProtocol, family=socket.AF_INET)
            transport, protocol = loop.run_until_complete(connect)
        
            notify = ssdp.SSDPRequest('NOTIFY')
            notify.sendto(transport, (MyProtocol.MULTICAST_ADDRESS, 1982))
        
            try:
                loop.run_forever()
            except KeyboardInterrupt:
                pass
        
            transport.close()
            loop.close()
        
        .. |version| image:: https://img.shields.io/pypi/v/ssdp.svg
            :target: https://pypi.python.org/pypi/ssdp/
        .. |ci| image:: https://api.travis-ci.org/codingjoe/ssdp.svg?branch=master
            :target: https://travis-ci.org/codingjoe/ssdp
        .. |coverage| image:: https://codecov.io/gh/codingjoe/ssdp/branch/master/graph/badge.svg
            :target: https://codecov.io/gh/codingjoe/ssdp
        .. |license| image:: https://img.shields.io/badge/license-MIT-blue.svg
            :target: LICENSE
        
        
Keywords: ssdp
python
asyncio
upnp
iot
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Framework :: AsyncIO
Classifier: Topic :: System :: Networking
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Home Automation
Description-Content-Type: text/x-rst; charset=UTF-8
