Moin, 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). 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) > Possible improvements: > - provide a ISO 7816-4 API to use select_file() instead of hex > notation "00A4" > - provide a VerifyPin() instead of direct call to SCardControl() That is not easy and it would be best to create an opensc interface for that purpose in order to not write Yet Another Library Against Smartcard Quirks and duplicate a lot of functionality. _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.) [1] http://svn.ploetzli.ch/cyberflex-shell/trunk/ [2] http://svn.ploetzli.ch/cyberflex-shell/trunk/pycsc-0.0.3_new-pcsc.patch -- Henryk Plötz Grüße aus Berlin ~ Help Microsoft fight software piracy: Give Linux to a friend today! ~
pgpRXluhHUX19.pgp
Description: PGP signature
_______________________________________________ opensc-devel mailing list [email protected] http://www.opensc-project.org/mailman/listinfo/opensc-devel
