jayrod / cookiecutter-python-cmd2-ext-plug

A cookiecutter template for creating a cmd2 base application with a sample plugin. The sample plugin and base application are separate installation packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cookiecutter CMD2 Basic Project

Cookiecutter template for a Python CMD2 base application that uses a plugin from a separate package.

Features of generated Applications

  • Base Application
  • Plugin
  • Plugin Settables
  • Application config file

Quickstart

Install the latest Cookiecutter if you haven't installed it yet (this requires Cookiecutter 1.4.0 or higher)::

pip install -U cookiecutter

Generate a Python package project::

cookiecutter https://github.com/jayrod/cookiecutter-python-cmd2-ext-plug.git

Reasoning

I wanted to create a more advanced usage example for Cmd2 applications. Through the use of the pluginlib library you can create an extremely dynamic cmd2 application. Each plugin created must be installed as a separate application but will be available in the main cmd2 application.

This format makes it easy to create a stand alone plugin application while allowing a developer to create a composite application based on installed plugins.

About

A cookiecutter template for creating a cmd2 base application with a sample plugin. The sample plugin and base application are separate installation packages


Languages

Language:Python 97.2%Language:Makefile 2.2%Language:Shell 0.6%