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.5.tar.gz
(11.9 kB
view details)
Built Distribution
nlbq-0.1.5-py3-none-any.whl
(12.1 kB
view details)
File details
Details for the file nlbq-0.1.5.tar.gz
.
File metadata
- Download URL: nlbq-0.1.5.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7f536a3e6930dae90122772b5fda836fab6392c3045b1c9fcbda53ce735ac61 |
|
MD5 | a791ead19eb9ba7a57c3ebb220e909b1 |
|
BLAKE2b-256 | fa05fd0044b5f340ad92e852c8dc0aaa5c830307fe315e6aa8abc5b012cb9193 |
File details
Details for the file nlbq-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: nlbq-0.1.5-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2b016cb2e82591fa4543a6654e97853e2ced5fb4eedd0e7bc06f73bd0b15052 |
|
MD5 | e5c34dbe34884830ff0d2c248976d519 |
|
BLAKE2b-256 | 1a16b4986e726b12a5447879a9f87cb56dc4b0dd7f6e801c0f967aa23c3fdb70 |