Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/google/resumable_media/__init__.py: 100%
8 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-08 07:10 +0000
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-08 07:10 +0000
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.
15"""Utilities for Google Media Downloads and Resumable Uploads.
17This package has some general purposes modules, e.g.
18:mod:`~google.resumable_media.common`, but the majority of the
19public interface will be contained in subpackages.
21===========
22Subpackages
23===========
25Each subpackage is tailored to a specific transport library:
27* the :mod:`~google.resumable_media.requests` subpackage uses the ``requests``
28 transport library.
30.. _requests: http://docs.python-requests.org/
32==========
33Installing
34==========
36To install with `pip`_:
38.. code-block:: console
40 $ pip install --upgrade google-resumable-media
42.. _pip: https://pip.pypa.io/
43"""
46from google.resumable_media.common import DataCorruption
47from google.resumable_media.common import InvalidResponse
48from google.resumable_media.common import PERMANENT_REDIRECT
49from google.resumable_media.common import RetryStrategy
50from google.resumable_media.common import TOO_MANY_REQUESTS
51from google.resumable_media.common import UPLOAD_CHUNK_SIZE
54__all__ = [
55 "DataCorruption",
56 "InvalidResponse",
57 "PERMANENT_REDIRECT",
58 "RetryStrategy",
59 "TOO_MANY_REQUESTS",
60 "UPLOAD_CHUNK_SIZE",
61]