Skip to main content

JSoftwareLabs Utils for Firebase

Project description

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

Our Home page JSoftwareLabs.com

Installation

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)

Current Releases

V1_0_7

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jslfirebaseutil-1.0.7.tar.gz (3.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page