JSLFireBaseUtils
The JSLFireBaseUtils is a basic python library for managing Firebase and CloudStore vey easily and efficiently. We will be managing more APIs and reusable on the fly functions for Firebase. Pypi Library
JSoftwareLabs.com
Our Home pageInstallation
You can install the JSLFireBaseUtils from PyPI:
pip install jslfirebaseutil
The jslfirebaseutil is supported on Python 3+ and above.
How to use
Example Usage
Initialize the utils class:
import logging
from jslfirebaseutils.cloudstore.cloud_store_utils import JslFirebaseUtil
jslFirebaseUtilObject = JslFirebaseUtil('test.json', log_level=logging.INFO)
delete a document containg a string
jslFirebaseUtilObject.delete_document_collection_with_contains(collection_name=u'collection name',string_contains='any string which is present in your document collection')
delete a whole collection
jslFirebaseUtilObject.clear_all_collection(collection_name=u'testcollection')
read a document as dictionary from collection
document = jslFirebaseUtilObject.read_document_as_dict(u'testcollection', id='whateverid')
print(document)