Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 7dfbb468ea

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
src
CHANGES
LICENSE
README

README

#  Copyright 2011 Google, Inc.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.

Google APIs Code Generator

June. 16, 2011
Tony Aiuto (aiuto@google.com)

Introduction

This is a tool for generating code from Google APIs Discovery documents.
The current version generates API client libraries for Java and GWT.


Prerequisites

Python 2.6 or newer

* Google apputils - http://code.google.com/p/google-apputils-python/
* django templates (1.1 or newer) - either through django or
  Google AppEngine SDKs
* httplib2 - http://code.google.com/p/httplib2/
* python-gflags - http://code.google.com/p/python-gflags/
* setuptools - http://pypi.python.org/pypi/setuptools/


Running it:

You must set PYTHONPATH to the path to the src folder. You should invoke
the program using the full path to generate_library.py. E.g.

  PYTHONPATH=$(/bin/pwd)/src:$(PYPATH) \
    $(/bin/pwd)/src/googleapis/codegen/generate_library.py \
      --api_name=buzz --api_version=v1 --output_dir=generated

Something went wrong with that request. Please try again.