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()
Metadata
Release files for firedb 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| firedb-0.2.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| firedb-0.2-py3.7.egg | Legacy Egg format | - | - | Details |
Total release size: 5.5 kB
Release files / firedb-0.2.tar.gz
| Download URL | firedb-0.2.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90c5247b61ae2298ae9f941e28ce2f9e97a00cf6249610fe359e3558511ca12b
|
|
BLAKE2b-256 checksum How to use checksums |
3c3de68965175450693931c140d7eaa217601ae88a217343cb402d589f17c319
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Release files / firedb-0.2-py3.7.egg
| Download URL | firedb-0.2-py3.7.egg |
|---|---|
| Size | 3.5 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
dc55fe66b709c7e7819e4d7376775a5abab7c50d8427fd7167111e827da3a691
|
|
BLAKE2b-256 checksum How to use checksums |
c3df85a033616ecbbb9f737a1323ab5702545868364965a864b7587489ee8c8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|