|
1 | | -<!doctype html> |
2 | | -<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> |
3 | | -<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> |
4 | | -<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> |
5 | | -<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> |
6 | | - <head> |
7 | | - <meta charset="utf-8"> |
8 | | - <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
9 | | - <title>google-cloud-python</title> |
10 | | - <meta name="description" content="Python idiomatic client for Google Cloud services."> |
11 | | - <meta name="viewport" content="width=device-width, initial-scale=1"> |
12 | | - <link rel="shortcut icon" href="https://cloud.google.com/images/gcp-favicon.ico"> |
13 | | - <link rel="stylesheet" href="_landing-page-static/css/normalize.css"> |
14 | | - <link rel="stylesheet" href="_landing-page-static/css/main.css"> |
15 | | - <link rel="stylesheet" href="_landing-page-static/pygments.css"> |
16 | | - <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Droid+Sans+Mono|Roboto:300,400,700,700italic,400italic|Open+Sans:300"> |
17 | | - <link rel="stylesheet" href="https://yandex.st/highlightjs/8.0/styles/github.min.css"> |
18 | | - </head> |
19 | | - <body> |
20 | | -<header class="page-header" role="banner"> |
21 | | - <h1 class="logo"><img src="_landing-page-static/images/logo-full.svg" alt="Google Cloud Platform" /></h1> |
22 | | - <!-- start of language-switcher --> |
23 | | - <nav class="main-nav"> |
24 | | - <div class="nav-current">Python</div> |
25 | | - <ul class="menu"> |
26 | | - <li> |
27 | | - <a href="http://googlecloudplatform.github.io/google-cloud-dotnet" title="google-cloud-dotnet"> |
28 | | - <img src="_landing-page-static/images/icon-lang-dotnet.svg" alt=".NET icon" class="menu-icon" /> |
29 | | - .NET |
30 | | - </a> |
31 | | - </li> |
32 | | - <li> |
33 | | - <a href="http://googlecloudplatform.github.io/google-cloud-cpp" title="google-cloud-cpp"> |
34 | | - <img src="_landing-page-static/images/icon-lang-cpp.svg" alt="C++ icon" class="menu-icon" /> |
35 | | - C++ |
36 | | - </a> |
37 | | - </li> |
38 | | - <li> |
39 | | - <a href="https://googlecloudplatform.github.io/google-cloud-java/" title="google-cloud-java"> |
40 | | - <img src="_landing-page-static/images/icon-lang-java-duke.svg" alt="Duke icon" class="menu-icon"> |
41 | | - Java |
42 | | - </a> |
43 | | - </li> |
44 | | - <li> |
45 | | - <a href="https://googlecloudplatform.github.io/google-cloud-go" title="google-cloud-go"> |
46 | | - <img src="_landing-page-static/images/icon-lang-go.svg" alt="Go icon" class="menu-icon"> |
47 | | - Go |
48 | | - </a> |
49 | | - </li> |
50 | | - <li> |
51 | | - <a href="https://googlecloudplatform.github.io/google-cloud-node/" title="google-cloud-node"> |
52 | | - <img src="_landing-page-static/images/icon-lang-nodejs.svg" alt="Node.js icon" class="menu-icon"> |
53 | | - Node.js |
54 | | - </a> |
55 | | - </li> |
56 | | - <li> |
57 | | - <a href="https://googlecloudplatform.github.io/google-cloud-php/" title="google-cloud-php"> |
58 | | - <img src="_landing-page-static/images/icon-lang-php.svg" alt="PHP icon" class="menu-icon"> |
59 | | - PHP |
60 | | - </a> |
61 | | - </li> |
62 | | - <li> |
63 | | - <a href="#" title="google-cloud-python"> |
64 | | - <img src="_landing-page-static/images/icon-lang-python-white.svg" alt="Python icon" class="menu-icon"> |
65 | | - Python |
66 | | - </a> |
67 | | - </li> |
68 | | - <li> |
69 | | - <a href="https://googlecloudplatform.github.io/google-cloud-ruby/" title="google-cloud-ruby"> |
70 | | - <img src="_landing-page-static/images/icon-lang-ruby.svg" alt="Ruby icon" class="menu-icon" width="24"> |
71 | | - Ruby |
72 | | - </a> |
73 | | - </li> |
74 | | - </ul> |
75 | | - </nav> |
76 | | - <!-- end of language-switcher --> |
77 | | -</header><!-- end of .page-header --> |
78 | | - |
79 | | -<article class="main" role="main"> |
80 | | - <section class="hero-banner"> |
81 | | - <div class="container clearfix"> |
82 | | - <div class="col col-left"> |
83 | | - <h1>google-cloud</h1> |
84 | | - <p>Google Cloud client libraries for Python - idiomatic, intuitive, |
85 | | - and natural way for Python developers to integrate with Google Cloud |
86 | | - Platform services, such as Cloud Datastore and Cloud Storage.</p> |
87 | | - </div><!-- end of .col.col-left --> |
88 | | - </div><!-- end of .container --> |
89 | | - </section><!-- end of .hero-banner --> |
90 | | - |
91 | | - <section class="block featuring"> |
92 | | - <div class="container"> |
93 | | - <ul class="featuring-links"> |
94 | | - <li> |
95 | | - <a href="latest/" title="google-cloud-python docs" class="btn btn-docs"> |
96 | | - <img src="_landing-page-static/images/icon-lang-python.svg" alt="Python icon" /> |
97 | | - Read the Docs |
98 | | - </a> |
99 | | - </li> |
100 | | - <li> |
101 | | - <a href="https://github.com/GoogleCloudPlatform/google-cloud-python" title="google-cloud-python on GitHub" class="ext-link"> |
102 | | - <img src="_landing-page-static/images/icon-link-github.svg" alt="GitHub icon" /> |
103 | | - GitHub |
104 | | - </a> |
105 | | - </li> |
106 | | - <li> |
107 | | - <a href="https://github.com/GoogleCloudPlatform/google-cloud-python/issues" title="google-cloud-python issues on Github" class="ext-link"> |
108 | | - <img src="_landing-page-static/images/icon-link-github.svg" alt="GitHub icon" /> |
109 | | - Issues |
110 | | - </a> |
111 | | - </li> |
112 | | - <li> |
113 | | - <a href="http://stackoverflow.com/questions/tagged/google-cloud-python" title="google-cloud-python on StackOverflow" class="ext-link"> |
114 | | - <img src="_landing-page-static/images/icon-link-stackoverflow.svg" alt="StackOverflow icon" /> |
115 | | - StackOverflow |
116 | | - </a> |
117 | | - </li> |
118 | | - </ul> |
119 | | - </div><!-- end of .container --> |
120 | | - </section><!-- end of .featuring --> |
121 | | - |
122 | | - <section class="block about"> |
123 | | - <div class="container clearfix"> |
124 | | - <div class="col col-left"> |
125 | | - <h3 class="block-title">What is it?</h3> |
126 | | - |
127 | | - <p>The <code>google-cloud-*</code> libraries provide clients for |
128 | | - accessing Google Cloud Platform services, significantly reducing |
129 | | - the boilerplate code you have to write. The libraries provide |
130 | | - high-level API abstractions so they're easier to understand. |
131 | | - They embrace idioms of Python, work well with the standard library, |
132 | | - and integrate better with your codebase. All this means you spend |
133 | | - more time creating code that matters to you.</p> |
134 | | - |
135 | | - <p>The <code>google-cloud-*</code> clients are configured to access |
136 | | - Google Cloud Platform services and authorize (OAuth 2.0) automatically |
137 | | - on your behalf. With a one-line install and a private key, you are up |
138 | | - and ready to go. Better yet, if you are running on a Google Compute |
139 | | - Engine instance, the one-line install is enough!</p> |
140 | | - |
141 | | - </div><!-- end of .col.col-left --> |
142 | | - |
143 | | - <div class="col col-right"> |
144 | | - <h4>Retrieve Datastore Entities</h4> |
145 | | - |
146 | | - <div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">google.cloud</span> <span class="kn">import</span> <span class="n">datastore</span> |
147 | | - |
148 | | -<span class="n">client</span> <span class="o">=</span> <span class="n">datastore</span><span class="o">.</span><span class="n">Client</span><span class="p">()</span> |
149 | | -<span class="n">product_key</span> <span class="o">=</span> <span class="n">client</span><span class="o">.</span><span class="n">key</span><span class="p">(</span><span class="s">'Product'</span><span class="p">,</span> <span class="mi">123</span><span class="p">)</span> |
150 | | -<span class="k">print</span><span class="p">(</span><span class="n">client</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">product_key</span><span class="p">))</span> |
151 | | -</pre></div> |
152 | | -</div> |
153 | | - |
154 | | - </div><!-- end of .col.col-right --> |
155 | | - </div><!-- end of .container --> |
156 | | - </section><!-- end of .featuring --> |
157 | | - |
158 | | - <section class="block examples"> |
159 | | - <div class="container clearfix"> |
160 | | - <h3 class="block-title">Examples</h3> |
161 | | - |
162 | | - <ul> |
163 | | - <li> |
164 | | - <a href="https://github.com/GoogleCloudPlatform/gcloud-python-expenses-demo"><code>gcloud-python-expenses-demo</code></a> - Use google-cloud-python with the Datastore and Cloud Storage to manage expenses |
165 | | - </li> |
166 | | - </ul> |
167 | | - </div> |
168 | | - </section> |
169 | | - |
170 | | - <section class="block"> |
171 | | - <div class="container clearfix"> |
172 | | - <h3 class="block-title">FAQ</h3> |
173 | | - |
174 | | - <h4>What is the relationship between the <code>google-cloud-*<ecode> |
175 | | - libraries and the <code>gcloud</code> command-line tool?</h4> |
176 | | - <p>Both the <code>gcloud</code> command-line tool and the |
177 | | - <code>google-cloud-*</code> libraries are a part of the Google Cloud |
178 | | - SDK: a collection of tools and libraries that enable you to easily |
179 | | - create and manage resources on the Google Cloud Platform. |
180 | | - The <code>gcloud</code> command-line tool can be used to manage both |
181 | | - your development workflow and your Google Cloud Platform resources while |
182 | | - the <code>google-cloud-*</code> libraries provide the |
183 | | - libraries for creating and interacting with those reesources |
184 | | - from Python.</p> |
185 | | - |
186 | | - <h4>What is the relationship between the <code>google-cloud-*</code> |
187 | | - libraries and the Google APIs Python Client?</h4> |
188 | | - <p>The <a href="https://github.com/google/google-api-python-client"> |
189 | | - Google APIs Python Client</a> is a client library for using the broad |
190 | | - set of Google APIs. |
191 | | - The <code>google-cloud-*</code> libraries are built specifically for the |
192 | | - Google Cloud Platform and provide the recommended way to integrate |
193 | | - Google Cloud APIs into your Python applications. If your application |
194 | | - requires both Google Cloud Platform and other Google APIs, both may be |
195 | | - used by your application.</p> |
196 | | - </div> |
197 | | - </section> <!-- end of FAQ --> |
198 | | - |
199 | | - <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> |
200 | | - <script>window.jQuery || document.write('<script src="_landing-page-static/js/vendor/jquery-1.10.2.min.js"><\/script>')</script> |
201 | | - <script src="_landing-page-static/js/main.js"></script> |
202 | | -</article><!-- end of .main --> |
203 | | -</body> |
| 1 | +<html> |
| 2 | +<head> |
| 3 | + <meta http-equiv="refresh" content="1; url=https://github.com/googleapis/google-cloud-python#google-cloud-python-client" /> |
| 4 | + <script> |
| 5 | + window.location.href = "https://github.com/googleapis/google-cloud-python#google-cloud-python-client" |
| 6 | + </script> |
| 7 | +</head> |
| 8 | +</html> |
0 commit comments