About

pyplay is a command line tool that invokes the interactive Python
shell, but starts it up with tab completion turned on, common paths
added to sys.path, common modules preloaded and optionally some
startup python commands run.

It is configurable, both at a system-wide level and a per project
(directory) level.

If you explicitly supply the PYPLAY_CONFIG_DIR environment variable,
that directory will be used to find the config.yaml file. If you set
PYPLAY_CONFIG_DIR to an empty string, no config file will be read,
even if the one of them exists.

Also, PYPLAY_CONFIG_DIR, ~/.pyplay/ and ./pyplay/ will be
added to the front of sys.path if they exist, so you can put modules
that you want to play with in those directories.

PyPlay Commands

Pyplay adds some extra shell commands. The current commands are:

h()

Show the PyPlay help screen.

y(object)

Print a YAML dump of any object. (Requires the yaml module)

From the Author

The interactive Python shell is a great tool for learning Python,
because Python has such great introspection. The only things that bugged
me about it are 1) I am always needing to set it up a certain way every
time I use it, B) and that it doesn’t have tab completion on by default.
pyplay takes care of these issues nicely.

pyplay is my first (but definitely not last) Python module. I hope
you find it useful. Please email me if you have any problems or
suggestions.