1
- Python Client for Google Cloud Storage API
2
- ==========================================
1
+ Python Client for Google Cloud Storage
2
+ ======================================
3
3
4
4
|stable | |pypi | |versions |
5
5
6
- `Google Cloud Storage API `_: is a durable and highly available object storage service. Google Cloud Storage is almost infinitely scalable and guarantees consistency: when a write succeeds, the latest copy of the object will be returned to any GET, globally.
6
+ `Google Cloud Storage `_ is a managed service for storing unstructured data. Cloud Storage
7
+ allows world-wide storage and retrieval of any amount of data at any time. You can use
8
+ Cloud Storage for a range of scenarios including serving website content, storing data
9
+ for archival and disaster recovery, or distributing large data objects to users via direct download.
10
+
11
+ A comprehensive list of changes in each version may be found in the `CHANGELOG `_.
7
12
8
- - `Client Library Documentation `_
9
13
- `Product Documentation `_
14
+ - `Client Library Documentation `_
15
+ - `github.com/googleapis/python-storage `_
16
+
17
+ Read more about the client libraries for Cloud APIs, including the older
18
+ Google APIs Client Libraries, in `Client Libraries Explained `_.
10
19
11
20
.. |stable | image :: https://img.shields.io/badge/support-stable-gold.svg
12
21
:target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels
13
22
.. |pypi | image :: https://img.shields.io/pypi/v/google-cloud-storage.svg
14
23
:target: https://pypi.org/project/google-cloud-storage/
15
24
.. |versions | image :: https://img.shields.io/pypi/pyversions/google-cloud-storage.svg
16
25
:target: https://pypi.org/project/google-cloud-storage/
17
- .. _Google Cloud Storage API : https://cloud.google.com/storage
26
+ .. _Google Cloud Storage : https://cloud.google.com/storage
18
27
.. _Client Library Documentation : https://cloud.google.com/python/docs/reference/storage/latest
19
28
.. _Product Documentation : https://cloud.google.com/storage
29
+ .. _CHANGELOG : https://github.com/googleapis/python-storage/blob/main/CHANGELOG.md
30
+ .. _github.com/googleapis/python-storage : https://github.com/googleapis/python-storage
31
+ .. _Client Libraries Explained : https://cloud.google.com/apis/docs/client-libraries-explained
20
32
21
33
Quick Start
22
34
-----------
23
35
24
- In order to use this library, you first need to go through the following steps:
36
+ In order to use this library, you first need to go through the following steps.
37
+ A step-by-step guide may also be found in `Get Started with Client Libraries `_.
25
38
26
39
1. `Select or create a Cloud Platform project. `_
27
40
2. `Enable billing for your project. `_
28
41
3. `Enable the Google Cloud Storage API. `_
29
42
4. `Setup Authentication. `_
30
43
44
+ .. _Get Started with Client Libraries : https://cloud.google.com/storage/docs/reference/libraries#client-libraries-install-python
31
45
.. _Select or create a Cloud Platform project. : https://console.cloud.google.com/project
32
46
.. _Enable billing for your project. : https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
33
- .. _Enable the Google Cloud Storage API. : https://cloud.google.com/storage
34
- .. _Setup Authentication. : https://googleapis.dev/python/ google-api-core/latest/auth.html
47
+ .. _Enable the Google Cloud Storage API. : https://console. cloud.google.com/flows/enableapi?apiid= storage-api.googleapis.com
48
+ .. _Setup Authentication. : https://cloud. google.com/docs/authentication/client-libraries
35
49
36
50
Installation
37
51
~~~~~~~~~~~~
38
52
39
- Install this library in a `virtualenv `_ using pip. `virtualenv `_ is a tool to
40
- create isolated Python environments. The basic problem it addresses is one of
41
- dependencies and versions, and indirectly permissions.
53
+ Install this library in a virtual environment using `venv `_. `venv `_ is a tool that
54
+ creates isolated Python environments. These isolated environments can have separate
55
+ versions of Python packages, which allows you to isolate one project's dependencies
56
+ from the dependencies of other projects.
42
57
43
- With `virtualenv `_, it's possible to install this library without needing system
58
+ With `venv `_, it's possible to install this library without needing system
44
59
install permissions, and without clashing with the installed system
45
60
dependencies.
46
61
47
- .. _`virtualenv ` : https://virtualenv.pypa.io/en/latest/
62
+ .. _`venv ` : https://docs.python.org/3/library/venv.html
48
63
49
64
50
65
Code samples and snippets
51
66
~~~~~~~~~~~~~~~~~~~~~~~~~
52
67
53
- Code samples and snippets live in the `samples/ ` folder.
68
+ Code samples and snippets live in the `samples/ `_ folder.
69
+
70
+ .. _`samples/` : https://github.com/googleapis/python-storage/tree/main/samples
54
71
55
72
56
73
Supported Python Versions
@@ -77,31 +94,29 @@ Mac/Linux
77
94
78
95
.. code-block :: console
79
96
80
- pip install virtualenv
81
- virtualenv <your-env>
97
+ python3 -m venv <your-env>
82
98
source <your-env>/bin/activate
83
- <your-env>/bin/ pip install google-cloud-storage
99
+ pip install google-cloud-storage
84
100
85
101
86
102
Windows
87
103
^^^^^^^
88
104
89
105
.. code-block :: console
90
106
91
- pip install virtualenv
92
- virtualenv <your-env>
93
- <your-env>\Scripts\activate
94
- <your-env>\Scripts\pip.exe install google-cloud-storage
107
+ py -m venv <your-env>
108
+ .\<your-env>\Scripts\activate
109
+ pip install google-cloud-storage
95
110
96
111
Next Steps
97
112
~~~~~~~~~~
98
113
114
+ - Read the `Google Cloud Storage Product documentation `_ to learn
115
+ more about the product and see How-to Guides.
99
116
- Read the `Client Library Documentation `_ for Google Cloud Storage API
100
117
to see other available methods on the client.
101
- - Read the `Google Cloud Storage API Product documentation `_ to learn
102
- more about the product and see How-to Guides.
103
118
- View this `README `_ to see the full list of Cloud
104
119
APIs that we cover.
105
120
106
- .. _Google Cloud Storage API Product documentation : https://cloud.google.com/storage
121
+ .. _Google Cloud Storage Product documentation : https://cloud.google.com/storage
107
122
.. _README : https://github.com/googleapis/google-cloud-python/blob/main/README.rst
0 commit comments