Easily transfer data between firebase projects
Project description
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
fdata export --service_account_path=./svc.dev.json --collection=foos --output_path=./data
Import
fdata import --service_account_path=./svc.prod.json --collection=foos --input_path=./data
Warning
- Not optimized for large collections (your PC will explose)
- Only one collection depth, i.e. foos/{fooId}/bars/{barId}
TODOS
- import/export (depth one)
- use transations
- parallelize/optimize
- import+export as single call
- clean/delete
- other firebase data
Development
How to release
- Update version in
setup.py
git add .
git commit -m "my message"
git push
git tag v1.0.0
git push origin v1.0.0
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-data-1.0.2.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file firebase-data-1.0.2.tar.gz
.
File metadata
- Download URL: firebase-data-1.0.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0e10538e225d35c3859abde250580201f9ac699275d86fab84eb28471e74d73 |
|
MD5 | d15cfdb2576649124901cd61afc25112 |
|
BLAKE2b-256 | 7b67ac713207378bc850817605011379d842e61891bc50f4f2a0ad31e6f11524 |
File details
Details for the file firebase_data-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: firebase_data-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4371ac368ec175b2bcdf3cbe56ce064a1e1d4239fb366bb8718fa58894a77176 |
|
MD5 | 92f9ddd80425e93b5ee05b35b7265781 |
|
BLAKE2b-256 | a83a23a931c060eafbeea4ff7c53a9c18a06a7b9f3bed7bd4792fff964556295 |