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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nlbq-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 9871a77081d81b70d6bf365c4d471600e3d1d3b98682b6be5f41fcbe7f6f10a9
MD5 24c35df4b2b7366ca91f75aa8be733f5
BLAKE2b-256 b26c98b4f90a7ca12dfc002a8b315db98f6082a059ccf38fb6113ada0c3ecd5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nlbq-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a0e08928d5151e03b88e50242fec9f7775d07d3eaeebf3f953af1bb9044193b3
MD5 5a2c97e5a7270976eda73af3ad39cac4
BLAKE2b-256 80ae622100c33358f30eb57dbb24efa3e7b69845adc763d53d7e09b2dbfc1ad3

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