Python toolkit for LEIA smartcard reader
Project description
SmartLeia
This repository holds the source of the python package used to drive the LEIA smart card reader. With it, you will be able to:
- Connect to the LEIA board
- Choose parameters for the PSS/PTS negotiation
- Send APDUs and receive the corresponding responses
- Activate the DFU mode to download new firmware
- Start a Virtual SmartCard client to use LEIA as a 'real' smart card reader (through PCSCD relay)
The documentation dedicated to the SmartLeia package can be found here, please check it to have details about the basic usage and the API for advanced development features.
Dependencies
You can install the requirements of the package using:
pip install requirements.txt
If you want to use the Virtual SmartCard PCSCD relay, you will need to install it either from packages (if your distro packages it) or from sources by compiling it.
Installation of smartleia
From git
You may need to use the last version of python builtin's setuptools to install smartleia from git
python3 -m pip install --upgrade pip setuptools wheel
git clone https://github.com/cw-leia/smartleia
cd smartleia
python3 -m pip install .
From pipy
python3 -m pip install smartleia
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for smartleia-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40700b77ff0a1beda6d7197b21097c8a51d152b9fa95d64435c06505b9f61615 |
|
MD5 | 2da1c72674ed4978e234990114cf64e3 |
|
BLAKE2b-256 | cf9280d87cc3a91573c9653cc318f7f3f9f2f7b5fcd7b98780c4dbe1bcb00189 |