Skip to main content

A wrapper over OVH's API with killer autocomplete feature.

Project description

OVH API CLI is a command line tool that allows usage of OVH’s API from
within a terminal.

Installation

python setup.py install
source /etc/bash_completion.d/ovhcli

Usage

Put credentials inside ~/.ovhcli

$ echo '{\
    "AK": "Account_KEY",\
    "AS": "Account_SECRET",\
    "CK": "Consumer_KEY"\
} > ~/.ovhcli

Use tab to trigger the completion

 $ ovhcli [TAB]
 $ ovhcli /[TAB][TAB]
 allDom                housing               freefax               directadmin           overTheBox            support
 auth                  installationTemplate  horizonView           office                database              telephony
 ...
 $ ovhcli /me
 me                              bill                            history                         subAccount
 backupCode                      changeEmail                     order                           subscription
 ...
 $ ovhcli /me/contact [TAB][TAB]
 get                             put
 $ ovhcli /me/contact PUT [TAB][TAB]
 --city=                         --line2=                        --province=
 --country=                      --line3=                        --zip=
 --line1=                        --otherDetails=

# some parameters can be automagically listed:
$ ovhcli /me/contact/\{contactId\} GET --contactId=[TAB][TAB]
contact1                         contact2                        contact3

Project details


Release history Release notifications

This version

1.0.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ovh_api_cli, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size ovh_api_cli-1.0.4.tar.gz (6.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page