PyHP 1.0.0 - beta has been released!
The new beta has been released. This version adds a lot of new features and bugfixes:- The new pyhp.env dictionary exports information about the environment the PyHP interpreter is running in.
- Now headers support multiple values for the same key in input / output.
- Database ResultSet is now iterable.
- Exposed pyhp.status to return status codes different from 200 and 500.
- Exposed pyhp.content_type to serve something different from text/xhtml
- Added SessionTimeout and SessionName configuration options to define Session timeout in seconds and Session cookie name
- Lots of bugfixes. PyHP should now be more stable.
PyHP is an Apache module which embeds the
Python language inside web pages.
It is inspired by the PHP module to permit quick and easy dynamic web pages creation with
Python.
The web developer using PyHP will find inside his/her pages a new Python
object called pyhp which is full of all the functionalities needed to develop advanced web sites.
Here there is a quick list of what's been implemented so far:
- Apache Configuration Options
A full set of Apache options to fine-tune PyHP in your environment. - Request Handling
Inside the pyhp.headers_in and pyhp.headers_out special objects you can have full access to headers sent to or received from the browser. - Support for GET and POST forms (including file upload)
Using the pyhp.post and pyhp.get dictionaries, you can have full access to all data sent by the user to your web application.
With pyhp.uploads manager you can manage file uploaded with forms. - Full Cookie Support
Using the pyhp.cookies.in and pyhp.cookies.out dictionaries, you can get and set cookies in your application. There is also the new Cookie object to easy cookie management. - Session Management
By using the pyhp.session object, you can fully manage user session to your web application. - Database (MySQL only, by now) Connection
PyHP offers a simple and intuitive connection interface to MySQL, one of the most known and used database management system (DBMS) in open source environments.
Many more DB will be added in the near future, all managed by the pyhp.db object. - Logging and Exception support
PyHP has a full support for debug using the pyhp.log and throwing exceptions to the browser or Apache log file.


