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.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

nlbq-0.1.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file nlbq-0.1.1.tar.gz.

File metadata

  • Download URL: nlbq-0.1.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for nlbq-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f92b0ddeafe8a3c7431671d2cb6029e9cef9d1e1fc7ef82bc88bb87260f653de
MD5 4501f60dbbc1061f9f6c117dc77176e6
BLAKE2b-256 15a4d337b21cf0a93e3002c54956b411ccb154af2334dc9e2be388d0defeb7d5

See more details on using hashes here.

File details

Details for the file nlbq-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nlbq-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for nlbq-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bf6f196a88570695b141009ce09df5aa142422dcde78ebf92f67ca0bd654c01c
MD5 53b0df26dfddfbb913fd85b290e74edf
BLAKE2b-256 800c3031fd5c186e4e978d0c82c2b187567b6ec9dcc9ed5594494aed4aad6fa5

See more details on using hashes here.

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