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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file firedb-0.2.tar.gz
.
File metadata
- Download URL: firedb-0.2.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90c5247b61ae2298ae9f941e28ce2f9e97a00cf6249610fe359e3558511ca12b |
|
MD5 | 9d6675681557df990577fa0409e1f3fd |
|
BLAKE2b-256 | 3c3de68965175450693931c140d7eaa217601ae88a217343cb402d589f17c319 |
File details
Details for the file firedb-0.2-py3.7.egg
.
File metadata
- Download URL: firedb-0.2-py3.7.egg
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc55fe66b709c7e7819e4d7376775a5abab7c50d8427fd7167111e827da3a691 |
|
MD5 | 049a34f9efea7ffd5b6e28f87107a7d3 |
|
BLAKE2b-256 | c3df85a033616ecbbb9f737a1323ab5702545868364965a864b7587489ee8c8a |