pyre.shells.Application¶
Module Contents¶
-
class
pyre.shells.Application.Application(name=None, **kwds)¶ Bases:
pyre.componentAbstract base class for top-level application components
{Application} streamlines the interaction with the pyre framework. It is responsible for staging an application process, i.e. establishing the process namespace and virtual filesystem, configuring the help system, and supplying the main behavior.
-
USER= user¶
-
SYSTEM= system¶
-
DEFAULTS= defaults¶
-
pyre_namespace¶
-
shell¶
-
doc= my hosting strategy¶
-
DEBUG¶
-
doc= debugging mode
-
pyre_home¶
-
pyre_prefix¶
-
pyre_defaults¶
-
pfs¶
-
layout¶
-
pyre_renderer¶
-
info¶
-
warning¶
-
error¶
-
debug¶
-
firewall¶
-
main(self, *args, **kwds)¶ The main entry point of an application component
-
launched(self, *args, **kwds)¶ Notification issued by some shells that application launching is complete
-
help(self, **kwds)¶ Hook for the application help system
-
run(self, *args, **kwds)¶ Ask my shell to launch me
-
pyre_loadLayout(self)¶ Create my application layout object, typically a subclass of {pyre.shells.Layout}
-
pyre_explore(self)¶ Look around my runtime environment and the filesystem for my special folders
-
pyre_mountPrivateFilespace(self)¶ Build the private filesystem
-
pyre_mountApplicationFolders(self, pfs, prefix)¶ Explore the application installation folders and construct my private filespace
-
pyre_mountPrivateFolder(self, pfs, prefix, folder)¶ Look in {prefix} for {folder}, create it if necessary, and mount it within {pfs}, my private filespace
-
pyre_resolveDependencies(self)¶ Go through my list of required package categories and resolve them
The result is a map from package categories to package instances that satisfy each requirement. This map includes dependencies induced while trying to satisfy my requirements
-
pyre_shutdown(self, **kwds)¶ Release all resources and prepare to exit
-
pyre_interrupted(self, **kwds)¶ The user issued a keyboard interrupt
-
pyre_interactiveSessionContext(self, context)¶ Prepare the interactive context by granting access to application parts
-
pyre_interactiveBanner(self)¶ Print an identifying message for the interactive session
-
pyre_help(self, indent=' ' * 4, **kwds)¶ Hook for the application help system
Print an identifying message for the help system
-
pyre_respond(self, server, request)¶ Fulfill a request from an HTTP {server}
-