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.0.tar.gz
(11.8 kB
view details)
Built Distribution
nlbq-0.1.0-py3-none-any.whl
(11.8 kB
view details)
File details
Details for the file nlbq-0.1.0.tar.gz
.
File metadata
- Download URL: nlbq-0.1.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab8a2c1571361cb792faadf483a6c8a12ddd272e8eb7f803cce9e49a78b25152 |
|
MD5 | 025add5e617e4dd576603749ccf31654 |
|
BLAKE2b-256 | f4e9b7652a1846aa0d2d7b9190a59532591b2fd23f44c8de6a024b5d97e030a6 |
File details
Details for the file nlbq-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: nlbq-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd4b46c30734b906c8d99186d319b7c58ae8185c5c6f5d3abf2592dd94b8c64e |
|
MD5 | bb7e060a84c272af86a230064d7f5584 |
|
BLAKE2b-256 | 9f8566b87e554ea5d8b407716f8e9617a8fc1bb27d305354d54378b89825177c |