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

Uploaded Source

Built Distribution

nlbq-0.1.4-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nlbq-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 89d7483e479716f79ebf7f3b3806b5d1708a04b7f505fe508404f02479d428ea
MD5 09f890ce39b095eeb416245c62725ea3
BLAKE2b-256 33a7e9c28e715cefeb0462f5013d39e50bc3bcfb816e10eeaa77c008ee5291f6

See more details on using hashes here.

File details

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

File metadata

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

Hashes for nlbq-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e35b9311a4a35aeb95883e304b5d8c87faf775f79595d33ca5d5979a47926704
MD5 9b85259c33ac3891a4e6b5f52644f9a3
BLAKE2b-256 b41833b6e981021be0a0cc17292f2b83e640c1051f01c8046ca1d9c9fa56e67f

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