background preloader

Python

Facebook Twitter

Links related to Python development.

The Python Tutorial — Python v2.6.9 documentation. Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, and may be freely distributed. The same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation. The Python interpreter is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C).

Python is also suitable as an extension language for customizable applications. The Glossary is also worth going through. Transforming code into Beautiful, Idiomatic Python by Raymond Hettinger. Transforming Code into Beautiful, Idiomatic Python. PyDev. Mock - Mocking and Testing Library — Mock 1.0.1 documentation. Web Services Made Easy — WSME 0.6. Web Service Made Easy (WSME) simplify the writing of REST web services by providing simple yet powerful typing which removes the need to directly manipulate the request and the response objects. WSME can work standalone or on top of your favorite python web (micro)framework, so you can use both your preferred way of routing your REST requests and most of the features of WSME that rely on the typing system like: Alternate protocols, including ones supporting batch-callsEasy documentation through a Sphinx extension WSME is originally a rewrite of TGWebServices with focus on extensibility, framework-independance and better type handling.

How Easy ? Here is a standalone wsgi example: from wsme import WSRoot, expose class MyService(WSRoot): @expose(unicode, unicode) # First parameter is the return type, # then the function argument types def hello(self, who=u'World'): return u"Hello {0} ! ". Main features Install or, if you do not have pip on your system or virtualenv. Introduction and History — Pecan 0.6.1 documentation. Welcome to Pecan, a lean Python web framework inspired by CherryPy, TurboGears, and Pylons. Pecan was originally created by the developers of ShootQ while working at Pictage. Pecan was created to fill a void in the Python web-framework world – a very lightweight framework that provides object-dispatch style routing. Pecan does not aim to be a “full stack” framework, and therefore includes no out of the box support for things like sessions or databases (although tutorials are included for integrating these yourself in just a few lines of code).

Pecan instead focuses on HTTP itself. Although it is lightweight, Pecan does offer an extensive feature set for building HTTP-based applications, including: Object-dispatch for easy routingFull support for REST-style controllersExtensible security frameworkExtensible template language supportExtensible JSON supportEasy Python-based configuration.