From cc288e86f0d4911f5f90ee2d3aa0b38dd974058c Mon Sep 17 00:00:00 2001 From: Jean-Tiare Le Bigot Date: Tue, 8 Mar 2016 15:23:21 +0100 Subject: [PATCH] remove obsolete runabove example Signed-off-by: Jean-Tiare Le Bigot --- README.rst | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/README.rst b/README.rst index fe58709..9fc2230 100644 --- a/README.rst +++ b/README.rst @@ -300,42 +300,6 @@ pretty cool library to pretty print tabular data in a clean and easy way. >>> pip install tabulate -List Runabove's instance ------------------------- - -This example assumes an existing Configuration_ with valid ``application_key``, -``application_secret`` and ``consumer_key``. - -.. code:: python - - # -*- encoding: utf-8 -*- - - import ovh - from tabulate import tabulate - - # visit https://api.runabove.com/createApp/ to create your application's credentials - client = ovh.Client(endpoint='runabove-ca') - - # get list of all instances - instances = client.get('/instance') - - # pretty print instances status - table = [] - for instance in instances: - table.append([ - instance['name'], - instance['ip'], - instance['region'], - instance['status'], - ]) - print tabulate(table, headers=['Name', 'IP', 'Region', 'Status']) - -Before running this example, make sure you have the -`tabulate `_ library installed. It's a -pretty cool library to pretty print tabular data in a clean and easy way. - ->>> pip install tabulate - Configuration =============