package documentation

Caching utility for the discovery document.

Module appengine_memcache App Engine memcache based cache for the discovery document.
Module base An abstract class for caching the discovery document.
Module file_cache File based cache for the discovery document.

From __init__.py:

Function autodetect Detects an appropriate cache module and returns it.
Function get_static_doc Retrieves the discovery document from the directory defined in DISCOVERY_DOC_DIR corresponding to the serviceName and version provided.
Constant DISCOVERY_DOC_DIR Undocumented
Constant DISCOVERY_DOC_MAX_AGE Undocumented
Constant LOGGER Undocumented
def autodetect():

Detects an appropriate cache module and returns it.

Returns
googleapiclient.discovery_cache.base.Cache, a cache object which is auto detected, or None if no cache object is available.
def get_static_doc(serviceName, version):

Retrieves the discovery document from the directory defined in DISCOVERY_DOC_DIR corresponding to the serviceName and version provided.

Parameters
serviceNamestring, name of the service.
versionstring, the version of the service.
Returns
A string containing the contents of the JSON discovery document, otherwise None if the JSON discovery document was not found.
DISCOVERY_DOC_DIR =

Undocumented

Value
os.path.join(os.path.dirname(os.path.realpath(__file__)), 'documents')
DISCOVERY_DOC_MAX_AGE =

Undocumented

Value
60 * 60 * 24
LOGGER =

Undocumented

Value
logging.getLogger(__name__)