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, _python_version_support 

21from google.api_core import version as api_core_version 

22 

23__version__ = api_core_version.__version__ 

24 

25# NOTE: Until dependent artifacts require this version of 

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

27# manually in those artifacts. 

28 

29# expose dependency checks for external callers 

30check_python_version = _python_version_support.check_python_version 

31check_dependency_versions = _python_package_support.check_dependency_versions 

32parse_version_to_tuple = _python_package_support.parse_version_to_tuple 

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")