Installation¶
Stable release¶
To install PBQ, run this command in your terminal:
$ pip install pbq
This is the preferred method to install PBQ, as it will always install the most recent stable release.
If you don’t have pip installed, this Python installation guide can guide you through the process.
From sources¶
The sources for PBQ can be downloaded from the Github repo.
You can either clone the public repository:
$ git clone git://github.com/amirdor/pbq
Or download the tarball:
$ curl -OJL https://github.com/amirdor/pbq/tarball/master
Once you have a copy of the source, you can install it with:
$ python setup.py install
Dependency¶
bq Command-Line Tool
Install bq cli – the package is running bq cli in the background
https://cloud.google.com/sdk/docs/
after installation on a new terminal write:
$ bq init
$ gcloud auth application-default login
if you don’t want to install bq cli you can run the package with the service account key
all you need to do it to define an environment variable like this:
$ export GOOGLE_APPLICATION_CREDENTIALS="/home/user/Downloads/[FILE_NAME].json"