Metadata-Version: 1.1
Name: memair
Version: 0.1
Summary: SDK for Memair
Home-page: https://github.com/memair/memair-python-sdk
Author: Greg Clarke
Author-email: greg@gho.st
License: MIT
Description: =================
        Memair Python SDK
        =================
        
        .. image:: https://badge.fury.io/py/memair.svg
            :target: https://badge.fury.io/py/memair
        
        .. image:: http://img.shields.io/badge/license-MIT-yellow.svg?style=flat
            :target: https://github.com/memair/memair-python-sdk/blob/master/LICENSE
        
        .. image:: https://img.shields.io/badge/contact-Gregology-blue.svg?style=flat
            :target: http://gregology.net/contact/
        
        Overview
        --------
        
        SDK for simple interaction with the Memair APIs
        
        Installation
        ------------
        
        ``memair`` is available on PyPI
        
        http://pypi.python.org/pypi/memair
        
        Install via ``pip``
        ::
        
            $ pip install memair
        
        Or via ``easy_install``
        ::
        
            $ easy_install memair
        
        Or directly from ``memair``'s `git repo <https://github.com/memair/memair-python-sdk>`__
        ::
        
            $ git clone git://github.com/memair/memair-python-sdk.git
            $ cd memair
            $ python setup.py install
        
        Basic usage
        -----------
        
        `Generate a temporary access token <https://memair.com/generate_own_access_token>`__
        
        `Validate GraphQL with GraphiQL <https://memair.com/graphiql>`__
        
        ::
        
            >>> from memair import Memair
            >>> api_key = '0000000000000000000000000000000000000000000000000000000000000000'
            >>> user = Memair(api_key)
            >>> latest_location = user.query('''
                    {
                        Locations(first: 1, order: timestamp_desc) {
                        lat
                        lon
                        timestamp
                      }
                    }
                ''')
            >>> latest_location['data']['Locations'][0]
            {'lat': 42.909056, 'lon': -74.572508, 'timestamp': '2018-07-27T22:27:21Z'}
        
        
        
        Running Test
        ------------
        ::
        
            $ python tests.py
        
        Python compatibility
        --------------------
        
        Developed for Python 3. May work but not tested in Python 2.
        
Keywords: memair,quantified self,extended mind,lifelogging
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
