"…mais ce serait peut-être l'une des plus grandes opportunités manquées de notre époque si le logiciel libre ne libérait rien d'autre que du code…"

Archive for août 2009

Traitement d’images avec python: python-magic, pyexiv2, PIL, ReportLab, Motmot, Pythonmagick, magickpy, APLpy

Posted by patrick sur août 10, 2009

Source: Python magazine, june 2009, volume 3, issue 6,  « Image processing with python » by Eugen Winterberger.

This library wrap the FreeImage library functions so a python developer can easy drive FreeImage .dll/.so
For do it I use ctypes and the FreeImage library

Posted in 2009, python, Traitement d'images | Tagué: , , , , , , , , , , , , | Leave a Comment »

Quelques nouvelles de projets python : m2crypto, Django 1.1, pySerial, python-gnupg, pyscard

Posted by patrick sur août 9, 2009

  • http://www.heikkitoivonen.net/blog/2009/07/27/m2crypto-020-beta-cycle-begins/ (‘Better late than never… I am announcing the first beta of M2Crypto 0.20 release. M2Crypto is the most complete Python wrapper for OpenSSL.The 0.20 release has been in development for about nine months. About 30 bugs and new features have been implemented by more than ten people. Unit tests now cover 80% of the code base. Tinderbox is used to automatically test changes on various flavors of Ubuntu, Fedora Core, Redhat and Cygwin. We could use more Tinderbox clients, so please drop me a line if you have some spare machine cycles available.’)
  • http://www.djangoproject.com/weblog/2009/jul/29/1-point-1/ (‘After nearly a year of development, lots of new features and thousands of other improvements, Django 1.1 is here and ready for prime time! For a full rundown of what’s new and what’s changed, consult the release notes; to grab a copy, swing by the Django download page. And for the security-conscious, signed checksums for the release tarball are available. This release also contains the security update rolled out earlier tonight for older release series. Django 1.1 is the result of hard work by hundreds of people who’ve contributed code to Django and many more who’ve donated their time to reporting, triaging, tracking down and helping to fix bugs and develop new features. Django literally would not be able to happen without all of you, so stop and give yourselves (and any other contributors you know) a pat on the back.Thanks once again to everyone who’s helped out, and we hope to see you all at DjangoCon 2009 in Portland, Oregon, and all along the path to Django 1.2‘)
  • http://eli.thegreenplace.net/2009/07/30/setting-up-python-to-work-with-the-serial-port/ (‘The serial port (a.k.a. COM-port, or RS232) is slowly disappearing from desktop and laptop computers, but it’s still a very important tool for embedded engineers and people controlling equipment in general. The reason for this is that the serial port is very simple to set-up and use both from embedded software code (the vast majority of MCUs and controllers have UART ports) and from a PC. Since last year, having moved to Python, I’ve been happily employing the excellent PySerial module to do this. I want to write a couple of posts on combining PySerial with GUIs and dynamic charts, but first I’ll have to explain how to set it up. Installing a COM-port emulator: As I’ve mentioned, it’s hard to come by a PC with real COM ports these days. Although there are many USB to RS-232 adapters on the market, the simplest thing to do if all you have is a single computer is installing an emulator. One that I recommend is called com0com. It is simple to install and works pretty well. So, download com0com and follow the installation instructions carefully to create two virtual COM ports which are connected to each other. For me com0com created ports named CNCA0 and CNCB0 – in future versions the names may be different, but it really doesn’t matter.’)
  • http://groups.google.com/group/comp.lang.python.announce/browse_thread/thread/d2639ec8fff51c14/663833ebf069aea1?show_docid=663833ebf069aea1 (‘I’m happy to announce a release candidate of pySerial: 2.5-rc1 Whats new:
    – Updated documentation (now using Sphinx, see link above).
    Windows implementation uses ctypes (instead of pywin32).
    – Python 3.x compatibility.
    – Using « bytes » type when available.
    – Works together with Pythons new io library
  • http://code.google.com/p/python-gnupg/ (‘The GNU Privacy Guard (gpg, or gpg.exe on Windows) is a command-line program which provides support for programmatic access via spawning a separate process to run it and then communicating with that process from your program. This project implements a Python library which takes care of the internal details and allows its users to generate and manage keys, encrypt and decrypt data, and sign and verify messages.’)
  • http://pyscard.sourceforge.net/ (‘pyscard is a python module adding smart cards support to python.’)

Posted in 2009, cryptographie, Sécurité informatique | Tagué: , , , | Leave a Comment »

Python package management: ‘Distribute’ le fork de ‘setuptools’ est sur pypi

Posted by patrick sur août 9, 2009

Grâce au travail de Tarek Ziadé (http://twitter.com/tarek_ziade, http://ziade.org/blog)  le fork amical de setuptools est sorti en version 0.6 le dimanche 9 août 2009:

  • http://pypi.python.org/pypi/distribute (’Download, build, install, upgrade, and uninstall Python packages — easily! Distribute is a friendly fork of the Setuptools project. Distribute is a friendly fork of the Setuptools project. )
    • http://bitbucket.org/tarek/distribute/wiki/Home
    • http://tarekziade.wordpress.com/2009/07/22/preparing-to-release-distribute-0-6/ (’According to the poll, The name of the fork will be Distribute ! The code should not be changed anymore at this point, and I am working on the bootstraping so installing Distribute will work with an existing Setuptools installation and will replace it for the applications that requires it. This is done by detecting an installation of Setuptools, and replacing it with a fake installation. This means that once you’ve installed Distribute, applications and especially installers will think that setuptools 0.6c9 is installed.That’s pretty strong and intrusive, but required for a simple switch : even if the programs you are using have a setuptools dependency, they will work without requiring any change on the code or in their setup.py files. Same goes for zc.buildout apps.

Autres liens:

Posted in package_management, python | Tagué: , | Leave a Comment »