Metadata-Version: 2.1
Name: simplebase
Version: 0.0.3
Summary: A simple package for usage of Firebase for novice Python users
Author-email: sneaky <24535asssci@gmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.1
Requires-Dist: firebase-admin>=6.20
Description-Content-Type: text/markdown

# 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.
