ozgur / python-firebase

Python interface to the Firebase's REST API
http://ozgur.github.com/python-firebase/
MIT License
592 stars 155 forks source link

[Offline Capabilities] Is it working for Python? #85

Open arodzik opened 6 years ago

arodzik commented 6 years ago

Hello,

Is there any chance to use Firebase offiline capabilities with python-firebase?

https://firebase.google.com/docs/firestore/manage-data/enable-offline

b4oshany commented 6 years ago

The simple answer is no, there's little to no chance.

In fact, I should point out that Firebase Offline feature utilizes WebKit or browsers persistence storage, e.g. LocalStorage for it to work.

With that said, and the fact that this project runs as a server side pipeline, which does not directly communicate with the client's browser. Therefore, if the client can't reach the server, they won't be able to view the server side rendered output from firebase.

However, if we became superman and implement it. We would need to ensure that the package as the correct write permission to the file system or some form of database. In addition, we would need write our own query functions to parse through the JSON data.