Skip to main content

Google Cloud Firestore API client library

Project description

Python idiomatic client for Cloud Firestore

Quick Start

$ pip install --upgrade google-cloud-firestore

For more information on setting up your Python development environment, such as installing pip and virtualenv on your system, please refer to Python Development Environment Setup Guide for Google Cloud Platform.

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

google-cloud-firestore-0.29.0.tar.gz (82.1 kB view details)

Uploaded Source

Built Distribution

google_cloud_firestore-0.29.0-py2.py3-none-any.whl (105.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file google-cloud-firestore-0.29.0.tar.gz.

File metadata

File hashes

Hashes for google-cloud-firestore-0.29.0.tar.gz
Algorithm Hash digest
SHA256 e34c3d45a3deb0af92cbde769f14ab54fdec7c5cd21b5f49a73cf9b9d3f8d342
MD5 003e8799a1ab49a739693ed5fa6a3b12
BLAKE2b-256 94d7c9aad9e29ab9d2889fa6c43c7efd3fa5443bc56c4fecd304f8deb7de01c7

See more details on using hashes here.

Provenance

File details

Details for the file google_cloud_firestore-0.29.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for google_cloud_firestore-0.29.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a71e36aa39771e51555c3cd9a6bd86f0cc016cef203edda9b0e8fc25f2090211
MD5 6235d1566c16ec6a152b9bfa4e256eca
BLAKE2b-256 4797e0ad4b86ae49ec43f74480a3337952010a08260ed0218d1075b5b0e6f37f

See more details on using hashes here.

Provenance

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