BQ REPL
REPL for BigQuery
Commands
Commands:
\?, \h, \help Print this stuff
\d, \datasets [PROJECT] List datasets in current project (or another project)
\p, \projects [PROJECT] List projects
Will switch projects when provided as parameter
\t, \tables [PROJECT.]DATASET List tables in a dataset
\c, \columns [PROJECT.]DATASET.TABLE List columns in a table
\x, \expanded Toggle expanded view on/off.
Shorthand for \set expanded BOOL
\clear, clear Clear screen
Options:
\set VARIABLE VALUE
Available options:
- project PROJECT_ID Set current project to PROJECT_ID
- maxrows INT Maximum rows displayed (default=100)
- maxwidth INT Maximum column width in non-expanded view (default=50)
- max_expanded_width INT Maximum column width in expanded view (default=100)
- expanded BOOL Expanded view (default=False)
- format_integer STR Integer display format (default=",d")
- format_float STR Float display format (default=",.4f")
Command line arguments
$ bqrepl --help
Usage: bqrepl [OPTIONS]
REPL for BigQuery
Options:
-c, --credentials-file TEXT path to credentials .json
-p, --project TEXT Use specific project instead of inferring from
credentials
--help Show this message and exit.
Installation
$ pip install bqrepl
Dependencies
Python dependencies:
- google-cloud-bigquery
- pytz
- click
- prompt-toolkit
- logzero
- pydata-google-auth
- requests
Tasks
Stuff to implement, in no particular order: