BigQuery metadata
Project description
BigQuery metadata
"Inspect BigQuery metadata faster"
- Interactive CLI
- Quick search through available projects, datasets, tables
- View up to date table's metadata and it's schema
- Local history of searched tables
Requirements
-
python >= 3.10
-
fzf - https://github.com/junegunn/fzf (required)
brew install fzf
search through list of values (i.e. project, dataset, tables) is done using fzf
Installation
-
Install as python package using pypi, this will create executable in
/usr/local/bin/bq-meta
pip install bq-meta
-
Initialize
bq-meta
bq-meta --init
-
Follow on screen prompts
- create configuration
- login to the google account using browser (Account is separated from
gcloud
cli)
Run
To open interactive CLI, simply run
bq-meta
Table metadata
To view table metadata, press o
key and select through project, dataset, table.
Table metadata can be refreshed, press r
to fetch fresh metadata
It's also possible to run bq-meta
directly with FULL_TABLE_ID
bq-meta bigquery-public-data:github_repos.commits
Table schema
Once table metadata is opened, press s
key to view it's schema
Open in console
You can open table in console.cloud.google.com by pressing c
key
Search history
Every viewed table is saved to the history. To search through history, press h
key
Other
Usage: python -m bq_meta [OPTIONS] [FULL_TABLE_ID]
BiqQuery metadata
Options:
--raw View raw response from the BigQuery for specific 'FULL_TABLE_ID'
--init Initialize 'bq-meta' configuration
--info Print info of currently used account
--fetch-projects Fetch available google projects
--version Show the version and exit.
--help Show this message and exit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bq-meta-0.9.0.tar.gz
.
File metadata
- Download URL: bq-meta-0.9.0.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 782123d88775c05ec1002495d7a0e33a3d503d17be5da4f691a3a8b43f1082f9 |
|
MD5 | e121174d7be98a2f100ff441fb973fe8 |
|
BLAKE2b-256 | 787a80cc7147dd2bbb32003dca35a51c96932a0a18ba72d4f187d2adebd13c6a |
File details
Details for the file bq_meta-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: bq_meta-0.9.0-py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9691f8ce7a0481f36f8da77b35abf80477bcce3e17ed903480c8fd206d119bb7 |
|
MD5 | 2761c7774dc3fe436e9bf6efb6c5e941 |
|
BLAKE2b-256 | 6d98be4b953635f13422fea7a55ce59d36e7abbc3a1b9e5d600827c6a1794a4b |