summaryrefslogtreecommitdiff
path: root/example/example.py
Commit message (Collapse)AuthorAgeFilesLines
* Changes to make our project as welcoming as possible for new contributors.Todd Leonhardt2017-02-261-53/+0
| | | | | | | Changes include: 1) Added CONTRIBUTING.md with detailed instructions for how to contribute, which should be especially useful to those new to open source in general or GitHub in particular 2) Added CODE_OF_CONDUCT.md which sets ground rules for participants’ behavior and helps to facilitate a friendly, welcoming environment 3) Renamed the "example" directory to "examples" in the hope that one day soon there may be more than a single example ;-)
* Added optional parameter to cmd2.Cmd.__init() to enable an "ipy" command.Todd Leonhardt2017-02-181-0/+4
| | | | | | If IPython is installed AND the __init__ initilizer is passed a "use_ipython" keyword argument set to "True", then and "ipy" command will be present. This ipy command starts an interactive IPython shell embedded within the cmd2 application. This IPython shell has access to all of the local variables (e.g. self), but any modifications made within it will NOT persist once it is exited. This IPython shell doesn't have tight integration with the Python interpreter running the cmd2 application like the Python interpreter available with the "py" command. However, due to features such as tab-completion and built-in help, the IPython shell is a lot more efficient for developers to use to debug their cmd2 applications - the introspection on self is extremely useful for getting to the bottom of thorny debugging problems.
* Fixed example.py and exampleSession.txt so that the example runs and the ↵TL2017-01-111-7/+18
| | | | | | test passes when running "python example.py -t exampleSession.txt". Also made the front-page documentation consistent so it references the actual code and text in this modified example.
* Whitespace change to be mostly PEP8 compliantTodd Leonhardt2016-12-091-3/+4
|
* First stage of refactoring to support full simultaneous Python 2 and 3 ↵Todd Leonhardt2016-12-091-1/+1
| | | | compatibility via use of the six module.
* Minor cleanupFederico Ceratto2016-02-231-3/+5
|
* update Trove classifiersCatherine Devlin2014-03-131-1/+1
|
* Indicate change in repository host to bitbucketCatherine Devlin2012-05-261-0/+35