[guispeak] Announcing InPy

  • From: Jamal Mazrui <empower@xxxxxxxxx>
  • To: guispeak@xxxxxxxxxxxxx, programmingblind@xxxxxxxxxxxxx, program-l@xxxxxxxxxxxxx, uaccess-l@xxxxxxxxxxxxxx, blindmath@xxxxxxx
  • Date: Wed, 29 Oct 2008 17:53:46 -0500 (EST)

Now available at

Version 1.0
October 29, 2008
Copyright 2008 by Jamal Mazrui
LGPL license

InPy (short for Interactive Python) is a free, console mode environment
for testing and evaluating code in the Python language.  InPy seeks to
enhance the default shell environment of Python for Windows in ways that
make it more productive, especially for screen reader users.  The program
works well with a screen reader, since new output to the console is
automatically read.  InPy may also be used as a speech-friendly calculator
or workspace, since various math and science modules are available for
Python, e.g., from the SciPy page at

Python is being used as the development language in several
accessibility-related projects, including

NonVisual Desktop Access (NVDA)


Yet Another Braille Translator

and SayTools

Interested programmers can leverage such existing solutions to increase
the availability of software applications that are accessible.

The main code for this project, InPy.py, should work on Python 2.4, 2.5,
or 2.6.  Development and testing are currently done with 2.5, so that is
the recommended version.

To manually install the program, download the archive at
and unzip it into a directory that is convenient to access at a Windows
command prompt, e.g.,

To run the program, execute the batch file InPy.bat.  If you are in its
directory, you can just enter
at the command prompt (capitalization does not matter).  The batch file
uses Python 2.5 if it has been installed in the default directory

Alternatively, you can invoke the program with the latest version of the
EdSharp text and code editor, available at

EdSharp includes features for managing indentation in Python.  After
picking the Python language with Control+Shift+F5, InPy is available with
the Go to Environment command, Control+Shift+G (assuming Python is
installed).  If you update an EdSharp installation, press Alt+Shift+0 for
new default settings that include InPy support.

InPy is developed with the InteractiveConsole class of the Python
language, implementing an interpreter that works like the standard one
with additional enhancements.  This includes being able to clear the
screen with the cls command.  You can also save output from a session with
the log command.

For anyone interested in learning to program in Python, some useful links
are as follows.  The direct download address of the Python 2.5 installer

The main list of Python add-in packages is at

A convenient utility called easy_install for adding or updating packages
is at

A collection of text tutorials on Python is at

I invite Python programmers to contribute ideas and code to this open
source project.  Below is the online help of this release:

InPy 1.0 by Jamal Mazrui

Type a Python statement or expression, followed by Enter.
A trailing semicolon (;) may be used to seperate multiple statements
on the same line, though indentation would still
need to be embedded for a nested block.
The prompt changes from a greater than symbbol (>) to a period (.)
if more input is needed to complete a statement.

If the output of a command is more than 23 lines of text,
the display is paused so that it does not scroll off the screen.
The More? prompt then requests a choice,
to be followed by Enter.
Enter the letter y or nothing to answer Yes for the next screen.
Enter n for No, thereby returning to the > input prompt.
Enter a for All text, which continues without pausing.
This is useful when logging the output to a file.

Besides regular Python syntax, this interpreter adds some commands.
A command name is lower case, with a space before any argument,
which is not quoted.

exit or quit - end this program

cls - clear the screen

exec FileName - execute a Python script file

log FileName - log output to a new file

log off - stop logging

help - display this documentation

Other help features of the standard Python interpreter are available,
e.g., the help() and dir() functions,
used either with or without parameters.

** To leave the list, click on the immediately-following link:-
** [mailto:guispeak-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** guispeak-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:guispeak-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** guispeak-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts:

  • » [guispeak] Announcing InPy