Adapter Framework

The Adapter Framework allows PyAMF to integrate nicely with other Python packages. This includes setting up type conversions, class mappings, etc.

As of 0.3.1, we have adapters for the following packages:

We are working on adapters for:

How it works

The adapter framework works silently in the background. This means that the user does not need to specifically import the Django adapter module within PyAMF, it is all handled in the background. It works by using a custom version of the Importing module - including unit tests (!) to fire a callback when the django module is imported and accessed.

So, code like this works:

from django import http
import pyamf

As well as:

import pyamf
from django import http

The adapter framework makes it easy to add other packages to the list, as PyAMF matures.

Building your own adapter

[ more here soon ]

Waiting for #350 to close.

Contributions welcome!