The exclusive promotional activities on JCOP J3H145 card and Feitian R301 Smartcard Reader are in full swing. Please check this page for details.

pyGlobalPlatform

pyGlobalPlatform is a open source python library of globalplatform client library.
User avatar
JavaCardOS
Posts: 269
Joined: Thu Apr 30, 2015 12:00 pm
Points :2351
Contact:

pyGlobalPlatform

Post by JavaCardOS » Tue Nov 24, 2015 5:19 am

pyGlobalPlatform is an open source python globalplatform client library. It depends on the GlobalPlatform project. Using this library, you can use all features of GlobalPlatform project via Python programming language.

Usage:
1. Copy globalplatform.pyd to Python27\DLLs directory;
2. Copy all DLL files to system PATH directory;
3. Use APIs in globalplatformlib.py.
Example, List reader names:

Code: Select all

import globalplatform as gp
context = gp.establishContext()
readernames = gp.listReaders(context)
for readername in readernames:
    print readername
gp.releaseContext(context)


Note:
1. Python version: python27
2. System version: Windows x86 platform
You do not have the required permissions to view the files attached to this post. Please login first.

User avatar
Ellisun
Posts: 48
Joined: Wed May 20, 2015 3:47 am
Points :454
Contact:

Re: pyGlobalPlatform

Post by Ellisun » Fri Nov 27, 2015 6:04 am

It a very perfect library. :mrgreen: :P :x :)

sarabjeet01
Posts: 4
Joined: Tue Sep 04, 2018 3:01 am
Points :64
Contact:

Re: pyGlobalPlatform

Post by sarabjeet01 » Fri Oct 12, 2018 9:17 am

What is System Path directory?

flyman2020
Posts: 1
Joined: Fri Sep 20, 2019 4:04 am
Points :8
Contact:

Re: pyGlobalPlatform

Post by flyman2020 » Fri Sep 20, 2019 4:14 am

>>> import globalplatform as gp
>>> context = gp.establishContext()
>>> readernames = gp.listReader(context)
Exception: establishContext():
>>> for readername in readernames:
... print readername
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'readernames' is not defined
why?

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 0 guests

JavaCard OS : Disclaimer