Allow for specifying the page size

Default to 25
Max of 100

Change-Id: Ic8dc5986f09ad7be95d37654abd71f89bf3516b0
1 file changed
tree: 482b9bbb7ad67624261df0e4e7c5476c2f75459e
  1. .editorconfig
  2. .flake8
  3. .gitignore
  4. .python-version
  5. .style.yapf
  6. client.py
  7. CONTRIBUTING.md
  8. csv_uploader.py
  9. LICENSE
  10. list_instances.py
  11. list_tasks.py
  12. README.md
  13. sample.csv
README.md

The Google Code-in API Client

API Documentation is at https://developers.google.com/open-source/gci/api

Usage

./list_tasks.py --apikey APIKEY

./list_instances.py --apikey APIKEY

./csv_uploader.py --apikey APIKEY file.csv

Each script also supports other flags. Use --help to see them.

Prerequisites

The client library requires requests to be installed.

You can install it with pip or easy_install (instructions) or install your operating system specific package. On Ubuntu or Debian, it is in the python-requests package.

API Keys

Organization Adminstrators can find their API key on their User Profile.

Code Style

We follow the Google Python Style Guide with a few modifications to match the Google internal version. The primary one is the use of 2 space indents.

Use yapf to keep the code formatted nicely. You can set up an auto-save hook in your editor, or run it manually:

# one time setup:
pip install yapf

# format files:
yapf -i *.py

Bugs/Support

To report bugs, please email gci-support@google.com.