Skip to main content

simple_firebase_realtime_db

Project description

simple_firebase_realtime_db

PyPI - package version PyPI - license PyPI - python version PyPI - downloads

GitHub - last commit GitHub - commit activity

GitHub - code size in bytes GitHub - repo size GitHub - lines of code

GitHub - license

Description

simplified usage of firebase realtime database

Install

pip install simple_firebase_realtime_db
# or
pip3 install simple_firebase_realtime_db

Usage

from simple_firebase_realtime_db import FirebaseRealtimeDB as DB
import time

DB.initialize(
    certificate_path='',
    database_url=''
)

path = 'desired/path'

print(
    'set',
    DB.set(
        {
            'test-key':'test-value'
        },
        path
    )
)

time.sleep(10)

import json
print(json.dumps(DB.get(path), indent=4))

time.sleep(10)

print('delete', DB.delete(path))

Dependencies

firebase-admin, jsoncodable, noraise

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

simple_firebase_realtime_db-0.0.4.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

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