Metadata-Version: 2.1
Name: w3mo
Version: 0.1.3
Summary: wemo control library
Home-page: https://github.com/mghelton/w3mo
Author: Gage Helton
Author-email: gagehelton@gmail.com
License: UNKNOWN
Description: # Overview
        
        w3mo is a pure python API wrapper for wemo devices
        
        [![Downloads](https://pepy.tech/badge/w3mo)](https://pepy.tech/project/w3mo) 
        [![Downloads](https://pepy.tech/badge/w3mo/month)](https://pepy.tech/project/w3mo/month)
        [![Downloads](https://pepy.tech/badge/w3mo/week)](https://pepy.tech/project/w3mo/week)
        
        # Installation
        ```pip3 install w3mo```
        
        # Usage
        * Device Discovery
        ```python
        from w3mo import w3mo
        
        #returns a dictionary of devices with the device name as the key
        #{'name':{'ip':device_ip,'obj':instantiated w3mo control class}}
        x = w3mo.discover(return_type=dict)
        
        #returns a list of devices
        #[{'name':'device_name_1','ip':'device_ip':,'obj':instantiated w3mo control class}]
        x = w3mo.discover(return_type=list)
        ```
        * Device Control
        ```python
        from w3mo import w3mo
        import time
        
        devices = w3mo.discover(return_type=list)
        
        #define device as the control class instantiation at index 0 of devices
        device = devices[0]['obj']
        
        #device name and state are set at instantiation and updated throughout use
        print("Device Name = {}".format(device.name))
        print("Device State = {}".format(device.state))
        
        #turn on
        device.set_state(1)
        
        
        #time.sleep(.25)
        #turn off
        #device.set_state(0)
        ```
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
