Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

pyGlobalPlatform

pyGlobalPlatform is a open source python library of globalplatform client library.
User avatar
JavaCardOS
Posts: 273
Joined: Thu Apr 30, 2015 12:00 pm
Points :2403
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: 50
Joined: Wed May 20, 2015 3:47 am
Points :472
Contact:

Re: pyGlobalPlatform

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

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

sarabjeet01
Posts: 5
Joined: Tue Sep 04, 2018 3:01 am
Points :112
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 :76
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?

SylviaWhite
Posts: 1
Joined: Mon Jan 10, 2022 11:27 am
Points :20
Contact:

Re: pyGlobalPlatform

Post by SylviaWhite » Mon Jan 17, 2022 12:00 pm

Does the file directory change based on your file locations?

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 9 guests

JavaCard OS : Disclaimer