Skip to main content

ESI-LEAP CLI

Project description

python-esileapclient

Python API for interacting with ESI-Leap

Overview

This is a client for the OpenStack Lease API. It provides:

  • a openstack command-line plugin: openstack lease

python-esileapclient is licensed under the Apache License, Version 2.0, like the rest of OpenStack.

Installation

To install as a package:

# pip install python-esileapclient`

To install from source:

$ git clone https://github.com/CCI-MOC/python-esileapclient
$ cd python-esileapclient
# python setup.py install

openstack lease CLI

The openstack lease command-line interface is available when the lease plugin (included in this package) is used with the OpenStackClient

The client uses the OpenStack Identity API (Keystone) to authenticate users with an OpenStack cloud and to locate the lease service endpoint (see here for more info). Currently, overriding this endpoint is not supported. Credentials for authentication can be provided via command-line parameters (e.g. --os-username, --os-password, etc.) or by setting environment variables (e.g. OS_USERNAME, OS_PASSWORD).

Usage Examples:

openstack esi offer list

will make a GET request to ESI-Leap and print to screen a list of all the offers in the ESI-Leap database.

openstack esi offer show <uuid>

will make a GET request and print fields for offer with the given uuid.

openstack esi offer create --resource-type dummy_node --resource-uuid 1718

will make a POST request to ESI-Leap to create the offer with the given credentials. Prints to the screen the newly created offer with resource type 'dummy_node' and resource uuid '1718'.

openstack esi offer delete <uuid>

will make a DELETE request to ESI-Leap to delete the request with the given uuid. Prints to the screen whether the command was a success or not.

This repository is currently a work in progress.

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

python_esileapclient-1.0.0.tar.gz (39.8 kB view details)

Uploaded Source

Built Distribution

python_esileapclient-1.0.0-py3-none-any.whl (63.4 kB view details)

Uploaded Python 3

File details

Details for the file python_esileapclient-1.0.0.tar.gz.

File metadata

  • Download URL: python_esileapclient-1.0.0.tar.gz
  • Upload date:
  • Size: 39.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.8

File hashes

Hashes for python_esileapclient-1.0.0.tar.gz
Algorithm Hash digest
SHA256 caaab74d5d72749bad5b5d02ef259f9b2f3678284991a36fe06272d6f8787d79
MD5 5d0ac991f7f97ccb550e246e2048b351
BLAKE2b-256 81992bb399819f805b3a5a3df24ff6752ce99967daff69f9c87bd61e9ef4d54b

See more details on using hashes here.

File details

Details for the file python_esileapclient-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: python_esileapclient-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 63.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.8

File hashes

Hashes for python_esileapclient-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb581c982bfe9f0824e3703eabbd80284f4ebbf94f6a83183358d81c7590c3f7
MD5 3c6ee67d341ca24bcdaf72da24957c3f
BLAKE2b-256 78ee7eb240563825c43305dc5883bd684d6df68f34cc2e0ddbd834252c371a02

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