python firebase realtime listener

前端 未结 6 1091
离开以前
离开以前 2020-12-05 16:47

Hi there I\'m new in python. I would like to implement the listener on my Firebase DB. When I change one or more parameters on the DB my Python code have to do something. Ho

6条回答
  •  清歌不尽
    2020-12-05 17:14

    You can use Pyrebase, which is a python wrapper for the Firebase API.

    more info here:

    https://github.com/thisbejim/Pyrebase

    To retrieve data you need to use val(), example:

    users = db.child("users").get()
    print(users.val())
    

提交回复
热议问题