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

Uploaded Source

Built Distribution

nlbq-0.1.3-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nlbq-0.1.3.tar.gz
Algorithm Hash digest
SHA256 58650d300351eb948a37bbc0d5cef22604a52bf2317ed63c97cf2dffcb0d12dd
MD5 32c706e53c30d9367255c93284a2e87d
BLAKE2b-256 cc4d69f64bfb69ae284522c50c94699c50a7de42d190a4823b1a9ad234b95ce1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nlbq-0.1.3-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

Hashes for nlbq-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 341bad16eb8ad02d0c386c86098e0e53e3ccdfe4f1c9f299211a66acebf59006
MD5 9fa7d8f9748387e68a1c9e00de5ffa2d
BLAKE2b-256 db7c7674528f735d6119e87ee9178d8b96927db4081655ce51a5ec00fd53471f

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