Archive for the ‘AMF’ Category

Introducing cPyAMF

Sunday, May 4th, 2008

Logo for cPyAMF

There are two parts to PyAMF: the core AMF encoder and decoder, and the gateway/remoting for transporting data between a server and a client.

Currently both parts are written in pure Python but the idea is to create a C version of the AMF encoder/decoder that can be used as a dropin which will increase performance significantly.

Cython

This will become a subproject called cpyamf that will be written with Cython, a language for writing Python extension modules that translates files from .cy, .cyp, .cyh to .c, .cpp, .h files.

For more information check the ticket or browse the sub-project in the repository.

Twisted Guestbook Example

Saturday, April 12th, 2008

We created a Guestbook Example to demonstrate a full featured application using Flex, Twisted, and PyAMF of course. Check it out after the jump!

(more…)

Authentication

Sunday, January 13th, 2008

In this tutorial, I’ll run through how to get a remoting server setup that deals with authentication. I’ll assume that you already have the latest version of PyAMF installed (at the time of writing, 0.1b is the most recent version).

I am going to build a WSGI remoting gateway, but you can use the principles applied here to any of the other supported gateway implementations (Django or Twisted). Check out the examples for more info.

(more…)

Socket example

Sunday, January 13th, 2008

The Socket class enables Actionscript to make socket connections and to read and write raw binary data. This example shows how to:

  • use the Twisted framework and PyAMF to create a socket server
  • create a connection with the socket server using Flex and Actionscript
  • send the system time from Python to the Flash Player as Actionscript Date object, with an interval of 1 second

(more…)

ByteArray example

Thursday, January 10th, 2008

We have created a simple PyAMF example for the ByteArray class in ActionScript which provides methods and properties to optimize reading, writing, and working with binary data. The PyAMF equivalent of this class is also called ByteArray that provides the same basic functionality. (more…)