Page 1 of 1

pyGlobalPlatform

Posted: Tue Nov 24, 2015 5:19 am
by JavaCardOS
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

Re: pyGlobalPlatform

Posted: Fri Nov 27, 2015 6:04 am
by Ellisun
It a very perfect library. :mrgreen: :P :x :)

Re: pyGlobalPlatform

Posted: Fri Oct 12, 2018 9:17 am
by sarabjeet01
What is System Path directory?

Re: pyGlobalPlatform

Posted: Fri Sep 20, 2019 4:14 am
by flyman2020
>>> 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?

Re: pyGlobalPlatform

Posted: Mon Jan 17, 2022 12:00 pm
by SylviaWhite
Does the file directory change based on your file locations?