Skip to main content

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)

Uploaded Source

Built Distribution

firebase_fireup-0.0.8-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

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