I'm very new to firebase, and I basically want to populate a base from Python,
so I wrote the following code following the tutorial:
import json, multiprocessing
from firebase import firebase
multiprocessing.freeze_support() #prevents crashes in debugger/win
ref = firebase.FirebaseApplication('https://mybasehere.firebaseio.com/', authentication=None)
result = ref.get('/test', None)
print result
result = ref.post('/test', {'test4':'posted'})
print result
which starts by giving the expected result (I entered some data through firebase's dashboard):
and I see 6 new records in firebase's dashboard instead of a single 'test4' as expected.
What happened ? and how can I write key='test4' with value='posted' simply in 'test' ?
I'm very new to firebase, and I basically want to populate a base from Python, so I wrote the following code following the tutorial:
which starts by giving the expected result (I entered some data through firebase's dashboard):
but then the program pauses a few seconds and outputs 2x5 more lines :
and I see 6 new records in firebase's dashboard instead of a single 'test4' as expected. What happened ? and how can I write key='test4' with value='posted' simply in 'test' ?