atoti-client-directquery-bigquery 0.9.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,24 @@
1
+ Metadata-Version: 2.1
2
+ Name: atoti-client-directquery-bigquery
3
+ Version: 0.9.0
4
+ Summary: Code to use DirectQuery on Google BigQuery
5
+ Home-page: https://www.atoti.io
6
+ License: Proprietary
7
+ Keywords: atoti,cloud,database,directquery,google,bigquery
8
+ Author: ActiveViam
9
+ Author-email: dev@atoti.io
10
+ Requires-Python: >=3.10
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: License :: Free To Use But Restricted
13
+ Classifier: License :: Other/Proprietary License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Typing :: Typed
20
+ Requires-Dist: atoti-client (==0.9.0)
21
+ Requires-Dist: pydantic (>=2.6.0)
22
+ Requires-Dist: typing-extensions (>=4.6.1)
23
+ Project-URL: Bug Tracker, https://github.com/atoti/atoti/issues
24
+ Project-URL: Documentation, https://docs.atoti.io/0.9.0/api/atoti_directquery_bigquery.html
@@ -0,0 +1,7 @@
1
+ atoti_directquery_bigquery/__init__.py,sha256=ocje-W2dSYjiYIM32Cl83WcY58azqw7vlDWdiPCr78o,212
2
+ atoti_directquery_bigquery/connection_config.py,sha256=-zetbApqhS3XXISfcUuA7tkYfYmXH8AxOfpCpZvxxqU,1966
3
+ atoti_directquery_bigquery/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ atoti_directquery_bigquery/table_config.py,sha256=7CadjwF-k-7tHYTagkWNDNE4yWF0gkIy94zPxphHZsc,525
5
+ atoti_client_directquery_bigquery-0.9.0.dist-info/METADATA,sha256=bM7nej76xmgoXw3JZdVB4jWswNMfRBftPUT0JbTcnL8,1000
6
+ atoti_client_directquery_bigquery-0.9.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
7
+ atoti_client_directquery_bigquery-0.9.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: poetry-core 1.8.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,4 @@
1
+ """Code to use DirectQuery on `Google BigQuery <https://cloud.google.com/bigquery>`__."""
2
+
3
+ from .connection_config import ConnectionConfig as ConnectionConfig
4
+ from .table_config import TableConfig as TableConfig
@@ -0,0 +1,61 @@
1
+ from pathlib import Path
2
+ from typing import final
3
+
4
+ from atoti._pydantic import PYDANTIC_CONFIG as _PYDANTIC_CONFIG
5
+ from atoti.directquery._external_database_connection_config import (
6
+ AutoMultiColumnArrayConversionConfig,
7
+ CacheConfig,
8
+ ExternalDatabaseConnectionConfig,
9
+ TimeTravelConfig,
10
+ )
11
+ from pydantic.dataclasses import dataclass
12
+ from typing_extensions import override
13
+
14
+
15
+ @final
16
+ @dataclass(config=_PYDANTIC_CONFIG, frozen=True, kw_only=True)
17
+ class ConnectionConfig(
18
+ ExternalDatabaseConnectionConfig,
19
+ AutoMultiColumnArrayConversionConfig,
20
+ CacheConfig,
21
+ TimeTravelConfig,
22
+ ):
23
+ """Config to connect to a BigQuery database.
24
+
25
+ Example:
26
+ >>> from atoti_directquery_bigquery import ConnectionConfig
27
+ >>> connection_config = ConnectionConfig()
28
+ >>> external_database = session.connect_to_external_database(connection_config)
29
+
30
+ """
31
+
32
+ credentials: Path | None = None
33
+ """The path to the `BigQuery credentials file <https://cloud.google.com/docs/authentication/getting-started#setting_the_environment_variable>`__.
34
+
35
+ If ``None``, the `application default credentials <https://cloud.google.com/java/docs/reference/google-auth-library/latest/com.google.auth.oauth2.GoogleCredentials#com_google_auth_oauth2_GoogleCredentials_getApplicationDefault__>`__ will be used.
36
+ """
37
+
38
+ @property
39
+ @override
40
+ def _database_key(self) -> str:
41
+ return "BIGQUERY"
42
+
43
+ @property
44
+ @override
45
+ def _options(self) -> dict[str, str]:
46
+ return {
47
+ **super()._options,
48
+ **self._auto_multi_array_conversion_options,
49
+ **self._cache_options,
50
+ **self._time_travel_options,
51
+ }
52
+
53
+ @property
54
+ @override
55
+ def _password(self) -> str | None:
56
+ return None if self.credentials is None else str(self.credentials)
57
+
58
+ @property
59
+ @override
60
+ def _url(self) -> str | None:
61
+ return None if self.credentials is None else str(self.credentials)
File without changes
@@ -0,0 +1,19 @@
1
+ from typing import final
2
+
3
+ from atoti._pydantic import PYDANTIC_CONFIG as _PYDANTIC_CONFIG
4
+ from atoti.directquery._external_table_config import (
5
+ ArrayConversionConfig,
6
+ ExternalTableConfig,
7
+ )
8
+ from pydantic.dataclasses import dataclass
9
+
10
+ from .connection_config import ConnectionConfig
11
+
12
+
13
+ @final
14
+ @dataclass(config=_PYDANTIC_CONFIG, frozen=True, kw_only=True)
15
+ class TableConfig(
16
+ ExternalTableConfig[ConnectionConfig],
17
+ ArrayConversionConfig,
18
+ ):
19
+ """Config passed to :meth:`~atoti.Session.add_external_table`."""