libextractor
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libextractor] Python binding to libextractor using ctypes


From: Bader Lejmi
Subject: [libextractor] Python binding to libextractor using ctypes
Date: Mon, 29 May 2006 23:46:04 +0200

Hi,

After my conversation with Christian Grothoff last saturday, I decided to finish the python binding for libextractor.
Current one is unusable though it could be finished. But when Jozo told me about ctypes,
I started the python binding from scratch.

I think it's the best way because I want it:
* easy and quick to code
* readable (it's python)
* straightforward to maintain (it's about 300 lines)
* pythonic, it shouldn't be a C API ported to python but a python one using a C library

What it lacks:
- binary support (thumbnail)

This version is not my first try but I did unit tests (doctest) and polished the code.
The extract method doesn't return a dictionary but a list which is transformable into a dict
by wrapping it with dict()

Please test it and give me feedback.
I plan to release it to cheeseshop (python modules repository: http://cheeseshop.python.org/pypi )
during this week but if you tell me not to release it I won't.

I was unaware of the C binding nokos did. I started my own binding before knowing it. Since
it's 821 lines long without any documentation or tests I think that's my attempt isn't worthless.

PS: nokos, I think you plan to start your own beagle-like application, am I wrong ?
Please contact me on IRC: Bader on irc.freenode.net or jabber address@hidden
or by mail at address@hidden

Attachment: Extractor-0.5.tar.gz
Description: GNU Zip compressed data

Attachment: Extractor-0.5-py2.4.egg
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]