|
1 | 1 | Python Client for Google Cloud RuntimeConfig |
2 | 2 | ============================================ |
3 | 3 |
|
4 | | - Python idiomatic client for `Google Cloud RuntimeConfig`_ |
5 | | - |
6 | | -.. _Google Cloud RuntimeConfig: https://cloud.google.com/deployment-manager/runtime-configurator/ |
7 | | - |
8 | 4 | |alpha| |pypi| |versions| |
9 | 5 |
|
10 | | -- `Documentation`_ |
| 6 | +The `Google Cloud RuntimeConfig`_ API enables developers to dynamically |
| 7 | +configure and expose variables through Google Cloud Platform. In addition, you |
| 8 | +can also set Watchers and Waiters that will watch for changes to your data and |
| 9 | +return based on certain conditions. |
11 | 10 |
|
12 | | -.. _Documentation: http://googlecloudplatform.github.io/google-cloud-python/ |
| 11 | +- `Client Library Documentation`_ |
| 12 | +- `Product Documentation`_ |
13 | 13 |
|
14 | 14 | .. |alpha| image:: https://img.shields.io/badge/status-alpha-orange.svg |
| 15 | +.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-runtimeconfig.svg |
| 16 | + :target: https://pypi.org/project/google-cloud-runtimeconfig/ |
| 17 | +.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-runtimeconfig.svg |
| 18 | + :target: https://pypi.org/project/google-cloud-runtimeconfig/ |
| 19 | +.. _Google Cloud RuntimeConfig: https://cloud.google.com/deployment-manager/runtime-configurator/ |
| 20 | +.. _Client Library Documentation: http://googlecloudplatform.github.io/google-cloud-python/runtimeconfig/index.html |
| 21 | +.. _Product Documentation: https://cloud.google.com/deployment-manager/runtime-configurator/reference/rest/ |
15 | 22 |
|
16 | 23 | **This client library is currently in alpha and may be subject to change.** |
17 | 24 |
|
18 | 25 | Quick Start |
19 | 26 | ----------- |
20 | 27 |
|
21 | | -:: |
| 28 | +In order to use this library, you first need to go through the following steps: |
22 | 29 |
|
23 | | - $ pip install --upgrade google-cloud-runtimeconfig |
| 30 | +1. `Select or create a Cloud Platform project.`_ |
| 31 | +2. `Enable billing for your project.`_ |
| 32 | +3. `Enable the Google Cloud Datastore API.`_ |
| 33 | +4. `Setup Authentication.`_ |
24 | 34 |
|
25 | | -For more information on setting up your Python development environment, |
26 | | -such as installing ``pip`` and ``virtualenv`` on your system, please refer |
27 | | -to `Python Development Environment Setup Guide`_ for Google Cloud Platform. |
| 35 | +.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project |
| 36 | +.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project |
| 37 | +.. _Enable the Google Cloud Datastore API.: https://cloud.google.com/runtimeconfig |
| 38 | +.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html |
28 | 39 |
|
29 | | -.. _Python Development Environment Setup Guide: https://cloud.google.com/python/setup |
| 40 | +Installation |
| 41 | +~~~~~~~~~~~~ |
30 | 42 |
|
31 | | -Authentication |
32 | | --------------- |
| 43 | +Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to |
| 44 | +create isolated Python environments. The basic problem it addresses is one of |
| 45 | +dependencies and versions, and indirectly permissions. |
33 | 46 |
|
34 | | -With ``google-cloud-python`` we try to make authentication as painless as |
35 | | -possible. Check out the `Authentication section`_ in our documentation to |
36 | | -learn more. You may also find the `authentication document`_ shared by all |
37 | | -the ``google-cloud-*`` libraries to be helpful. |
| 47 | +With `virtualenv`_, it's possible to install this library without needing system |
| 48 | +install permissions, and without clashing with the installed system |
| 49 | +dependencies. |
38 | 50 |
|
39 | | -.. _Authentication section: https://google-cloud-python.readthedocs.io/en/latest/core/auth.html |
40 | | -.. _authentication document: https://github.com/GoogleCloudPlatform/google-cloud-common/tree/master/authentication |
| 51 | +.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ |
41 | 52 |
|
42 | | -Using the API |
43 | | -------------- |
44 | 53 |
|
45 | | -The Google Cloud `RuntimeConfig`_ (`RuntimeConfig API docs`_) API enables |
46 | | -developers to dynamically configure and expose variables through Google Cloud |
47 | | -Platform. In addition, you can also set Watchers and Waiters that will watch |
48 | | -for changes to your data and return based on certain conditions. |
| 54 | +Mac/Linux |
| 55 | +^^^^^^^^^ |
49 | 56 |
|
50 | | -.. _RuntimeConfig: https://cloud.google.com/deployment-manager/runtime-configurator/ |
51 | | -.. _RuntimeConfig API docs: https://cloud.google.com/deployment-manager/runtime-configurator/reference/rest/ |
| 57 | +.. code-block:: console |
| 58 | +
|
| 59 | + pip install virtualenv |
| 60 | + virtualenv <your-env> |
| 61 | + source <your-env>/bin/activate |
| 62 | + <your-env>/bin/pip install google-cloud-runtimeconfig |
| 63 | +
|
| 64 | +
|
| 65 | +Windows |
| 66 | +^^^^^^^ |
| 67 | + |
| 68 | +.. code-block:: console |
| 69 | +
|
| 70 | + pip install virtualenv |
| 71 | + virtualenv <your-env> |
| 72 | + <your-env>\Scripts\activate |
| 73 | + <your-env>\Scripts\pip.exe install google-cloud-runtimeconfig |
| 74 | +
|
| 75 | +Next Steps |
| 76 | +~~~~~~~~~~ |
| 77 | + |
| 78 | +- Read the `Client Library Documentation`_ for Google Cloud RuntimeConfig |
| 79 | + API to see other available methods on the client. |
| 80 | +- Read the `Product documentation`_ to learn |
| 81 | + more about the product and see How-to Guides. |
52 | 82 |
|
53 | | -See the ``google-cloud-python`` API runtimeconfig `Documentation`_ to learn |
54 | | -how to interact with Cloud RuntimeConfig using this Client Library. |
55 | 83 |
|
56 | | -.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-runtimeconfig.svg |
57 | | - :target: https://pypi.org/project/google-cloud-runtimeconfig/ |
58 | | -.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-runtimeconfig.svg |
59 | | - :target: https://pypi.org/project/google-cloud-runtimeconfig/ |
|
0 commit comments