On 25/02/07, Henryk Plötz <[EMAIL PROTECTED]> wrote:
Am Sun, 25 Feb 2007 16:06:14 +0100 schrieb Ludovic Rousseau:
> Jean-Luc Giraud started a PC/SC API for Python some time ago [1] but
> the development has stalled.
>
> I decided (with Jean-Luc' help) to host the project on alioth [2] and
> improve it:
> - use epydoc to generate a HTML documentation
> - create a higher level API in Python (instead of C) to ease use and
> extension of the API

Ah, cool. I'm myself a heavy user of pycsc [1] and have my own patch [2]
for pycsc to make it compile with newer versions of pcsc-lite (and work
on my 64bit system).

Your patch should not be needed. Note that LPTSTR is deprecated and
LPSTR should be used instead.

However, I also found pycsc more and more
lacking and was planning to write my own replacement. My grande plan
(no code written yet) includes:
+ generic interface to several different smart card driver libraries,
  at least: PC/SC, openct, librfid (and maybe libchipcard, but I don't
  think so)
+ pycsc compatibility (e.g. existing pycsc dependant code should 'just
  work' with the new extension and even be able to use other underlying
  interfaces)
+ the name would be pysmartcard (or python-smartcard), e.g. it would
  work with "import smartcard" (or from smartcard import pycsc for the
  compatibility interface)

That is very ambitious. I am not sure using "import smartcard" is a
good idea since it does not reflect the API used underneath. Unless
you provide access to many different layers: PC/SC, ISO 7816-4,
PKCS#11, etc.

_I_ already have a lot of such code in Python for some different
smartcards. But that's because that is primarily used as an educational
tool (e.g. I used it in a lecture I participated in) for which opensc
is not particularly suited. (opensc is not verbose enough and sends too
many APDUs in its own. My code is verbose but doesn't get in my way and
only ever sends a command when I tell it to do so.)

If you want to use a Python program above OpenSC (or another PKCS#11
lib) you should use PyKCS11 [1].

Bye,

[1] http://www.bit4id.org/trac/pykcs11/

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to