Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f33f7a1

Browse files
committed
Update readme
1 parent 107ff2f commit f33f7a1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,21 @@ Usage
1616
1717
Project
1818
_______
19+
1920
``project`` in ``bigquery://project`` is used to instantiate BigQuery client with the specific project ID. To infer project from the environment, use ``bigquery://`` – without ``project``
2021

22+
Authentication
23+
_______
24+
25+
Follow the `Google Cloud library guide <https://google-cloud-python.readthedocs.io/en/latest/core/auth.html#overview>`_ for authentication. Alternatively, you can provide the path to a service account JSON file in ``create_engine()``:
26+
27+
.. code-block:: python
28+
29+
engine = create_engine('bigquery://project', credentials_path='/path/to/keyfile.json')
30+
2131
Table names
2232
___________
33+
2334
To query tables from non-default projects, use the following format for the table name: ``project.dataset.table``, e.g.:
2435

2536
.. code-block:: python

0 commit comments

Comments
 (0)