Python Client for Google Cloud Firestore
Project description
Python idiomatic client for Cloud Firestore
Quick Start
$ pip install --upgrade google-cloud-firestore
Authentication
With google-cloud-python we try to make authentication as painless as possible. Check out the Authentication section in our documentation to learn more. You may also find the authentication document shared by all the google-cloud-* libraries to be helpful.
Using the API
Cloud Firestore (Firestore API docs) is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud Platform. Like Firebase Realtime Database, it keeps your data in sync across client apps through realtime listeners and offers offline support for mobile and web so you can build responsive apps that work regardless of network latency or Internet connectivity. Cloud Firestore also offers seamless integration with other Firebase and Google Cloud Platform products, including Cloud Functions.
See the google-cloud-python API firestore documentation to learn how to interact with the Cloud Firestore using this Client Library.
See the official Cloud Firestore documentation for more details on how to activate Cloud Firestore for your project.
from google.cloud import firestore
# Add a new document
db = firestore.Client()
doc_ref = db.collection(u'users').document(u'alovelace')
doc_ref.set({
u'first': u'Ada',
u'last': u'Lovelace',
u'born': 1815
})
# Then query for documents
users_ref = db.collection(u'users')
docs = users_ref.get()
for doc in docs:
print(u'{} => {}'.format(doc.id, doc.to_dict()))
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 google-cloud-firestore-0.27.0.tar.gz
.
File metadata
- Download URL: google-cloud-firestore-0.27.0.tar.gz
- Upload date:
- Size: 118.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb927fc29383daddb936379f90bc87a61aaef26fe7bd742dcbeac1121f5f01c8 |
|
MD5 | 70792d8b35e26cbb317a8ec04580a11a |
|
BLAKE2b-256 | 13dba6c722c41418624d051cf39491c095b63073bca57a255653faef04bbc344 |
Provenance
File details
Details for the file google_cloud_firestore-0.27.0-py2.py3-none-any.whl
.
File metadata
- Download URL: google_cloud_firestore-0.27.0-py2.py3-none-any.whl
- Upload date:
- Size: 150.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70dce8d6b7cf9b1bc823dde83758300f9ec08fc98f353aa5fa0bfc5bc7190698 |
|
MD5 | fbb6961b6b1ee15961cecd67f8442e7f |
|
BLAKE2b-256 | 899cb20c635a3b1c470a6d4487b463fc4e89980d1060e047b285b0e29070a30b |