ndPython

 

ndPython is a  version of the Stackless Python interpreter, designed to work under Nanodesktop PSPE/PSP.

 

Link to official StackLess Python page

 

ndPython is a derived work, not officially supported by Stackless Python developers but based on their standard virtual machine.

 

The current version of ndPython is S252N040V05.

(Stackless Python 2.52 - Nanodesktop 0.4 - Vers. 05)

 

Using this program you can execute your .py scripts under the real Playstation Portable (or, for your convenience, using the PSPE emulator). This is made possible thank to the advanced technology provided by Nanodesktop SDK.

 

ndPython incorporates all functionalities that are present in that moment in the current version of Nanodesktop SDK, like:

 

- A complete windows environment;

- Support for 13 different image formats;

- Support for Virtual Keyboards;

- Support for WAV/MP3 decoding via Media Engine;

- Support for sprites, winsprites and desktop objects;

- Support for TrueType fonts;

- Support for network functionalities.

 

The interpreter is designed to use Nanodesktop HAL (Hardware Abstraction Layer). The system is reliable and compliant with the standards defined in x86 version of  Stackless Python 2.5.2.

 

The system is composed by 3 programs.

 

ndPython interpreter

 

An interactive version of the Stackless interpreter. The commands are entered by the user using the Nanodesktop standard Virtual Keyboard or through a infrared keyboard (for this case ndPiKeyDriver.Prx is used). 

 

Download ndPython interpreter

 

 

ndPython compiler

 

Using this homebrew, you can choose your Python script (.py file) and you can compile it, obtaining a byte-code program (.pyc) ready to be executed by the ndPython executor.

 

Download ndPython compiler

 

 

ndPython executor (ndPython_ExecPYC)

 

This homebrew can execute a given .pyc bytecode program. The executor (called also ndPython virtual machine) can be redistributed under the terms of the attached license.

 

Download ndPython ExecPYC

 

 

If you want further details, you can see the file README.DOC  in the 3 packages.

For usage, the documentation refers to chapter 36 of the Nanodesktop user guide:

 

Download Nanodesktop user guide

 

 

Università degli

Studi di Messina

 

Visilab

Computer Vision Laboratory

 

 

 

  Back