Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/google/api_core/__init__.py: 92%

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

12 statements  

1# Copyright 2017 Google LLC 

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"""Google API Core. 

16 

17This package contains common code and utilities used by Google client libraries. 

18""" 

19 

20from google.api_core import _python_package_support 

21from google.api_core import _python_version_support 

22from google.api_core import version as api_core_version 

23 

24__version__ = api_core_version.__version__ 

25 

26# NOTE: Until dependent artifacts require this version of 

27# google.api_core, the functionality below must be made available 

28# manually in those artifacts. 

29 

30# expose dependency checks for external callers 

31check_python_version = _python_version_support.check_python_version 

32check_dependency_versions = _python_package_support.check_dependency_versions 

33warn_deprecation_for_versions_less_than = ( 

34 _python_package_support.warn_deprecation_for_versions_less_than 

35) 

36DependencyConstraint = _python_package_support.DependencyConstraint 

37 

38# perform version checks against api_core, and emit warnings if needed 

39check_python_version(package="google.api_core") 

40check_dependency_versions("google.api_core")