MultiApp 1.0
A framework for command-line apps with multiple commands.
MultiApp is a framework so that you can give your applications a quick and easy way to have multiple functions at the command line. It's simple to use - you just create a subclass of MultiApp like this:
class FileStamper(MultiApp):
'''
FileStamper will manipulate logfiles in a special format. It is blah blah
blah...(more long description)
'''
name = "FileStamper"
version = "1.0"
shortdesc = "A logging package."
def do_log(self, file, message): # User types log at the prompt
# Add the message to the log...
do_log.usage = "FILENAME MESSAGE"
do_log.descr = "Adds a new entry to the log file."
def do_latest_entry(self, file, number=5): # User types latest-entry
# Retrieve the latest log message...
do_latest_entry.usage = "FILENAME [NUMBER]"
do_latest_entry.descr = "Retrieves the log's latest entry."
MultiApp provides your program with:
- Argument parsing that you can just treat like normal method arguments
- Integrated help system that works out of the box
- Very unobtrusive ways to define functionality
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| MultiApp-1.0.tar.gz (md5) | Source | 2009-01-01 | 4KB | 638 | |
- Author: LeafStorm/Pacific Science
- Home Page: http://pac-sci.homeip.net/index.cgi/swproj/multiapp
- Provides multiapp
-
Categories
- Development Status :: 4 - Beta
- Environment :: Console
- Intended Audience :: Developers
- License :: OSI Approved :: GNU General Public License (GPL)
- Natural Language :: English
- Operating System :: OS Independent
- Programming Language :: Python :: 2.5
- Topic :: Software Development :: Libraries :: Application Frameworks
- Package Index Owner: Leaf
- DOAP record: MultiApp-1.0.xml
