• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""Retain apiclient as an alias for googleapiclient."""
2
3from six import iteritems
4
5import googleapiclient
6
7from googleapiclient import channel
8from googleapiclient import discovery
9from googleapiclient import errors
10from googleapiclient import http
11from googleapiclient import mimeparse
12from googleapiclient import model
13try:
14    from googleapiclient import sample_tools
15except ImportError:
16    # Silently ignore, because the vast majority of consumers won't use it and
17    # it has deep dependence on oauth2client, an optional dependency.
18    sample_tools = None
19from googleapiclient import schema
20
21__version__ = googleapiclient.__version__
22
23_SUBMODULES = {
24    'channel': channel,
25    'discovery': discovery,
26    'errors': errors,
27    'http': http,
28    'mimeparse': mimeparse,
29    'model': model,
30    'sample_tools': sample_tools,
31    'schema': schema,
32}
33
34import sys
35for module_name, module in iteritems(_SUBMODULES):
36  sys.modules['apiclient.%s' % module_name] = module
37