|
| 1 | +# Copyright 2017 Google Inc. All rights reserved. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +"""Python idiomatic client for Google Cloud Firestore.""" |
| 16 | + |
| 17 | +from pkg_resources import get_distribution |
| 18 | +__version__ = get_distribution('google-cloud-firestore').version |
| 19 | + |
| 20 | +from google.cloud.firestore_v1beta1 import types |
| 21 | +from google.cloud.firestore_v1beta1._helpers import GeoPoint |
| 22 | +from google.cloud.firestore_v1beta1._helpers import ReadAfterWriteError |
| 23 | +from google.cloud.firestore_v1beta1.batch import WriteBatch |
| 24 | +from google.cloud.firestore_v1beta1.client import Client |
| 25 | +from google.cloud.firestore_v1beta1.client import CreateIfMissingOption |
| 26 | +from google.cloud.firestore_v1beta1.client import ExistsOption |
| 27 | +from google.cloud.firestore_v1beta1.client import LastUpdateOption |
| 28 | +from google.cloud.firestore_v1beta1.client import WriteOption |
| 29 | +from google.cloud.firestore_v1beta1.collection import CollectionReference |
| 30 | +from google.cloud.firestore_v1beta1.constants import DELETE_FIELD |
| 31 | +from google.cloud.firestore_v1beta1.constants import SERVER_TIMESTAMP |
| 32 | +from google.cloud.firestore_v1beta1.document import DocumentReference |
| 33 | +from google.cloud.firestore_v1beta1.document import DocumentSnapshot |
| 34 | +from google.cloud.firestore_v1beta1.gapic import enums |
| 35 | +from google.cloud.firestore_v1beta1.gapic import firestore_admin_client |
| 36 | +from google.cloud.firestore_v1beta1.query import Query |
| 37 | +from google.cloud.firestore_v1beta1.transaction import Transaction |
| 38 | +from google.cloud.firestore_v1beta1.transaction import transactional |
| 39 | + |
| 40 | + |
| 41 | +AdminClient = firestore_admin_client.FirestoreAdminClient |
| 42 | + |
| 43 | + |
| 44 | +__all__ = [ |
| 45 | + '__version__', |
| 46 | + 'AdminClient', |
| 47 | + 'Client', |
| 48 | + 'CollectionReference', |
| 49 | + 'CreateIfMissingOption', |
| 50 | + 'DELETE_FIELD', |
| 51 | + 'DocumentReference', |
| 52 | + 'DocumentSnapshot', |
| 53 | + 'enums', |
| 54 | + 'ExistsOption', |
| 55 | + 'GeoPoint', |
| 56 | + 'LastUpdateOption', |
| 57 | + 'Query', |
| 58 | + 'ReadAfterWriteError', |
| 59 | + 'SERVER_TIMESTAMP', |
| 60 | + 'Transaction', |
| 61 | + 'transactional', |
| 62 | + 'types', |
| 63 | + 'WriteBatch', |
| 64 | + 'WriteOption', |
| 65 | +] |
0 commit comments