Skip to main content

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 hashes)

Uploaded Source

Built Distribution

nlbq-0.1.7-py3-none-any.whl (12.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page