This is a CLI for the Google Prediction API.
Install Xcode http://developer.apple.com/xcode/
The prediction-cli utility is powered by node.
$ brew install node
A tool that enables you to access Google Cloud Storage from the command-line.
$ pip install gsutil
Or, follow instructions at https://developers.google.com/storage/docs/gsutil_install
-
Create a new project in Google Developer Console
-
Activate Cloud Storage and Prediction API's
-
Create a new service account credential
-
Download Credential Private Key
-
Authorize GSUtil to access your project's cloud storage.
$ gsutil config
-
Translate Private Key for Node
Note on the private_key.pem: Node.js currently does not support direct access to the keys stored within PKCS12 file (see issue comment nodejs/node-v0.x-archive#4050 (comment)) so the private key must be extracted and converted to a passphrase-less RSA key:
$ openssl pkcs12 -in private_key.p12 -nocerts -nodes | openssl rsa -out private_key.pem
-
Clone this repository.
-
Install the project, plus dependencies, globally
$ cd /the/repo/dir $ npm install -g
-
Upload csv formatted, seed training data
$ gsutil cp training_data.csv gs://bucket_name/training_data.csv
-
Utilize the command line app to process, update and query the data via the Google Prediction API
$ prediction-cli -h