openstackclient package

openstackclient package

Subpackages

Submodules

openstackclient.i18n module

openstackclient.shell module

Command-line interface to the OpenStack APIs

class openstackclient.shell.OpenStackShell

Bases: OpenStackShell

build_option_parser(description, version)

Return an argparse option parser for this application.

Subclasses may override this method to extend the parser with more global options.

Parameters:
  • description (str) – full description of the application

  • version (str) – version number for the application

  • argparse_kwargs – extra keyword argument passed to the ArgumentParser constructor

initialize_app(argv)

Global app init bits:

  • set up API versions

  • validate authentication info

  • authenticate against Identity if requested

openstackclient.shell.main(argv=None)

Module contents

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.