|
1 | | -Python Client for BigQuery Storage API |
2 | | -====================================== |
| 1 | +Python Client for Google BigQuery Storage API |
| 2 | +============================================= |
3 | 3 |
|
4 | | -|ga| |pypi| |versions| |
| 4 | +|stable| |pypi| |versions| |
5 | 5 |
|
6 | | -`BigQuery Storage API`_: |
| 6 | +`Google BigQuery Storage API`_: |
7 | 7 |
|
8 | 8 | - `Client Library Documentation`_ |
9 | 9 | - `Product Documentation`_ |
10 | 10 |
|
11 | | -.. |ga| image:: https://img.shields.io/badge/support-GA-gold.svg |
12 | | - :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#general-availability |
| 11 | +.. |stable| image:: https://img.shields.io/badge/support-stable-gold.svg |
| 12 | + :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels |
13 | 13 | .. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-bigquery-storage.svg |
14 | 14 | :target: https://pypi.org/project/google-cloud-bigquery-storage/ |
15 | 15 | .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-bigquery-storage.svg |
16 | 16 | :target: https://pypi.org/project/google-cloud-bigquery-storage/ |
17 | | -.. _BigQuery Storage API: https://cloud.google.com/bigquery/docs/reference/storage/ |
| 17 | +.. _Google BigQuery Storage API: https://cloud.google.com/bigquery/docs/reference/storage/ |
18 | 18 | .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/bigquerystorage/latest |
19 | | -.. _Product Documentation: https://cloud.google.com/bigquery/docs/reference/storage/ |
| 19 | +.. _Product Documentation: https://cloud.google.com/bigquery/docs/reference/storage/ |
20 | 20 |
|
21 | 21 | Quick Start |
22 | 22 | ----------- |
@@ -25,12 +25,12 @@ In order to use this library, you first need to go through the following steps: |
25 | 25 |
|
26 | 26 | 1. `Select or create a Cloud Platform project.`_ |
27 | 27 | 2. `Enable billing for your project.`_ |
28 | | -3. `Enable the BigQuery Storage API.`_ |
| 28 | +3. `Enable the Google BigQuery Storage API.`_ |
29 | 29 | 4. `Setup Authentication.`_ |
30 | 30 |
|
31 | 31 | .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project |
32 | 32 | .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project |
33 | | -.. _Enable the BigQuery Storage API.: https://console.cloud.google.com/apis/library/bigquerystorage.googleapis.com |
| 33 | +.. _Enable the Google BigQuery Storage API.: https://cloud.google.com/bigquery/docs/reference/storage/ |
34 | 34 | .. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html |
35 | 35 |
|
36 | 36 | Installation |
@@ -47,16 +47,25 @@ dependencies. |
47 | 47 | .. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ |
48 | 48 |
|
49 | 49 |
|
| 50 | +Code samples and snippets |
| 51 | +~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 52 | + |
| 53 | +Code samples and snippets live in the `samples/` folder. |
| 54 | + |
| 55 | + |
50 | 56 | Supported Python Versions |
51 | 57 | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
52 | | -Python >= 3.6 |
| 58 | +Our client libraries are compatible with all current [active](https://devguide.python.org/devcycle/#in-development-main-branch) and [maintenance](https://devguide.python.org/devcycle/#maintenance-branches) versions of |
| 59 | +Python. |
| 60 | + |
| 61 | +Python >= 3.7 |
53 | 62 |
|
54 | 63 | Unsupported Python Versions |
55 | 64 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
56 | | -Python == 2.7, Python == 3.5. |
| 65 | +Python <= 3.6 |
57 | 66 |
|
58 | | -The last version of this library compatible with Python 2.7 and 3.5 is |
59 | | -``google-cloud-bigquery-storage==1.1.0``. |
| 67 | +If you are using an [end-of-life](https://devguide.python.org/devcycle/#end-of-life-branches) |
| 68 | +version of Python, we recommend that you update as soon as possible to an actively supported version. |
60 | 69 |
|
61 | 70 |
|
62 | 71 | Mac/Linux |
@@ -80,37 +89,15 @@ Windows |
80 | 89 | <your-env>\Scripts\activate |
81 | 90 | <your-env>\Scripts\pip.exe install google-cloud-bigquery-storage |
82 | 91 |
|
83 | | -Optional Dependencies |
84 | | -^^^^^^^^^^^^^^^^^^^^^ |
85 | | - |
86 | | -Several features of ``google-cloud-bigquery-storage`` require additional |
87 | | -dependencies. |
88 | | - |
89 | | -* Parse Arrow blocks in a ``read_rows()`` stream using `pyarrow |
90 | | - <https://arrow.apache.org/docs/python/>`_. |
91 | | - |
92 | | - ``pip install 'google-cloud-bigquery-storage[pyarrow]'`` |
93 | | - |
94 | | - |
95 | | -* Parse Avro blocks in a ``read_rows()`` stream using `fastavro |
96 | | - <https://fastavro.readthedocs.io/en/latest/>`_. |
97 | | - |
98 | | - ``pip install google-cloud-bigquery-storage[fastavro]`` |
99 | | - |
100 | | -* Download rows to a `pandas <http://pandas.pydata.org/pandas-docs/stable/>`_ |
101 | | - dataframe. |
102 | | - |
103 | | - ``pip install 'google-cloud-bigquery-storage[pandas,pyarrow]'`` |
104 | | - |
105 | 92 | Next Steps |
106 | 93 | ~~~~~~~~~~ |
107 | 94 |
|
108 | | -- Read the `Client Library Documentation`_ for BigQuery Storage API |
109 | | - API to see other available methods on the client. |
110 | | -- Read the `BigQuery Storage API Product documentation`_ to learn |
| 95 | +- Read the `Client Library Documentation`_ for Google BigQuery Storage API |
| 96 | + to see other available methods on the client. |
| 97 | +- Read the `Google BigQuery Storage API Product documentation`_ to learn |
111 | 98 | more about the product and see How-to Guides. |
112 | | -- View this `repository’s main README`_ to see the full list of Cloud |
| 99 | +- View this `README`_ to see the full list of Cloud |
113 | 100 | APIs that we cover. |
114 | 101 |
|
115 | | -.. _BigQuery Storage API Product documentation: https://cloud.google.com/bigquery/docs/reference/storage/ |
116 | | -.. _repository’s main README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst |
| 102 | +.. _Google BigQuery Storage API Product documentation: https://cloud.google.com/bigquery/docs/reference/storage/ |
| 103 | +.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst |