Metadata-Version: 2.1
Name: python-kodaksmarthome
Version: 0.0.1a1
Summary: Python Kodak SmartHome API
Home-page: https://github.com/kairoaraujo/kodak_smarthome_api
Author: Kairo de Araujo
Author-email: kairo@dearaujo.nl
License: Apache 2.0
Project-URL: Documentation, https://python-kodaksmarthome.readthedocs.io
Project-URL: Source, https://github.com/kairoaraujo/python-kodaksmarthome
Description: .. image:: https://travis-ci.org/kairoaraujo/python-kodaksmarthome.svg?branch=master
            :target: https://travis-ci.org/kairoaraujo/python-kodaksmarthome
        .. image:: https://readthedocs.org/projects/python-kodaksmarthome/badge/?version=latest
            :target: https://python-kodaksmarthome.readthedocs.io/en/latest/?badge=latest
        .. image:: https://codecov.io/gh/kairoaraujo/python-kodaksmarthome/branch/master/graph/badge.svg
            :target: https://codecov.io/gh/kairoaraujo/python-kodaksmarthome
        .. image:: https://img.shields.io/pypi/v/python-kodaksmarthome.svg
            :target: https://pypi.python.org/pypi/python-kodaksmarthome
        .. image:: https://img.shields.io/pypi/l/python-kodaksmarthome.svg
            :target: https://pypi.python.org/pypi/python-kodaksmarthome
        
        
        #######################
        Python Kodak Smart Home
        #######################
        
        Python Kodak Smart Home is a library written in Python 3 (>=3.7) that works as API for
        [Kodak Smart Home Portal](https://kodaksmarthome.com).
        
        This API uses the credentials from Kodak Smart Home Portal to fetch devices
        registered and its events to be used as Python Projects.
        
        ***This project is not part of Kodak.***
        
        Installation
        ############
        
        ``pip install python-kodaksmarthome``
        
        
        Usage
        #####
        
        Initializing the connection
        ===========================
        
        .. code-block:: python
        
            >>> from kodaksmarthome import KodakSmartHome
            >>> my_home = KodakSmartHome('my@email.com', 'my-pass')
            >>> my_home.connect()
            >>> my_home.is_connected
            True
        
        
        Listing devices, state, model and device id
        ===========================================
        
        .. code-block:: python
        
            >>> for device in my_home.list_devices:
            ...   print(f"Device: {device['name']}")
            ...   print(f"Device ID: {device['device_id']})
            ...   print(f"Model: {device['model_name']})
            ...   print(f"Online: {device['is_online']}\n")
            ...
            Device: Playground
            Device ID: '000009999999999999999999'
            Model: Cherish 525
            Online: False
        
            Device: Bedroom
            Device ID: '00000222222222222222222'
            Model: Cherish 525
            Online: True
        
        
        
        Listing last device motion events
        =================================
        
        .. code-block:: python
        
            >>> motion_events = my_home.get_motion_events(device_id="00000222222222222222222")
            >>> for event in motion_events[:2]:
            ...    print(f"snapshot: {event['snapshot']}")
            ...    print(f"video_recorded: {event['data'][0]['file']}")
            ...    print(f"data: {event['created_date']}")
        
            snapshot: http://video_url/00000222222222222222222/SNAPSHOT.jpg
            video_recorded: http://video_url/00000222222222222222222/VIDEO000001.flv
            data: 2020-01-04T16:11:48.000Z
            snapshot: http://video_url/00000222222222222222222/SNAPSHOT
            video_recorded: http://video_url/00000222222222222222222/VIDEO000002.flv
            data: 2020-01-04T16:08:52.000Z
        
        
        Documentation
        #############
        
        https://python-kodaksmarthome.readthedocs.io
        
        
        
        
        
        
        
        
        
        
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.6
Description-Content-Type: text/markdown
