|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# Copyright 2023 Google LLC |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | +# |
| 16 | +from google.cloud.bigtable import gapic_version as package_version |
| 17 | + |
| 18 | +from google.cloud.bigtable.data._async.client import BigtableDataClientAsync |
| 19 | +from google.cloud.bigtable.data._async.client import TableAsync |
| 20 | + |
| 21 | +from google.cloud.bigtable.data._async.mutations_batcher import MutationsBatcherAsync |
| 22 | + |
| 23 | +from google.cloud.bigtable.data.read_rows_query import ReadRowsQuery |
| 24 | +from google.cloud.bigtable.data.read_rows_query import RowRange |
| 25 | +from google.cloud.bigtable.data.row import Row |
| 26 | +from google.cloud.bigtable.data.row import Cell |
| 27 | + |
| 28 | +from google.cloud.bigtable.data.mutations import Mutation |
| 29 | +from google.cloud.bigtable.data.mutations import RowMutationEntry |
| 30 | +from google.cloud.bigtable.data.mutations import SetCell |
| 31 | +from google.cloud.bigtable.data.mutations import DeleteRangeFromColumn |
| 32 | +from google.cloud.bigtable.data.mutations import DeleteAllFromFamily |
| 33 | +from google.cloud.bigtable.data.mutations import DeleteAllFromRow |
| 34 | + |
| 35 | +from google.cloud.bigtable.data.exceptions import InvalidChunk |
| 36 | +from google.cloud.bigtable.data.exceptions import FailedMutationEntryError |
| 37 | +from google.cloud.bigtable.data.exceptions import FailedQueryShardError |
| 38 | + |
| 39 | +from google.cloud.bigtable.data.exceptions import RetryExceptionGroup |
| 40 | +from google.cloud.bigtable.data.exceptions import MutationsExceptionGroup |
| 41 | +from google.cloud.bigtable.data.exceptions import ShardedReadRowsExceptionGroup |
| 42 | + |
| 43 | +from google.cloud.bigtable.data._helpers import TABLE_DEFAULT |
| 44 | +from google.cloud.bigtable.data._helpers import RowKeySamples |
| 45 | +from google.cloud.bigtable.data._helpers import ShardedQuery |
| 46 | + |
| 47 | + |
| 48 | +__version__: str = package_version.__version__ |
| 49 | + |
| 50 | +__all__ = ( |
| 51 | + "BigtableDataClientAsync", |
| 52 | + "TableAsync", |
| 53 | + "RowKeySamples", |
| 54 | + "ReadRowsQuery", |
| 55 | + "RowRange", |
| 56 | + "MutationsBatcherAsync", |
| 57 | + "Mutation", |
| 58 | + "RowMutationEntry", |
| 59 | + "SetCell", |
| 60 | + "DeleteRangeFromColumn", |
| 61 | + "DeleteAllFromFamily", |
| 62 | + "DeleteAllFromRow", |
| 63 | + "Row", |
| 64 | + "Cell", |
| 65 | + "InvalidChunk", |
| 66 | + "FailedMutationEntryError", |
| 67 | + "FailedQueryShardError", |
| 68 | + "RetryExceptionGroup", |
| 69 | + "MutationsExceptionGroup", |
| 70 | + "ShardedReadRowsExceptionGroup", |
| 71 | + "ShardedQuery", |
| 72 | + "TABLE_DEFAULT", |
| 73 | +) |
0 commit comments