firebase-fireup-0.0.8
توضیحات
Firebase Storage Uploader
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | firebase-fireup-0.0.8 |
| نام | firebase-fireup |
| نسخه کتابخانه | 0.0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Esa Firman |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/firebase-fireup/ |
| مجوز | - |
## 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
```json
{
"apiKey": "12312asdasdzxc123123213",
"storageBucket": "testing.appspot.com",
"authDomain": "testing.firebaseapp.com",
"databaseURL": "https://testing.firebaseio.com",
"serviceAccount": "./firebasadmin-sa.json"
}
```
### Upload
```bash
$ fireup upload --origin <file> --dest <path>
# Example
$ fireup upload --origin some.apk --dest apk/testing.apk
```
### Delete
```bash
$ fireup delete --path <path> --expire <expire_in_days>
# Example
$ fireup delete --path apk/ --expire 1
```
### List
```bash
$ fireup list --path <path> --expire <expire_in_days>
# Example
$ fireup list --path /apk
```
## Including in another script
```python
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
نیازمندی
| مقدار | نام |
|---|---|
| ==5.0.0 | firebase-admin |
| ==2.25.1 | requests |
| ==0.9.1 | requests-toolbelt |
| ==2.0.1 | python-jwt |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl firebase-fireup-0.0.8:
pip install firebase-fireup-0.0.8.whl
نصب پکیج tar.gz firebase-fireup-0.0.8:
pip install firebase-fireup-0.0.8.tar.gz