Skip to main content

Easily transfer data between firebase projects

Project description

firebase-data

pypi Open In Colab Try it on gitpod

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

  1. Update version in setup.py
  2. git add .
  3. git commit -m "my message"
  4. git push
  5. git tag v1.0.0
  6. 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)

Uploaded Source

Built Distribution

firebase_data-1.0.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for firebase-data-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d0e10538e225d35c3859abde250580201f9ac699275d86fab84eb28471e74d73
MD5 d15cfdb2576649124901cd61afc25112
BLAKE2b-256 7b67ac713207378bc850817605011379d842e61891bc50f4f2a0ad31e6f11524

See more details on using hashes here.

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

Hashes for firebase_data-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4371ac368ec175b2bcdf3cbe56ce064a1e1d4239fb366bb8718fa58894a77176
MD5 92f9ddd80425e93b5ee05b35b7265781
BLAKE2b-256 a83a23a931c060eafbeea4ff7c53a9c18a06a7b9f3bed7bd4792fff964556295

See more details on using hashes here.

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