You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 26, 2019. It is now read-only.
Note that python-firebase depends on requests (https://python-requests.org),
a REST/http client for python. If you used pip or easy_install, the
dependency should automatically be installed.
Then simply import firebase at the top of your python script:
from firebase import Firebase
and then instantiate Firebase, passing in your root url:
f = Firebase('https://SampleChat.firebaseIO-demo.com/')
f = Firebase('https://SampleChat.firebaseIO-demo.com/', auth_token="<my_firebase_auth_token>")
Now call the different methods of the Firebase class (see the Firebase
REST API page: https://www.firebase.com/docs/rest-api.html and the source of
firebase/__init__.py for what methods are available and how to call
them). For example, to push a list of data:
f = Firebase('https://SampleChat.firebaseIO-demo.com/message_list')
r = f.push({'user_id': 'wilma', 'text': 'Hello'})
The response r is a dictionary containing Firebase's REST response:
{"name":"-INOQPH-aV_psbk3ZXEX"}
License
django-firebase is BSD licensed.
About
⛔️ [DEPRECATED] python wrapper for Firebase's REST API