Firebase Storage Uploader
Project description
FireUp
Upload, delete, and list your files in Firebse Storage
Firebase storage management tools
positional arguments:
{delete,upload,list} Sub commands
delete Delete files in firebase storage
upload Upload file use --origin and --dest
list List files in --target dir
optional arguments:
-h, --help show this help message and exit
Usage:
Set FIREUP_CONFIG
environment variables to config json files. Example
{
"apiKey": "12312asdasdzxc123123213",
"storageBucket": "testing.appspot.com",
"authDomain": "testing.firebaseapp.com",
"databaseURL": "https://testing.firebaseio.com",
"serviceAccount": "./firebasadmin-sa.json"
}
Upload
$ fireup upload --origin <file> --dest <path>
# Example
$ fireup upload --origin some.apk --dest apk/testing.apk
Delete
$ fireup delete --path <path> --expire <expire_in_days>
# Example
$ fireup delete --path apk/ --expire 1
List
$ fireup list --path <path> --expire <expire_in_days>
# Example
$ fireup list --path /apk
Including in another script
from fireup.fireup import FireUp
fire = FireUp()
fire.upload(origin="test.py", dest="script/test.py")
Building
Install the package locally
$ pip install <code_dir>
Building and upload to pypi
$ python setup.py sdist bdist_wheel
$ twine upload dist/*
License
MIT @ Esa Firman
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
firebase-fireup-0.0.8.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for firebase_fireup-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01a18ed3166c760b0ce8bad7a81a4cb60e2e67afacd1e2cc1dea0305501b2827 |
|
MD5 | 206e6800b60ff6924d536194bff1fd67 |
|
BLAKE2b-256 | 4a8afefe501586d3a089a82a935ab6227f68b284ae71b14efe82a1881c2bd91a |