gcemetadata is a command line utility to collect meta data available in an Google Compute Engine instance. The metadata is provided by the cloud framework as documented here (https://cloud.google.com/compute/docs/metadata). The command line utility gets the requested information and by default writes the data to standard output. The data can optionally be represented as XML snippets.
Use the standard "python setup.py install" process.