Python

Python tips - How to easily convert a list to a string for display

There are a few useful tips to convert a Python list (or any other iterable such as a tuple) to a string for display.

Recommended Python modules and tools

Collection of useful Python modules and tools, sorted by use case.

How to parse configuration files in Python

There are several solutions to parse configuration files in Python.

A mini Python tutorial

Here is a mini Python tutorial, for people who want to quickly learn Python basics. It also provides links to more detailed documentation. Since January 2010, a more complete Python crash course is also available, with slides and samples.

HTML.py - a Python module to easily generate HTML tables and lists

HTML.py has been developed to easily generate HTML code for tables and lists in Python scripts. This is mostly convenient to generate reports in HTML or simple web applications in lightweight frameworks such as CherryPy.

BlindFTP - transfert de fichier pour diode réseau

BlindFTP est un outil simple et portable qui permet de transférer des fichiers à travers une liaison réseau unidirectionnelle (sans acquittement), par exemple une diode réseau optique.

pyClamd - use ClamAV antivirus from Python

pyClamd is a portable Python module to use the ClamAV antivirus engine on Windows, Linux, MacOSX and other platforms. It requires a running instance of the clamd daemon. pyClamd is more portable than pyClamAV because it does not need to be compiled, so it works on Windows.

This is a slightly improved version of pyClamd v0.1.1 originally created by Alexandre Norman and published on his website: http://xael.org/norman/python/pyclamd/

XML Canonicalization (C14N) in Python using lxml

XML Canonicalization (C14N) is useful in some cases such as digital signature.
lxml provides a very easy way to do it in Python. However, the current version lxml 2.1 does not give access to all C14N parameters. Here is a simple patch to improve its C14N support.

How to display standard file icons in wxPython on Windows

A very useful recipe to display standard Windows file icons in wxPython:

http://ginstrom.com/scribbles/2007/08/31/file-list-with-icons-on-wxpytho...

Inspired from this message: http://mail.python.org/pipermail/python-win32/2005-March/003071.html

Does anyone know how to do the same on Linux and MacOSX ?

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.

Syndiquer le contenu