This repository was archived by the owner on Apr 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy path__init__.py
More file actions
63 lines (53 loc) · 1.97 KB
/
__init__.py
File metadata and controls
63 lines (53 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""BigQuery DataFrames provides a DataFrame API scaled by the BigQuery engine."""
import warnings
# Suppress Python version support warnings from google-cloud libraries.
# These are particularly noisy in Colab which still uses Python 3.10.
warnings.filterwarnings(
"ignore",
category=FutureWarning,
message=".*Google will stop supporting.*Python.*",
)
from bigframes._config import option_context, options # noqa: E402
from bigframes._config.bigquery_options import BigQueryOptions # noqa: E402
from bigframes.core.global_session import ( # noqa: E402
close_session,
get_global_session,
)
import bigframes.enums as enums # noqa: E402
import bigframes.exceptions as exceptions # noqa: E402
from bigframes.session import connect, Session # noqa: E402
from bigframes.version import __version__ # noqa: E402
_MAGIC_NAMES = ["bqsql"]
def load_ipython_extension(ipython):
"""Called by IPython when this module is loaded as an IPython extension."""
# Requires IPython to be installed for import to succeed
from bigframes._magics import _cell_magic
for magic_name in _MAGIC_NAMES:
ipython.register_magic_function(
_cell_magic, magic_kind="cell", magic_name=magic_name
)
__all__ = [
"options",
"BigQueryOptions",
"get_global_session",
"close_session",
"enums",
"exceptions",
"connect",
"Session",
"__version__",
"option_context",
]