Werkzeug 0.2 Released!
Wohoo. Werkzeug 0.2 is out now. Werkzeug started as simple collection of various utilities for WSGI applications and has become one of the most advanced WSGI utility modules. It includes a powerful debugger, full featured request and response objects, HTTP utilities to handle entity tags, cache control headers, HTTP dates, cookie handling, file uploads, a powerful URL routing system and a bunch of community contributed addon modules.
So, what’s new in 0.2? Countless things and too many for this small list, but here the most important ones:
- The path converter limitation is gone. rejoice!
- In the contrib package there is now a secure cookie (basically a hashed a client side session storage)
- Exceptions can now return response objects so that you can add headers etc.
- You can now convert a response object to a different type of response objects on the fly (for example if you have your own response object subclass with special features but the response object returned by a function is a simple BaseResponse)
- There are a bunch of extra features for response and request objects now (available as mixin classes) for HTTP header parsing and dumping
- All the routing exceptions are now HTTPExceptions which simplifies dispatching a lot
- werkzeug.script has a much simpler way of specifying boolean parameters
- lazy_property is now called cached_property, update your code!
- many cool small helper functions that deal with python modules and packages. There is find_modules which can return a generator for all the modules below a package and import_string which allows you to simply import objects from a string. No more __import__ hackery needed.
- the usage of the map adapter is much easier now too and a lot more rest compliant. See the new documentation
- dozens of small fixes and additions!
There is also a new website and documentation and the tutorial was translated to German. For 0.3 we hopefully have some more translations for the tutorial and a better documentation for the contrib modules which are currently just documented in docstrings.
Grab it from the cheeseshop while it’s hot.
sweet - thanks for the good work
Comment by Ronny Pfannschmidt — Wednesday, February 13th, 2008 @ 11:07 pm