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.3.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.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplebase-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 0b4ae88935b1aa535b7eb33f319d4f53655bb30b0b71e7bf170a6b5edd0299de
MD5 868ad3a4da39c416786ed2719f526e83
BLAKE2b-256 2fd00de948b9e4d995a149b0d4c1268f9eadf8276d6b7cfcbe181548b4c27661

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simplebase-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b3c2c2eb680952256e6da46d1bb0d64ae07f51f66a0423e4c048562adf3cc97
MD5 08d597ed8f074f23875aa72fdbe7210e
BLAKE2b-256 e3f8d159bf5f7a28f3b5d2dc072712791d7efdba6ba53389dba946c5d715cdaf

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