Skip to content

Commit 41e4016

Browse files
committed
chore: include google-resumable-media package as _media
1 parent 309bad1 commit 41e4016

35 files changed

+11849
-0
lines changed
+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Copyright 2017 Google Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""Utilities for Google Media Downloads and Resumable Uploads.
16+
17+
This package has some general purposes modules, e.g.
18+
:mod:`~google.resumable_media.common`, but the majority of the
19+
public interface will be contained in subpackages.
20+
21+
===========
22+
Subpackages
23+
===========
24+
25+
Each subpackage is tailored to a specific transport library:
26+
27+
* the :mod:`~google.resumable_media.requests` subpackage uses the ``requests``
28+
transport library.
29+
30+
.. _requests: http://docs.python-requests.org/
31+
32+
==========
33+
Installing
34+
==========
35+
36+
To install with `pip`_:
37+
38+
.. code-block:: console
39+
40+
$ pip install --upgrade google-resumable-media
41+
42+
.. _pip: https://pip.pypa.io/
43+
"""
44+
45+
46+
from google.resumable_media.common import DataCorruption
47+
from google.resumable_media.common import InvalidResponse
48+
from google.resumable_media.common import PERMANENT_REDIRECT
49+
from google.resumable_media.common import RetryStrategy
50+
from google.resumable_media.common import TOO_MANY_REQUESTS
51+
from google.resumable_media.common import UPLOAD_CHUNK_SIZE
52+
53+
54+
__all__ = [
55+
"DataCorruption",
56+
"InvalidResponse",
57+
"PERMANENT_REDIRECT",
58+
"RetryStrategy",
59+
"TOO_MANY_REQUESTS",
60+
"UPLOAD_CHUNK_SIZE",
61+
]

0 commit comments

Comments
 (0)