Standalone API Reference

Koji Smoky Dingo - Standalone

This package contains adaptive mechanisms for converting a SmokyDingo command into a stand-alone console_script entry point.

author:

Christopher O'Brien <obriencj@gmail.com>

licence:

GPL v3

class AnonLonelyDingo(name=None)[source]

Bases: LonelyDingo

An adaptive layer to assist in converting an AnonSmokyDingo instance into a callable suitable for use as a console_scripts entry point.

Parameters:

name (str) -- The name that this command is being represented as

create_session(profile)[source]
Parameters:

profile (str)

Return type:

ManagedClientSession

class LonelyDingo(name=None)[source]

Bases: SmokyDingo

An adaptive layer to assist in converting a SmokyDingo instance into a callable suitable for use as a console_scripts entry point.

Parameters:

name (str) -- The name that this command is being represented as

create_session(profile)[source]
Parameters:

profile (str)

Return type:

ManagedClientSession

default_profile: str = None

when set this becomes the default value for the --profile= argument added to argument parser

classmethod main(name=None, args=None)[source]
Parameters:
Return type:

int

parser()[source]

Creates a new ArgumentParser instance and decorates it with arguments from the arguments method.

profile_arguments(parser)[source]
Parameters:

parser (ArgumentParser)

Return type:

ArgumentParser

Standalone Modules