Natural language to BigQuery
Project description
nlbq
Natural language interface to BigQuery
Google credentials
The Python BigQuery library expects the environment variable GOOGLE_APPLICATION_CREDENTIALS
, which should point to a JSON file containing the credentials of a Google service account. You can create a service account and download its credentials from the Google Cloud Console. Then set the environment variable:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your/google-service-account.json
Creating a demo environment
mkdir demo # Git will ignore this directory
cd demo
python3 -m venv venv
source venv/bin/activate
pip install -e ../ # Install the local package in editable mode
nlbq init # generates prompt.txt, Dockerfile and index.html
# make changes then
pip uninstall nlbq --yes; pip install -e ../
You can initialise with prepopulated BigQuery dataset table schema information with
nlbq init --table dataset.table_id
Usage
nlbq --help
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nlbq-0.1.7.tar.gz
(11.8 kB
view details)
Built Distribution
nlbq-0.1.7-py3-none-any.whl
(12.0 kB
view details)
File details
Details for the file nlbq-0.1.7.tar.gz
.
File metadata
- Download URL: nlbq-0.1.7.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bb891454883405c67476b14e20120fc00b84f19be463a2557be53805aae7521 |
|
MD5 | c406f6fdb8bca605f172995feb80856d |
|
BLAKE2b-256 | 43aea84e09caabe6639c5c1a4df749389663c1a52d9bbd8ef4770fd5a7b2fdf9 |
File details
Details for the file nlbq-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: nlbq-0.1.7-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fc427949b4bcdfe62fc98cb7ea11c3c5650432ca0da4ed52bcfe0e27e3d2e32 |
|
MD5 | eafd6e5988d5c12c9dd5fb2a705ef580 |
|
BLAKE2b-256 | 247d88bf5e2741dae486835cff6f08703e8e54c35a929d757ec458637f6ffc01 |