|
1 |
| -Python Client for Google Cloud Bigtable |
2 |
| -======================================= |
| 1 | +Python Client for Google Cloud Bigtable (`Alpha`_) |
| 2 | +================================================== |
3 | 3 |
|
4 |
| - Python idiomatic client for `Google Cloud Bigtable`_ |
| 4 | +|pypi| |versions| |
5 | 5 |
|
6 |
| -.. _Google Cloud Bigtable: https://cloud.google.com/bigtable/docs/ |
7 | 6 |
|
8 |
| -|pypi| |versions| |
| 7 | +`Google Cloud Bigtable`_ is Google's NoSQL Big Data database service. It's the |
| 8 | +same database that powers many core Google services, including Search, |
| 9 | +Analytics, Maps, and Gmail. |
9 | 10 |
|
10 |
| -- `Documentation`_ |
| 11 | +- `Client Library Documentation`_ |
| 12 | +- `Product Documentation`_ |
11 | 13 |
|
12 |
| -.. _Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/bigtable/usage.html |
| 14 | +.. _Alpha: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst |
| 15 | +.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-bigtable.svg |
| 16 | + :target: https://pypi.org/project/google-cloud-bigtable/ |
| 17 | +.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-bigtable.svg |
| 18 | + :target: https://pypi.org/project/google-cloud-bigtable/ |
| 19 | +.. _Google Cloud Bigtable: https://cloud.google.com/bigtable |
| 20 | +.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/bigtable/usage.html |
| 21 | +.. _Product Documentation: https://cloud.google.com/bigtable/docs |
13 | 22 |
|
14 | 23 | Quick Start
|
15 | 24 | -----------
|
16 | 25 |
|
17 |
| -.. code-block:: console |
| 26 | +In order to use this library, you first need to go through the following steps: |
18 | 27 |
|
19 |
| - $ pip install --upgrade google-cloud-bigtable |
| 28 | +1. `Select or create a Cloud Platform project.`_ |
| 29 | +2. `Enable billing for your project.`_ |
| 30 | +3. `Enable the Cloud Bigtable API.`_ |
| 31 | +4. `Setup Authentication.`_ |
20 | 32 |
|
21 |
| -For more information on setting up your Python development environment, |
22 |
| -such as installing ``pip`` and ``virtualenv`` on your system, please refer |
23 |
| -to `Python Development Environment Setup Guide`_ for Google Cloud Platform. |
| 33 | +.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project |
| 34 | +.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project |
| 35 | +.. _Enable the Cloud Bigtable API.: https://cloud.google.com/bigtable |
| 36 | +.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html |
24 | 37 |
|
25 |
| -.. _Python Development Environment Setup Guide: https://cloud.google.com/python/setup |
| 38 | +Installation |
| 39 | +~~~~~~~~~~~~ |
26 | 40 |
|
27 |
| -Authentication |
28 |
| --------------- |
| 41 | +Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to |
| 42 | +create isolated Python environments. The basic problem it addresses is one of |
| 43 | +dependencies and versions, and indirectly permissions. |
29 | 44 |
|
30 |
| -With ``google-cloud-python`` we try to make authentication as painless as |
31 |
| -possible. Check out the `Authentication section`_ in our documentation to |
32 |
| -learn more. You may also find the `authentication document`_ shared by all |
33 |
| -the ``google-cloud-*`` libraries to be helpful. |
| 45 | +With `virtualenv`_, it's possible to install this library without needing system |
| 46 | +install permissions, and without clashing with the installed system |
| 47 | +dependencies. |
34 | 48 |
|
35 |
| -.. _Authentication section: https://google-cloud-python.readthedocs.io/en/latest/core/auth.html |
36 |
| -.. _authentication document: https://github.com/GoogleCloudPlatform/google-cloud-common/tree/master/authentication |
| 49 | +.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ |
37 | 50 |
|
38 |
| -Using the API |
39 |
| -------------- |
40 | 51 |
|
41 |
| -Cloud `Bigtable`_ is Google's NoSQL Big Data database service. It's the same |
42 |
| -database that powers many core Google services, including Search, |
43 |
| -Analytics, Maps, and Gmail. |
| 52 | +Mac/Linux |
| 53 | +^^^^^^^^^ |
44 | 54 |
|
45 |
| -.. _Bigtable: https://cloud.google.com/bigtable/docs/ |
| 55 | +.. code-block:: console |
46 | 56 |
|
47 |
| -See the ``google-cloud-python`` API Bigtable `Documentation`_ to learn |
48 |
| -how to manage your data in Bigtable tables. |
| 57 | + pip install virtualenv |
| 58 | + virtualenv <your-env> |
| 59 | + source <your-env>/bin/activate |
| 60 | + <your-env>/bin/pip install google-cloud-bigtable |
49 | 61 |
|
50 |
| -.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-bigtable.svg |
51 |
| - :target: https://pypi.org/project/google-cloud-bigtable/ |
52 |
| -.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-bigtable.svg |
53 |
| - :target: https://pypi.org/project/google-cloud-bigtable/ |
| 62 | +
|
| 63 | +Windows |
| 64 | +^^^^^^^ |
| 65 | + |
| 66 | +.. code-block:: console |
| 67 | +
|
| 68 | + pip install virtualenv |
| 69 | + virtualenv <your-env> |
| 70 | + <your-env>\Scripts\activate |
| 71 | + <your-env>\Scripts\pip.exe install google-cloud-bigtable |
| 72 | +
|
| 73 | +Next Steps |
| 74 | +~~~~~~~~~~ |
| 75 | + |
| 76 | +- Read the `Client Library Documentation`_ for Cloud Bigtable API |
| 77 | + to see other available methods on the client. |
| 78 | +- Read the `Product documentation`_ to learn |
| 79 | + more about the product and see How-to Guides. |
| 80 | + |
| 81 | +``google-cloud-happybase`` |
| 82 | +-------------------------- |
| 83 | + |
| 84 | +In addition to the core ``google-cloud-bigtable``, we provide a |
| 85 | +`google-cloud-happybase |
| 86 | +<http://google-cloud-python-happybase.readthedocs.io/en/latest/>`__ library |
| 87 | +with the same interface as the popular `HappyBase |
| 88 | +<https://happybase.readthedocs.io/en/latest/>`__ library. Unlike HappyBase, |
| 89 | +``google-cloud-happybase`` uses ``google-cloud-bigtable`` under the covers, |
| 90 | +rather than Apache HBase. |
0 commit comments