Home | Trees | Indices | Help |
|
---|
|
Root package for all executable CSB client programs.
There are roughly three types of CSB apps:
The main design goal of this framework is to provide a way for writing executable code with minimal effort, without the hassle of repeating yourself over and over again. Creating a professional-grade CLI, validating and consuming the command line arguments is therefore really straightforward. On the other hand, one frequently feels the need to reuse some apps or their components in other apps. For such reasons, a CSB Application is just a regular, importable python object, which never communicates directly with the command line interface or calls sys.exit(). The app's associated AppRunner will take care of those things.
Follow these simple steps to write a new CSB app:
csb.apps
package.
args
and eventually call
YourApp.exit()
. Return an instance of your app at
the end
if __name__ == '__main__': MyAppRunner().run()
See csb.apps.helloworld for a sample implementation.
Submodules | |
|
Classes | |
AppExit Used to signal an immediate application exit condition (e.g. |
|
AppRunner A base abstract class for all application runners. |
|
Application Base CSB application class. |
|
ArgHandler Command line argument handler. |
|
ExitCodes Exit code constants. |
Variables | |
__package__ =
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 4 20:19:03 2017 | http://epydoc.sourceforge.net |