Metadata-Version: 2.1
Name: pyrisco
Version: 0.1.0
Summary: A python library to communicate with Risco Cloud.
Home-page: https://github.com/OnFreund/PyRisco
Author: On Freund
Author-email: onfreund@gmail.com
License: MIT
Description: 
        # PyRisco
        
        A python interface to Risco alarm systems through [Risco CLoud](https://riscocloud.com/ELAS/WebUI).
        
        ## Installation
        
        You can install pyrisco from [PyPI](https://pypi.org/project/pyrisco/):
        
            pip3 install pyrisco
        
        Python 3.7 and above are supported.
        
        
        ## How to use
        
        ```python
        from pyrisco import RiscoAPI
        r = RiscoAPI("<username>", "<password>", "<pincode>")
        await r.login()
        alarm = await r.get_state()
        print (alarm.partitions[0].armed)
        
        events = await r.get_events("2020-06-17T00:00:00Z", 10)
        print (events[0].name)
        
        # arm partition 0
        await r.arm(0)
        
        # and disarm it
        await r.disarm(0) 
        
        # Partial arming
        await r.partial_arm(0)
        
        # Group arming
        await r.group_arm(0, "B")
        # or a zero based index
        await r.group_arm(0, 1)
        
        # Don't forget to close when you're done
        await r.close()
        ```
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.7.0
Description-Content-Type: text/markdown
