python

Migrating python library to python 3.x

Having a library working under Python 2.X and Python 3.X is not easy.
Having unittest, doctest, scripts, documentation and packaging working under both Python 2.x and 3.x is a lot of work.

This is what I did with pyzmail.

A good way to start, is to use distribute to release your package.

Start by reading Supporting both Python 2 and Python 3 with Distribute.

Google Web Toolkit and Python's Pyjamas

I was curious about the Google Web Toolkit and the Google App Engine for longtime, but never get the opportunity to make a try.

Surfing the web, looking for Python's things, I found Pyjamas, a Python-based Web Application Development Framework.

pyzmail : a high level mail library for Python

pyzmail is a high level mail library for Python. It provides functions and classes that help to read, compose and send emails. pyzmail exists because their is no reasons that handling mails with Python would be more difficult than with popular mail clients like Outlook or Thunderbird. pyzmail hide the difficulties of the MIME structure and MIME encoding/decoding. It also hide the problem of the internationalized header encoding/decoding.

pyzmail homepage

Add support for google analytics to epydoc

In fact the code is already in epydoc documentation but nowhere in the sources, even in the SVN repository ! I wrote this patch myself, using the code I found in the documentation.

To use it, you have to specify your google analytics Id like this :

generate and send mail with python: tutorial

The code and tips here, are all included in the new pyzmail library. More samples and tips can be found in the API documentation.

Parsing email using Python part 2 of 2 : The content

The code and tips here, are all included in the new pyzmail library. More samples and tips can be found in the API documentation.

The first part was about mail header. This second part take focus on the mail content.

Today's mails include HTML formatted texts, pictures and other attachments.

Parsing email using Python part 1 of 2 : The Header

The code and tips here, are all included in the new pyzmail library. More samples and tips can be found in the API documentation.

Welcome to this series of two small articles about how to parse emails using Python. This first one is about mail header. The second one is about mail content.

Deploy your python application

Small applications are more attractive and easy to install when they are composed by one single runnable file. This article compare the different ways to release your small Python application to make it easy to install and easy to run.

Subscribe to RSS - python