Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
71961e7
feat: initial copy from google-cloud-bigquery
tswast Jan 19, 2024
2c42c78
chore: grant api-bigquery and api-bigquery-dataframe teams write acce…
tswast Apr 10, 2024
49cee9b
chore: copy `%%bigquery` magics tests from google-cloud-bigquery (#8)
tswast Apr 11, 2024
480db57
chore: synchronize with Python templates (#6)
tswast Apr 11, 2024
50eb12a
chore(python): bump idna from 3.4 to 3.7 in .kokoro (#21)
gcf-owl-bot[bot] Apr 12, 2024
aba9bc2
chore: add CONTRIBUTING.md (#5)
google-cloud-policy-bot[bot] Apr 12, 2024
f1f93c6
docs: reset the changelog for the new package (#22)
tswast Apr 12, 2024
4672045
chore: update required checks (#19)
chelsea-lin Apr 12, 2024
92936d6
chore: add bigquery-magics samples (#9)
ashleyxuu Apr 15, 2024
99dfd6f
docs: clean up docs and let the nox pass (#24)
ashleyxuu Apr 25, 2024
3c3edf8
chore(main): release 0.1.0 (#18)
release-please[bot] Apr 29, 2024
a382e81
chore: add samples tests as required checks (#25)
chelsea-lin Apr 30, 2024
b1c69ba
docs: update the IPython Magics docs (#27)
ashleyxuu May 9, 2024
44d0f7e
docs: correct links to project pages in README (#33)
tswast Jun 27, 2024
952c0e8
chore: update templated files (#36)
gcf-owl-bot[bot] Jul 3, 2024
cba6780
chore(python): Use latest python runtime in prerelease_deps session (…
gcf-owl-bot[bot] Jul 5, 2024
0cee33b
chore(python): use python 3.10 for docs build (#41)
gcf-owl-bot[bot] Jul 9, 2024
85f00ad
chore(deps): update all dependencies (#38)
renovate-bot Jul 9, 2024
785c044
chore: include bigquery-magics version number in the user agent (#45)
sycai Aug 21, 2024
68aa3e7
chore: make bq-magics depend on ipykernel 5.5.6 (#46)
sycai Aug 22, 2024
5a99cc7
chore(python): fix docs build (#43)
gcf-owl-bot[bot] Aug 22, 2024
f047163
chore(main): release 0.1.1 (#29)
release-please[bot] Aug 22, 2024
bf94afe
chore(deps): update dependency pytest to v8.3.2 (#42)
renovate-bot Aug 26, 2024
c8e8644
feat: depend on pydata-google-auth to fetch credentials (#49)
sycai Aug 27, 2024
3e8ab78
chore(main): release 0.2.0 (#50)
release-please[bot] Aug 28, 2024
6c381a1
refactor: use dataclass for Context to reduce boilerplate (#53)
sycai Sep 13, 2024
4ceddc4
refactor: break down _cell_magic() into several helper functions to i…
sycai Sep 17, 2024
a3d31aa
build(python): release script update (#55)
gcf-owl-bot[bot] Sep 17, 2024
1bb68b4
chore(deps): update all dependencies (#56)
renovate-bot Sep 17, 2024
51cc27e
feat: add support for BigQuery DataFrames. Set `context.engine` to 'b…
sycai Sep 20, 2024
ab2649d
chore(main): release 0.3.0 (#59)
release-please[bot] Sep 23, 2024
732adf7
feat: add support for overriding `context.engine` by magic argument (…
sycai Sep 24, 2024
404979e
chore(main): release 0.4.0 (#61)
release-please[bot] Sep 24, 2024
edd80c7
chore(python): update dependencies in .kokoro/docker/docs (#65)
gcf-owl-bot[bot] Nov 15, 2024
fb8d12c
feat: add `bigquery_magics.context.default_variable` option (#70)
tswast Dec 17, 2024
7c38d69
feat: add `%%bqsql` as an alias to the `%%bigquery` magic (#72)
tswast Dec 17, 2024
64f68ce
chore(main): release 0.5.0 (#71)
release-please[bot] Dec 18, 2024
71078fb
chore(python): update dependencies in .kokoro/docker/docs (#69)
gcf-owl-bot[bot] Dec 18, 2024
1b272e7
chore: require system 3.13 instead of 3.12 (#73)
tswast Dec 18, 2024
8376768
chore(python): Update the python version in docs presubmit to use 3.1…
gcf-owl-bot[bot] Jan 3, 2025
4f7b4ac
feat: Add an is_registered global value to indicate whether the exten…
sycai Jan 13, 2025
60aa712
chore(python): fix typo in README (#92)
gcf-owl-bot[bot] Feb 6, 2025
3cbaf76
feat: Add '--use-geodataframe' argument to return a GeoDataFrame (#91)
bijanvakili Feb 12, 2025
cf93f89
chore(main): release 0.6.0 (#85)
release-please[bot] Feb 13, 2025
be0b5a9
chore(python): conditionally load credentials in .kokoro/build.sh (#95)
gcf-owl-bot[bot] Feb 25, 2025
54f6dd8
fix: resolve issue where pre-release versions of dependencies are ins…
parthea Mar 6, 2025
60e1d57
chore: remove unused files (#96)
parthea Mar 10, 2025
477af33
feat: support visualization of graph queries by adding the --graph ar…
ericfe-google Mar 11, 2025
005d9a3
chore(main): release 0.7.0 (#99)
release-please[bot] Mar 11, 2025
dcdfeb5
feat: Support multiple columns in graph visualization (#100)
ericfe-google Mar 12, 2025
d304e43
feat: Fix graph visualization to work with latest spanner-graph-noteb…
ericfe-google Mar 13, 2025
0e427e5
chore(main): release 0.8.0 (#101)
release-please[bot] Mar 13, 2025
79d83de
chore: Add dependencies to prerelease validation (#104)
ericfe-google Mar 13, 2025
283b550
fix: remove setup.cfg configuration for creating universal wheels (#106)
parthea Mar 14, 2025
5618abc
deps: Bump minimum required version of spanner-graph-notebook to 1.1.…
ericfe-google Mar 21, 2025
8a0a8e8
chore(main): release 0.8.1 (#107)
release-please[bot] Mar 24, 2025
5b80bfc
feat: add --pyformat option to use Python string formatting (#111)
tswast Mar 26, 2025
8f133f5
chore(main): release 0.9.0 (#112)
release-please[bot] Mar 26, 2025
1c61fd9
feat: instrument vscode, jupyter and 3p plugin usage (#115)
shobsi May 16, 2025
f6aeadd
chore(main): release 0.10.0 (#116)
release-please[bot] May 19, 2025
8c3ec7e
deps: move spanner-graph-notebook back to version 1.1.6 (#126)
ericfe-google Jul 7, 2025
521dcfc
chore(main): release 0.10.1 (#128)
release-please[bot] Jul 7, 2025
da53b1a
deps: drop support for Python 3.7 and 3.8 (#127)
tswast Jul 10, 2025
a22db49
deps: make graph features compatible with `spanner-graph-notebook >= …
ericfe-google Aug 4, 2025
409e8f6
chore(main): release 0.10.2 (#129)
release-please[bot] Aug 4, 2025
b55d8e7
fix: convert property fields in graph visualization to strings before…
ericfe-google Aug 21, 2025
6f6403b
chore(main): release 0.10.3 (#134)
release-please[bot] Aug 21, 2025
7f5b4eb
chore(python): Add Python 3.14 to python post processor image (#135)
gcf-owl-bot[bot] Oct 23, 2025
7605ea2
chore: fix google-cloud-bigquery-storage prerelease location (#142)
tswast Oct 29, 2025
8411910
chore: add missing kokoro configs following up to 3.7 and 3.8 drop (#…
tswast Oct 30, 2025
c7c1b80
chore(python): remove configure_previous_major_version_branches (#143)
gcf-owl-bot[bot] Oct 30, 2025
83ace6a
chore(librarian): onboard bigquery-magics to librarian (#146)
parthea Nov 4, 2025
579b5ca
chore(librarian): move pypi history text in changelog (#147)
parthea Nov 4, 2025
2e94122
chore(librarian): update image sha and clean up unused files (#149)
parthea Nov 10, 2025
5d4ea52
chore(librarian): update image sha (#152)
ohmayr Nov 11, 2025
5402d17
Merge remote-tracking branch 'remote.googleapis/python-bigquery-magic…
parthea Nov 24, 2025
1507cf1
Trigger owlbot post-processor
parthea Nov 24, 2025
bbe4824
build: bigquery-magics migration: adjust owlbot-related files
parthea Nov 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
39 changes: 39 additions & 0 deletions packages/bigquery-magics/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
#
# Copyright 2024 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
#
# https://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.

# Generated by synthtool. DO NOT EDIT!
[run]
branch = True
omit =
google/__init__.py
google/cloud/__init__.py

[report]
fail_under = 100
show_missing = True
exclude_lines =
# Re-enable the standard pragma
pragma: NO COVER
# Ignore debug-only repr
def __repr__
# Ignore abstract methods
raise NotImplementedError
omit =
*/gapic/*.py
*/proto/*.py
*/core/*.py
*/site-packages/*.py
google/cloud/__init__.py
33 changes: 33 additions & 0 deletions packages/bigquery-magics/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
#
# Copyright 2024 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
#
# https://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.

# Generated by synthtool. DO NOT EDIT!
[flake8]
ignore = E203, E231, E266, E501, W503
exclude =
# Exclude generated code.
**/proto/**
**/gapic/**
**/services/**
**/types/**
*_pb2.py

# Standard linting exemptions.
**/.nox/**
__pycache__,
.git,
*.pyc,
conf.py
64 changes: 64 additions & 0 deletions packages/bigquery-magics/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
*.py[cod]
*.sw[op]

# C extensions
*.so

# Packages
*.egg
*.egg-info
dist
build
eggs
.eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64
__pycache__

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.nox
.cache
.pytest_cache


# Mac
.DS_Store

# JetBrains
.idea

# VS Code
.vscode

# emacs
*~

# Built documentation
docs/_build
bigquery/docs/generated
docs.metadata

# Virtual environment
env/
venv/

# Test logs
coverage.xml
*sponge_log.xml

# System test environment variables.
system_tests/local_test_setup

# Make sure a generated file isn't accidentally committed.
pylintrc
pylintrc.test
10 changes: 10 additions & 0 deletions packages/bigquery-magics/.librarian/state.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:c8612d3fffb3f6a32353b2d1abd16b61e87811866f7ec9d65b59b02eb452a620
libraries:
- id: bigquery-magics
version: 0.10.3
apis: []
source_roots:
- .
preserve_regex: []
remove_regex: []
tag_format: v{version}
31 changes: 31 additions & 0 deletions packages/bigquery-magics/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2024 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.
#
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
16 changes: 16 additions & 0 deletions packages/bigquery-magics/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "bigquery-magics",
"name_pretty": "Google BigQuery connector for Jupyter and IPython",
"product_documentation": "https://cloud.google.com/bigquery",
"client_documentation": "https://googleapis.dev/python/bigquery-magics/latest/",
"issue_tracker": "https://github.com/googleapis/python-bigquery-magics/issues",
"release_level": "stable",
"language": "python",
"library_type": "INTEGRATION",
"repo": "googleapis/python-bigquery-magics",
"distribution_name": "bigquery-magics",
"api_id": "bigquery.googleapis.com",
"requires_billing": false,
"default_version": "",
"codeowner_team": "@googleapis/api-bigquery @googleapis/api-bigquery-dataframe"
}
136 changes: 136 additions & 0 deletions packages/bigquery-magics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# Changelog

[PyPI History][1]

[1]: https://pypi.org/project/bigquery-magics/#history

## [0.10.3](https://github.com/googleapis/python-bigquery-magics/compare/v0.10.2...v0.10.3) (2025-08-21)


### Bug Fixes

* Convert property fields in graph visualization to strings before sending them to JavaScript ([#133](https://github.com/googleapis/python-bigquery-magics/issues/133)) ([f869a61](https://github.com/googleapis/python-bigquery-magics/commit/f869a61369801f1e6fee56d6dcb51b647d16df95))

## [0.10.2](https://github.com/googleapis/python-bigquery-magics/compare/v0.10.1...v0.10.2) (2025-08-04)


### Dependencies

* Drop support for Python 3.7 and 3.8 ([#127](https://github.com/googleapis/python-bigquery-magics/issues/127)) ([2a8e9de](https://github.com/googleapis/python-bigquery-magics/commit/2a8e9debe32f4f406e41072ee56bb954656af3de))
* Make graph features compatible with `spanner-graph-notebook >= 1.1.7` ([#131](https://github.com/googleapis/python-bigquery-magics/issues/131)) ([f6f6d70](https://github.com/googleapis/python-bigquery-magics/commit/f6f6d70f575113e192107dce13a0f93b853b0ad3))

## [0.10.1](https://github.com/googleapis/python-bigquery-magics/compare/v0.10.0...v0.10.1) (2025-07-07)


### Dependencies

* Move spanner-graph-notebook back to version 1.1.6 ([#126](https://github.com/googleapis/python-bigquery-magics/issues/126)) ([17ee695](https://github.com/googleapis/python-bigquery-magics/commit/17ee6956c8fec740440836609a9106e900b63074))

## [0.10.0](https://github.com/googleapis/python-bigquery-magics/compare/v0.9.0...v0.10.0) (2025-05-16)


### Features

* Instrument vscode, jupyter and 3p plugin usage ([#115](https://github.com/googleapis/python-bigquery-magics/issues/115)) ([0dd163f](https://github.com/googleapis/python-bigquery-magics/commit/0dd163f3e5a2627e21b7d2d91ad1eefcd662b7a0))

## [0.9.0](https://github.com/googleapis/python-bigquery-magics/compare/v0.8.1...v0.9.0) (2025-03-26)


### Features

* Add --pyformat option to use Python string formatting ([#111](https://github.com/googleapis/python-bigquery-magics/issues/111)) ([bd15a5b](https://github.com/googleapis/python-bigquery-magics/commit/bd15a5b941d14212c6bfaad84b0bc4cfd3220a0f))

## [0.8.1](https://github.com/googleapis/python-bigquery-magics/compare/v0.8.0...v0.8.1) (2025-03-21)


### Bug Fixes

* Remove setup.cfg configuration for creating universal wheels ([#106](https://github.com/googleapis/python-bigquery-magics/issues/106)) ([fe3ec29](https://github.com/googleapis/python-bigquery-magics/commit/fe3ec29fefb7ca9195484d13f2bf15c65cf20614))


### Dependencies

* Bump minimum required version of spanner-graph-notebook to 1.1.5 ([#110](https://github.com/googleapis/python-bigquery-magics/issues/110)) ([756ac0d](https://github.com/googleapis/python-bigquery-magics/commit/756ac0d0910a0622aee88ed558886456311976e9))

## [0.8.0](https://github.com/googleapis/python-bigquery-magics/compare/v0.7.0...v0.8.0) (2025-03-13)


### Features

* Fix graph visualization to work with latest spanner-graph-notebook code; also, allow visualization when only some columns are json. ([#102](https://github.com/googleapis/python-bigquery-magics/issues/102)) ([c33297c](https://github.com/googleapis/python-bigquery-magics/commit/c33297cf2a1db9a0bd2e8c078be1e06239122459))
* Support multiple columns in graph visualization ([#100](https://github.com/googleapis/python-bigquery-magics/issues/100)) ([dbb6442](https://github.com/googleapis/python-bigquery-magics/commit/dbb64426dd617697785bccf15d98c32f8217c33e))

## [0.7.0](https://github.com/googleapis/python-bigquery-magics/compare/v0.6.0...v0.7.0) (2025-03-11)


### Features

* Support visualization of graph queries by adding the --graph argument. ([#94](https://github.com/googleapis/python-bigquery-magics/issues/94)) ([3c054f5](https://github.com/googleapis/python-bigquery-magics/commit/3c054f5e27b5097c18899ff732fccebdf36b47e6))


### Bug Fixes

* Resolve issue where pre-release versions of dependencies are installed ([#97](https://github.com/googleapis/python-bigquery-magics/issues/97)) ([79c59e7](https://github.com/googleapis/python-bigquery-magics/commit/79c59e7b8ceba6f2be1fbe16d12b69b5a0b4d774))

## [0.6.0](https://github.com/googleapis/python-bigquery-magics/compare/v0.5.0...v0.6.0) (2025-02-12)


### Features

* Add '--use-geodataframe' argument to return a GeoDataFrame ([#91](https://github.com/googleapis/python-bigquery-magics/issues/91)) ([fc04f34](https://github.com/googleapis/python-bigquery-magics/commit/fc04f343d0e9c5c6b11e784d698c28865c2909cd))
* Add an is_registered global value to indicate whether the extension has been loaded ([#83](https://github.com/googleapis/python-bigquery-magics/issues/83)) ([0bc4473](https://github.com/googleapis/python-bigquery-magics/commit/0bc4473d550c612241ea1428f7538938257b2656))

## [0.5.0](https://github.com/googleapis/python-bigquery-magics/compare/v0.4.0...v0.5.0) (2024-12-17)


### Features

* Add `%%bqsql` as an alias to the `%%bigquery` magic ([#72](https://github.com/googleapis/python-bigquery-magics/issues/72)) ([03fe1d5](https://github.com/googleapis/python-bigquery-magics/commit/03fe1d544ef22865c07c680873f980c64bbc7abc))
* Add `bigquery_magics.context.default_variable` option ([#70](https://github.com/googleapis/python-bigquery-magics/issues/70)) ([72ed882](https://github.com/googleapis/python-bigquery-magics/commit/72ed882c9359718a702bab2bca76933548650064))

## [0.4.0](https://github.com/googleapis/python-bigquery-magics/compare/v0.3.0...v0.4.0) (2024-09-24)


### Features

* Add support for overriding `context.engine` by magic argument ([#60](https://github.com/googleapis/python-bigquery-magics/issues/60)) ([ff57f14](https://github.com/googleapis/python-bigquery-magics/commit/ff57f14aa43c60ffc02b8966da2405c31ea42c64))

## [0.3.0](https://github.com/googleapis/python-bigquery-magics/compare/v0.2.0...v0.3.0) (2024-09-20)


### Features

* Add support for BigQuery DataFrames. Set `context.engine` to 'bigframes' to support query results larger than 10 GB ([#58](https://github.com/googleapis/python-bigquery-magics/issues/58)) ([90ba05f](https://github.com/googleapis/python-bigquery-magics/commit/90ba05f3d918979788e01b0cd3201ac8f01741a9))

## [0.2.0](https://github.com/googleapis/python-bigquery-magics/compare/v0.1.1...v0.2.0) (2024-08-27)


### Features

* Depend on pydata-google-auth to fetch credentials ([#49](https://github.com/googleapis/python-bigquery-magics/issues/49)) ([8db23fc](https://github.com/googleapis/python-bigquery-magics/commit/8db23fc60624baae9c0dffd500d8856cb6e92f42))

## [0.1.1](https://github.com/googleapis/python-bigquery-magics/compare/v0.1.0...v0.1.1) (2024-08-22)


### Dependencies

* Depend on ipykernel 5.5.6+ instead of 6.0+ ([83d8fac](https://github.com/googleapis/python-bigquery-magics/commit/83d8facf6d04752c1f8c5e25575a3975c9b30e1c))


### Documentation

* Correct links to project pages in README ([#33](https://github.com/googleapis/python-bigquery-magics/issues/33)) ([ace5020](https://github.com/googleapis/python-bigquery-magics/commit/ace5020ff8ae374145579e75cb996150680f2bde))
* Update the IPython Magics docs ([#27](https://github.com/googleapis/python-bigquery-magics/issues/27)) ([62e88b3](https://github.com/googleapis/python-bigquery-magics/commit/62e88b3f4a595ecdc4a00d661b956c5d50fd6c35))

## 0.1.0 (2024-04-25)


### Features

* Initial copy from google-cloud-bigquery ([4a69d26](https://github.com/googleapis/python-bigquery-magics/commit/4a69d26ae3e5e7c659c7b79ac935393abb4146e3))


### Documentation

* Clean up docs and let the nox pass ([#24](https://github.com/googleapis/python-bigquery-magics/issues/24)) ([275712f](https://github.com/googleapis/python-bigquery-magics/commit/275712f4e4b647cda2d253e1f6b7a2fa093ee7c1))
* Reset the changelog for the new package ([#22](https://github.com/googleapis/python-bigquery-magics/issues/22)) ([f7d9c14](https://github.com/googleapis/python-bigquery-magics/commit/f7d9c1445feac32e468a3e06ca55c9474a1ae548))
Loading
Loading