Metadata-Version: 1.1
Name: firebase
Version: 2.1.1
Summary: Python interface to the Google's Firebase REST APIs
Home-page: https://bitbucket.org/joetilsed/firebase/
Author: Joe Tilsed
Author-email: Joe@Tilsed.com
License: UNKNOWN
Description: Python interface to the Google's Firebase REST APIs
        =================
        
        Firebase
        =================
        
        Python interface to the Firebase's REST API
        
        .. image:: logo.png
           :target: http://www.firebase.com
        
        Installation
        -----------------
        
        python-firebase highly makes use of the **requests** library so before you begin, you need to have that package installed.
        
        .. code-block:: bash
        
            $ pip install firebase
        
        Getting Started
        ------------------
        
        You can fetch any of your data in JSON format by appending '.json' to the end of the URL in which your data resides and, then send an HTTPS request through your browser. Like all other REST specific APIs, Firebase offers a client to update(PATCH, PUT), create(POST), or remove(DELETE) his stored data along with just to fetch it.
        
        The library provides all the correspoding methods for those actions in both synchoronous and asynchronous manner. You can just start an asynchronous GET request with your callback function, and the method
        
        
        To fetch all the users in your storage simply do the following:
        
        .. code-block:: python
        
            from firebase import firebase
        
            firebase = firebase.FirebaseApplication('https://your_storage.firebaseio.com', None)
            result = firebase.get('/users', None)
            print(result)
        
            >> {'1': 'Joe Tilsed', '2': 'Sydney Cox'}
        
        The second argument of **get** method is the name of the snapshot. Thus, if you leave it NULL, you get the data in the URL **/users.json**. Besides, if you set it to **1**, you get the data in the url **/users/1.json**. In other words, you get the user whose ID equals to 1.
        
        .. code-block:: python
        
            from firebase import firebase
        
            firebase = firebase.FirebaseApplication('https://your_storage.firebaseio.com', None)
            result = firebase.get('/users', '1')
            print(result)
        
            >> {'1': 'Joe Tilsed'}
        
        
Keywords: firebase python
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.7
Classifier: Natural Language :: English
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
