ElementTree and lxml for pythonic XML processing in Python

ElementTree is a "pythonic" XML parser interface developed by Fredrik Lundh which is included in the Python standard library since version 2.5. It provides a very simple and intuitive API to process XML (well, much simpler and more intuitive than usual parsers). lxml is a more efficient parser with a compatible interface. Here are some useful tips to use ElementTree and lxml. ...

July 14, 2008

How to force urllib2 not to use a proxy

If no proxy is explicitly specified, urllib2 will use Internet Explorer proxy settings by default. The issue is that urllib2 does not take into account the list of addresses which should be reached directly without a proxy, e.g. localhost or the local LAN. In some situations, this means that only external addresses can be reached. It is possible to force urllib2 not to use any proxy, but this is not explained in the official Python documentation. ...

July 9, 2008

Unit tests in Python

Here are several solutions to run unit tests in Python. ...

June 24, 2008

Useful links about Python

Collection of various websites with useful information about Python, recipes, tips and tricks. ...

June 24, 2008

Using XML-DSig and OpenSSL in Python

Using XML-DSig (XML Digital Signature) and OpenSSL from Python scripts is not straightforward, but there are solutions. Here are a few links to useful libraries and articles. ...

June 23, 2008

SSTIC06 - Diode Réseau et ExeFilter

La diode réseau et ExeFilter sont deux projets complémentaires du CELAR pour construire des interconnexions hautement sécurisées entre réseaux de niveaux de sensibilité différents. Ils visent à permettre par exemple l’interconnexion de réseaux sensibles avec Internet, en garantissant une prise de risque minimale vis-à-vis des chevaux de Troie et autres menaces. ...

June 1, 2008

A batch file to ease Python packages install on Windows

Here is a simple batch file "install.bat" to ease Python packages install on Windows. ...

January 3, 2008

SSTIC07 - Sécurité d’OpenDocument et Open XML (OpenOffice et MS Office 2007)

Analyse des problèmes de sécurité liés aux nouveaux formats de documents OpenDocument (OpenOffice) et Open XML (MS Office 2007). ...

November 1, 2007