smisk.mvc.console
New in version 1.1.
Interactive console aiding in development and management.
Start the console by importing and running its main() from a file in your
application top module:
#!/usr/bin/env python
from smisk.mvc.console import main
if __name__ == '__main__':
main()
The console can also be run directly from the module:
python -m smisk.mvc.console
-
class smisk.mvc.console.Console(locals=None, filename='<console>', histfile='/Users/rasmus/.console-history')
-
init_history(histfile)
-
save_history(histfile)
-
smisk.mvc.console.export(obj)
- Export members of obj to __builtin__ global namespace
-
main(app=None, chdir=None, appdir=None, log_format='x1b[1;33m%(levelname)-8s x1b[1;31m%(name)-20sx1b[0m %(message)s', intro_eval=None, *args, **kwargs)
Console entry point.
Excessive arguments and keyword arguments are passed to mvc.Application.__init__().
If app is already an instance, these extra arguments and keyword arguments
have no effect.
| Parameters: |
- app : Application
An application type or instance.
- appdir : string
Application directory. If not defined and running this module directly, the
current working directory will be used. If not defined and calling this function
from another module, dirname(<__main__ module>.__file__) will be used.
- log_format : string
Custom logging format.
|
| Return type: | None
|