Skip to main content

Google Cloud FireStore Database Utilities - Backup, Restore, Import, List

Project description

Google Cloud FireStore Database Utilities for following functions:

To Backup Collections

To Restore Collection

To Convert or Import a CSV File to Collection

To List All Collections

Installation:

sudo pip3 install firedb

Usage Examples:

Initialize the FireStore Database

import firedb

db = firedb.db()

Backup:

db.backup(‘collection_name’)

This will create a collection_name.json file as backup

db.backup(‘col1’, ‘col2’, ‘col3’)

This will create multiple jsons files - col1.json to col3.json as backup

db.backup(All=True)

This will create json backup files for all collections in the database.

Restore:

db.restore(‘collection_name.json’)

This will create a collection with name “collection_name”

Convert or Import from CSV:

db.csv2collection(CSV_FileName)

This will convert a CSV File to Collection.

Optional keyword argument name can be supplied to assign document name.

To List all Collections:

db.list()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
firedb-0.2-py3.7.egg (3.5 kB) Copy SHA256 hash SHA256 Egg 3.7
firedb-0.2.tar.gz (1.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page