Skip to main content

Command is a simple framework for handling command execution within your python application.

Project description

About

Command is a simple framework for handling command execution within your Python application.

Note: This is a Javascript => Python port of https://github.com/known-as-dan/command-npm

Usage

Recreating the common "echo" command using Command & Python:

from command import command

def echo(args):
	separator = " "
	message = separator.join(args)
	print(message)

command.Command("echo", "<message>", "Prints out a message.", echo)

command.init()

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

command-known-as-dan-1.1.0.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

command_known_as_dan-1.1.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

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