Unserialize PHP data in python

Chris Salij picture Chris Salij · May 9, 2011 · Viewed 15k times · Source

Possible Duplicate:
How to read/make sense of a PHP serialised data string in python

I'm using python to access a database which is managed by a Drupal install. The data I want to access in Drupal in saved in the database as a PHP serialized object.

Are there any pre-built python modules which can deserialize a PHP serialized object into a python object? I've done some searching and come up with nothing.

I realize I could write my own parser from scratch but I'd rather use something thats been tried and tested.

Answer

MattH picture MattH · May 9, 2011

Are you looking for phpserialize?