python integration with firebase

9
Python Integration with Firebase

Upload: opel-it-services

Post on 16-Jul-2015

401 views

Category:

Internet


5 download

TRANSCRIPT

Page 1: Python integration with firebase

Python Integration with Firebase

Page 2: Python integration with firebase

What is Firebase

• A powerful API to store and sync data in realtime.

• BAAS (Backend as a services)

• Combination of

– Datastore

– Tools to get realtime updates for changes

• Gives the ability to create Apps without setting up backend

Page 3: Python integration with firebase

How does it work

• Developers install firebase by including a library in their applications.

• This library provides a data structure that is automatically synchronised between all clients and with firebase servers.

• If one client changes a piece of data, every other client observing the same piece of data will be updated as well within milliseconds.

Page 4: Python integration with firebase

Schematic of connecting to Firebase

Page 5: Python integration with firebase

Firebase Integrations available

• Firebase has support for the web, iOS, OS X, and Android clients.

• In addition, it has a Node.js and a Java library designed for server-side use.

• A REST API is provided which allows any other type of apps to connect with Firebase

Page 6: Python integration with firebase

Firebase Data Structure

Page 7: Python integration with firebase

Python - Firebase

• Leverage the REST API implementation – Use Python-Firebase a Python Wrapper over REST API

• Use Server Sent Event (SSE) streams

• A complete example at https://github.com/firebase/EventSource-Examples

Page 8: Python integration with firebase

Develop a simple chat client

• Demo + Workshop

• Write data to Firebase

• Read data from Firebase

• Simple Chat Client

Page 9: Python integration with firebase

Resources

• Code Repo - https://github.com/mayuresh/python-firebase-demo

• Simple write to Firebase – firebase-write.py

• Simple read from Firebase – firebase-read.py

• Chat functionality – chat_client.py

• Integrating with JS UI Demo -mayuresh.github.io/python-firebase-demo/advanced/chat.html

• Firebase URL - https://dazzling-fire-5952.firebaseio.com/