Skip to main content

AskMe Python Client

Project description

# AskMe-Python
[![Build Status](https://travis-ci.org/pirsquare/askme-python.svg?branch=master)](https://travis-ci.org/pirsquare/askme-python)

AskMe Python Client

## Use Case
[See use case](https://github.com/pirsquare/askme#use-case)

## Installation

pip install askme

## Usage
```shell


Options:

-h, --help output usage information
-f, --fields <fields> Specified fields to retrieve (comma-seperated)
-d, --delimiter <delimiter> Delimiter (default is " | " with spaces)
-o, --omit-columns Omit Columns


```

## Examples
```shell

# Get list of digitalocean's supported distribution image.
# In this case, we are querying for digitalocean's "dist-image" record
askme do dist-image

Output:
Id: centos-5-8-x32 | Description: Centos 5.8 32bit
Id: centos-5-8-x64 | Description: Centos 5.8 64bit
Id: centos-6-5-x32 | Description: Centos 6.5 32bit
Id: centos-6-5-x64 | Description: Centos 6.5 64bit
Id: centos-7-0-x64 | Description: Centos 7.0 64bit
Id: coreos-alpha | Description: CoreOS Alpha
Id: coreos-beta | Description: CoreOS Beta
Id: coreos-stable | Description: CoreOS Stable
Id: debian-6-0-x32 | Description: Debian 6.0 32bit
Id: debian-6-0-x64 | Description: Debian 6.0 64bit
Id: debian-7-0-x32 | Description: Debian 7.0 32bit
Id: debian-7-0-x64 | Description: Debian 7.0 64bit
Id: debian-8-x32 | Description: Debian 8 32bit
Id: debian-8-x64 | Description: Debian 8 64bit
Id: fedora-21-x64 | Description: Fedora 21 64bit
Id: fedora-22-x64 | Description: Fedora 22 64bit
Id: freebsd-10-1-x64 | Description: FreeBSD 10.1 64bit
Id: freebsd-10-2-x64 | Description: FreeBSD 10.2 64bit
Id: ubuntu-12-04-x32 | Description: Ubuntu 12.04 32bit
Id: ubuntu-12-04-x64 | Description: Ubuntu 12.04 64bit
Id: ubuntu-14-04-x32 | Description: Ubuntu 14.04 32bit
Id: ubuntu-14-04-x64 | Description: Ubuntu 14.04 64bit
Id: ubuntu-15-04-x32 | Description: Ubuntu 15.04 32bit
Id: ubuntu-15-04-x64 | Description: Ubuntu 15.04 64bit



# Omit columns and only show ids
askme do dist-image -o --fields="id"

Output:
centos-5-8-x32
centos-5-8-x64
centos-6-5-x32
centos-6-5-x64
centos-7-0-x64
coreos-alpha
coreos-beta
coreos-stable
debian-6-0-x32
debian-6-0-x64
debian-7-0-x32
debian-7-0-x64
debian-8-x32
debian-8-x64
fedora-21-x64
fedora-22-x64
freebsd-10-1-x64
freebsd-10-2-x64
ubuntu-12-04-x32
ubuntu-12-04-x64
ubuntu-14-04-x32
ubuntu-14-04-x64
ubuntu-15-04-x32
ubuntu-15-04-x64



# Change delimiter value. Query google compute engine's supported disk type
askme gcloud gce-disk-type --delimiter=" || "

Output:
Id: local-ssd || Description: Local SSDs
Id: pd-ssd || Description: SSD Persistent Disk
Id: pd-standard || Description: Standard Persistent Disk


```



## Supported fields
[See supported fields](https://github.com/pirsquare/askme#supported-fields)


## Supported records
[See supported records](https://github.com/pirsquare/askme#aws)


## Note
Do not modify `source` directory. We use git subtree to push source data to source directory. If you want submit PR for changes in source data, submit it at [AskMe main repo](https://github.com/pirsquare/askme).

Project details


Download files

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

Source Distribution

askme-0.0.4.zip (12.8 kB view details)

Uploaded Source

File details

Details for the file askme-0.0.4.zip.

File metadata

  • Download URL: askme-0.0.4.zip
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for askme-0.0.4.zip
Algorithm Hash digest
SHA256 31d3f2a8704f737a49d5dcb9612b96030606af2a2e0c9859464c1823c875b804
MD5 2e62a58fffb7ecb02d51de1760119a4c
BLAKE2b-256 912e0fada45053b334801cf703311e611734a0e409930362d5a57b8b34ac1e12

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page