This file includes instructions for installing and using the ebq command line tool or client.
- If you already have Python and setuptools installed, skip to step 2.
- Install Python 2.7 or newer.
- Your Linux distribution should likely already have packages for Python.
- Otherwise see python downloads.
- Install setuptools
- setuptools
- The linked page describes how to download and install setuptools for your Python distribution.
- Install ebq. There are two methods,
easy_installand by manual installation:
- easy_install
- To install via easy_install, just type:
easy_install encrypted_bigquery
- To install via easy_install, just type:
- Manual installation
- Get encrypted_bigquery-x.y.z archive from pypi and extract contents:
tar -zxvf encrypted_bigquery-x.y.tar.gz - Change to the ebq directory:
cd encrypted_bigquery-x.y.tar.gz - Change to the src dir:
cd src - Run the install script:
python setup.py install [--install-scripts=target_installation_directory]
- Get encrypted_bigquery-x.y.z archive from pypi and extract contents:
From the src/ directory under the location where the tarball
was extracted, run all tests before continuing:
$ python run_all_tests.py
Make sure that you only see messages like OK, Ran xx tests in xx seconds and
no failures before continuing.
- Try out ebq by displaying a list of available commands:
$ target_installation_directory/ebq
- To display help information about a particular command:
$ target_installation_directory/ebq help command_name
This is done in the same way as with the bq tool.
See the tutorial for more information.