Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bq-meta

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bq-meta

BigQuery metadata

  • 0.9.0
  • PyPI
  • Socket score

Maintainers
1

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

  1. Install as python package using pypi, this will create executable in /usr/local/bin/bq-meta

    pip install bq-meta
    
  2. Initialize bq-meta

    bq-meta --init
    
  3. 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

cli

Table metadata

To view table metadata, press o key and select through project, dataset, table.

metadata

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

schema

Open in console

You can open table in console.cloud.google.com by pressing c key

browser

Search history

Every viewed table is saved to the history. To search through history, press h key

history

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc