Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/google/resumable_media/__init__.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

8 statements  

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 

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. 

20 

21=========== 

22Subpackages 

23=========== 

24 

25Each 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========== 

33Installing 

34========== 

35 

36To 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 

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 

52 

53 

54__all__ = [ 

55 "DataCorruption", 

56 "InvalidResponse", 

57 "PERMANENT_REDIRECT", 

58 "RetryStrategy", 

59 "TOO_MANY_REQUESTS", 

60 "UPLOAD_CHUNK_SIZE", 

61]