firebase-data
Easily transfer data between firebase projects.
⚠️ This package is still in early development. Read the code before running (especially on production environments).
Why another Firebase data management tool
- Existing ones don't provide features to handle inter-project data management.
- Official solution does not allow eu/us data movement
Install
pip install firebase-data
Usage
Export collection
fdata export --service_account_path=./svc.dev.json --collection=foos --output_path=./data
Import collection
fdata import --service_account_path=./svc.prod.json --collection=foos --input_path=./data
Export authentication
fdata auth:export --service_account_path=./svc.dev.json --output_path=./data
Delete
No need to reinvent the wheel here, use firebase-cli.
export GOOGLE_APPLICATION_CREDENTIALS=./svc.dev.json
firebase use my-project
firebase firestore:delete foos --recursive
Warning
- Not optimized for large collections (your PC will explose)
- Only one collection depth, i.e. foos/{fooId}/bars/{barId}
TODOS
- import/export Firestore (depth one)
- export Firebase authentication
- delete Firebase collection
- import Firebase authentication
- use transactions
- parallelize/optimize
- import+export as single call
- other firebase data
Development
Install
firebase login
firebase init
How to release
- Update version in
setup.py git add .git commit -m "my message"git pushgit tag v1.0.0git push origin v1.0.0
Metadata
Release files for firebase-data 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| firebase-data-1.0.5.tar.gz | 4.6 kB | Without provenance | Details for firebase-data-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| firebase_data-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for firebase_data-1.0.5-py3-none-any.whl |
Total release size: 10.8 kB
Release files / firebase-data-1.0.5.tar.gz
| Download URL | firebase-data-1.0.5.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b70edd98cb25f0be6b9696a4a1fc659200e41e1bb2c256761f71d57b2cbfb214
|
|
BLAKE2b-256 checksum How to use checksums |
d04e6f6234a6c2adc7d8a8d791785ee4394513cc24670d4257f74a98b2393fdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Release files / firebase_data-1.0.5-py3-none-any.whl
| Download URL | firebase_data-1.0.5-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62319c5d65f68ee43ea40bf19b6046623ca4bcabde77e5830c0eff40a7a9bda8
|
|
BLAKE2b-256 checksum How to use checksums |
ba73bc8f7b7b782ddb97cb6d8cbd8da5793c452215bcbdff0f5feaaed54a2fcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Security for firebase-data 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.