Skip to main content

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

Release files for nlbq 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nlbq 0.1.7
File Size Uploaded
nlbq-0.1.7.tar.gz 11.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nlbq 0.1.7
File Interpreter ABI Platform
nlbq-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 23.9 kB

Release files / nlbq-0.1.7.tar.gz

Download URL nlbq-0.1.7.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6bb891454883405c67476b14e20120fc00b84f19be463a2557be53805aae7521
BLAKE2b-256 checksum
How to use checksums
43aea84e09caabe6639c5c1a4df749389663c1a52d9bbd8ef4770fd5a7b2fdf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / nlbq-0.1.7-py3-none-any.whl

Download URL nlbq-0.1.7-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fc427949b4bcdfe62fc98cb7ea11c3c5650432ca0da4ed52bcfe0e27e3d2e32
BLAKE2b-256 checksum
How to use checksums
247d88bf5e2741dae486835cff6f08703e8e54c35a929d757ec458637f6ffc01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page