Skip to main content

A simple package for usage of Firebase for novice Python users

Project description

Simplebase

A simple Firebase wrapper for Python. It uses the firebase_admin package for requests to Firebase, and makes things WAY easier to use.

To use the package, you must have Realtime Database and Storage enabled and a private key, stored in a JSON file.

You can connect to Firebase like this: connect("dbkey.json", "https://xxxxxxx-default-rtdb.firebaseio.com", "xxxxxxx.appspot.com")

Go to a path: refdb("/test/")

Get from the path: get()

Add to / create a nested path with a value: addToNest("/test/", "key", "value")

Add to a path with a value: add("key", "value")

Delete a nested path: deleteNest("/test/")

As of 0.0.3:

Add file to storage bucket: addFile("file.txt")

Publish a file to the public: publishFile("file.txt")

Add file as to storage bucket: addFileAs("file.txt", "anythingyouwantjustdontaddspacesorspecialcharacters")

Publish file as to storage bucket: publishFileAs("file.txt", "anythingyouwantjustdontaddspacesorspecialcharacters")

publishFile and publishFileAs will return the public URL.

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

simplebase-0.0.4.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simplebase-0.0.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file simplebase-0.0.4.tar.gz.

File metadata

  • Download URL: simplebase-0.0.4.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for simplebase-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d4ac11f004c28e317b7c95e6d3a8d4757fe5995550d5c24d911239a540e64183
MD5 4c8e40a472422da7b954bb3448fc51c7
BLAKE2b-256 12685e0c02ee5a3ecbe15b693fc3d373c20976ae1407d62d95e1f04db913655e

See more details on using hashes here.

File details

Details for the file simplebase-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: simplebase-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for simplebase-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 58c65f21febd5496729e8af4db80e943b1c12591d80926c7f04296c33d652a08
MD5 b8bcbcbe16bcb3fca878f2b527e4f5ed
BLAKE2b-256 0cb4627505dc292ffadacd34ed7e6b8b8be960d121654e8971345bdf87af2f3d

See more details on using hashes here.

Supported by

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