Menu

Tree [55fc8f] master release-1.9.6 /
 History

HTTPS access


File Date Author Commit
 appveyor 2017-06-26 Eduardo Castellanos Eduardo Castellanos [57d52c] Updated appveyor environment configuration batc...
 epydoc 2016-09-11 Ludovic Rousseau Ludovic Rousseau [633c39] Documentation: generate the API documentation
 smartcard 2017-08-21 Ludovic Rousseau Ludovic Rousseau [55fc8f] Release 1.9.6
 test 2016-03-28 Ludovic Rousseau Ludovic Rousseau [ca0608] test: test_ATR now supports Python 3.x
 .coveragerc 2015-07-29 Alex Willmer Alex Willmer [18a048] Add tox support and coverage reports, run test ...
 .gitignore 2015-08-24 Ludovic Rousseau Ludovic Rousseau [717768] .gitignore: ignore all local_config.py files
 .pylintrc 2015-06-22 Alex Willmer Alex Willmer [3feb9b] Customize pylintrc
 .travis.yml 2017-05-23 Ludovic Rousseau Ludovic Rousseau [cab92c] Travis CI: remove Python 3.4 and add Python 3.6
 ACKS 2017-08-18 Ludovic Rousseau Ludovic Rousseau [7031e8] Text files: convert from ISO-8859 to UTF-8
 ChangeLog 2017-08-21 Ludovic Rousseau Ludovic Rousseau [55fc8f] Release 1.9.6
 LICENSE 2007-05-17 jdaussel jdaussel [95778b] Initial import
 MANIFEST.in 2017-08-21 Ludovic Rousseau Ludovic Rousseau [936042] MANIFEST.in: add test/*.py
 Makefile 2016-05-27 Ludovic Rousseau Ludovic Rousseau [ef2ca7] Makefile: add a rule to generate ChangeLog.git
 README 2015-06-23 Alex Willmer Alex Willmer [0566f4] Consolidate the project version in setup.py, bu...
 README.md 2015-07-30 Ludovic Rousseau Ludovic Rousseau [bd53fe] Add a Coveralls badge
 TODO 2015-06-23 Alex Willmer Alex Willmer [07d521] Consolidate Changelog, LICENSE, README etc into...
 appveyor.yml 2017-05-23 Ludovic Rousseau Ludovic Rousseau [3c5a8d] AppVeyor: add Python 3.6 and remove 3.4
 dev-requirements.txt 2015-08-20 Alex Willmer Alex Willmer [e4cf70] Appveyor: Enable Python 2.6, 3.x and x64
 setup.py 2017-08-21 Ludovic Rousseau Ludovic Rousseau [55fc8f] Release 1.9.6
 tox.ini 2017-05-23 Ludovic Rousseau Ludovic Rousseau [0c3bdf] tox: move from Python versions 3.[3,4] to 3.[5,6]

Read Me

-------------------------------------------------------------------------------
pyscard smartcard library for python
-------------------------------------------------------------------------------
http://pyscard.sourceforge.net/
-------------------------------------------------------------------------------

Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com

This file is part of pyscard.

pyscard is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2.1 of the License, or (at your
option) any later version.

pyscard is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
License for more details.

You should have received a copy of the GNU Lesser General Public License
along with pyscard; if not, write to the Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

pyscard is a python module adding smart cards support to python.

It consists of the smartcard.scard module, an extension module wrapping
Windows smart card base components (also known as PCSC) on Windows, and
PCSC lite on linux and OS X, and of the smartcard module, a
python framework with objects wrapping PCSC API.


-------------------------------------------------------------------------------
Documentation
-------------------------------------------------------------------------------

All documentation is provided in the smartcard/doc directory of the
source distribution.  Examples are provided in the smartcard/Examples
directory of the source distribution.  The binary distribution does not
include any documentation, tests scripts or examples.


-------------------------------------------------------------------------------
Installation
-------------------------------------------------------------------------------

The pyscard library is packaged using the standard distutils python
module.

Installation on windows
-----------------------

Installing on windows from the binary distribution
--------------------------------------------------

1. download the binary msi installer or self-executable installer
2. execute the installer

The binary msi installer and self-executable installer are packaged for
a specific version of python, and have name similar to
pyscard-1.7.<xx>.win32-py2.7.msi and pyscard-1.7.<xx>.win32-py2.7.exe.


Installing on windows from the source distribution
---------------------------------------------------

1. you will need swig from (http://www.swig.org), and a C compiler.

Visual Studio 2008 is required for building the C language wrapper. You can
download Microsoft Visual C++ Compiler for Python 2.7
(http://aka.ms/vcpython27).

2. download the source distribution

The source distribution is available as pyscard-1.7.<xx>.zip for windows,
and pyscard-1.7.<xx>.tar.gz for linux.

3. unzip the source distribution, open a console and type the following:

setup.py build_ext install

This will build pyscard and install it in the site-packages directory of
your python distribution, e.g. c:\python25\Lib\site-packages\smartcard.

This install procedure does not install the documentation, examples or test
files.

Installation on linux:
----------------------

Installing on linux from the binary distribution:
-------------------------------------------------

1. download the binary distribution

The binary distribution is either an archive file or a rpm file, with
names similar to pyscard-1.7.<xx>-1.i386.rpm for the rpm distribution, or
pyscard-1.7.<xx>.linux-i686.tar.gz for the archive distribution.

2. untar the binary distribution

With root privilege from a terminal, extract the archive from /, or
install the rpm.

Installing on linux from the source distribution
------------------------------------------------

1. you will need gcc, swig (http://www.swig.org), and pcsc-lite
(http://pcsclite.alioth.debian.org/)

2. download the source distribution

The source distribution is available as pyscard-1.7.<xx>.zip or
pyscard-1.7.<xx>.tar.gz.

3. untar the source distribution

4. from a terminal with root privileges, type the following:

/usr/bin/python setup.py build_ext install

This will build pyscard and install it in the site-packages directory of
your python distribution, e.g.
/usr/lib/python2.7/site-packages/smartcard.

Installation on Max OS X Snow Leopard:
--------------------------------------

Installing on Mac OS X Snow Leopard from the binary distribution:
-----------------------------------------------------------------

1. download the binary distribution

The binary distribution is an archive file, with a name similar to
pyscard-1.7.<xx>-py-2.6-macosx10.6.mpkg.

2. Open the package and proceed with installation.

Installing on Mac OS X Snow Leopard from the source distribution
----------------------------------------------------------------

1. you will need swig (http://www.swig.org); gcc and pcsc-lite
are available out of the box on Max OS X Snow Leopard

2. download the source distribution

The source distribution is available as pyscard-1.7.<xx>.zip or
pyscard-1.7.<xx>.tar.gz.

3. untar or unzip the source distribution

4. from a terminal, type the following:

sudo python setup.py build_ext install

This will build pyscard and install it in the site-packages directory of
your python distribution, e.g.
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.3/lib/site-packages/smartcard


Installation on Max OS X Lion:
------------------------------

Installing on Mac OS X Lion from the binary distribution:
---------------------------=====-------------------------

1. download the binary distribution

The binary distribution is an archive file, with a name similar to
pyscard-1.7.<xx>-py-2.7-macosx10.7.mpkg.

2. Open the package and proceed with installation.

Installing on Mac OS X Lion from the source distribution
--------------------------------------------------------

1. you will need swig (http://www.swig.org) and Xcode
(http://developer.apple.com/xcode/);
pcsc-lite is available out of the box on Max OS X

2. download the source distribution

The source distribution is available as pyscard-1.7.<xx>.zip or
pyscard-1.7.<xx>.tar.gz.

3. untar or unzip the source distribution

4. from a terminal, type the following:

sudo python setup.py build_ext install

This will build pyscard and install it in the site-packages directory of
your python distribution, e.g. /Library/Python/2.7/lib/site-packages/smartcard


-------------------------------------------------------------------------------
Developer documentation, unit tests and examples
-------------------------------------------------------------------------------
The developer documentation is in the smartcard/doc directory of the
source distribution.

Examples are located in the smartcard/Examples directory, and the pyunit
unit tests in the smartcard/test directory.

-------------------------------------------------------------------------------
Build instructions for packagers
-------------------------------------------------------------------------------

Building a binary distribution for Windows
------------------------------------------

To build a binary distribution from the source distribution, you will
need a C compiler and swig (same requirements as for installing
from the source distribution).

In the root directory of the source distribution, execute the following
command in a console:

setup.py build_ext bdist_msi
setup.py build_ext bdist_wininst

This will build the msi installer and self-executable installer in the
dist directory, with names similar to pyscard-1.7.<xx>.win32-py2.7.msi and
pyscard-1.7.<xx>.win32-py2.7.exe.

Building a binary distribution for linux
----------------------------------------

To build a binary distribution from the source distribution, you will
need gcc, swig and pcsc-lite (same requirements as for installing
from the source distribution).

In the root directory of the source distribution, execute the following
command in a terminal:

/usr/bin/python setup.py build_ext bdist

This will build a package similar to pyscard-1.7.<xx>.linux-i686.tar.gz
containing a tree

Building a rpm distribution for linux
----------------------------------------

To build a rpm distribution from the source distribution, you will need
gcc, swig and pcsc-lite (same requirements as for installing from
the source distribution).

In the root directory of the source distribution, execute the following
command in a terminal:

/usr/bin/python setup.py build bdist_rpm

If you have rpm 4.1 or above, you will need to add the
%_unpackaged_files_terminate_build 0 options to the /etc/rpm/macros file,
e.g.:

echo "%_unpackaged_files_terminate_build        0" >> /etc/rpm/macros

This will build in the dist directory a binary distribution with a name
similar to pyscard-1.7.<xx>-1.i386.rpm.

Building a binary distribution for Mac OS X Lion
-------------------------------------------------

To build a binary distribution from the source distribution, you will
need swig and Xcode (same requirements as for installing from the source
distribution) and bdist_mpkg 0.5.0+ (http://pypi.python.org/pypi/bdist_mpkg/).

Install bdist_mpkg by executing the bdist_mpkg setup.py script with
build and install as arguments, i.e. from the root directory of the
bdist_mpkg source distribution enter: python setup.py build install.

From the root directory of the pyscard source distribution,
i.e. in the src directory, execute the following commands in a terminal:

python setup.py build_ext
bdist_mpkg setup.py

This will build package pyscard-1.7.<xx>-py-2.7-macosx10.7.mpkg in the dist
directory.

Building a binary distribution for Mac OS X Snow Leopard
--------------------------------------------------------

To build a binary distribution from the source distribution, you will
need swig (same requirements as for installing from the source
distribution) and bdist_mpkg 0.5.0+ (https://pypi.python.org/pypi/bdist_mpkg).

Install bdist_mpkg by executing the bdist_mpkg setup.py script with
build and install as arguments, i.e. from the root directory of the
bdist_mpkg source distribution enter: python setup.py build install.

For python 2.6, from the root directory of the pyscard source distribution,
i.e. in the src directory, execute the following commands in a terminal:

python setup.py build_ext
/Library/Frameworks/Python.framework/Versions/2.6/bin/bdist_mpkg setup.py

This will build package pyscard-1.7.<xx>-py-2.6-macosx10.6.mpkg.

-------------------------------------------------------------------------------
Issue Tracking
-------------------------------------------------------------------------------
If you encounter a bug, please report it in the SourceForge bug tracker at
       https://sourceforge.net/p/pyscard/bugs/

-jda